:root {
    --customer-dark: #07101f;
    --customer-blue: #1f6feb;
    --customer-cyan: #38bdf8;
    --customer-red: #dc2626;
    --customer-orange: #ea580c;
    --customer-green: #168447;
    --customer-gray: #64748b;
    --customer-border: #c7d8f5;
    --customer-text: #10213b;
    --customer-muted: #61708a;

  --admin-dark: #050b18;
  --admin-navy: #163c7a;
  --admin-blue: #1f6feb;
  --admin-blue-hover: #1757b7;
  --admin-red: #ff3b3b;
  --admin-red-hover: #c62828;
  --admin-cyan: #60d8ff;
  --admin-gold: #ffe45c;
  --admin-text: #182033;
  --admin-muted: #64748b;
  --admin-panel: rgba(255, 255, 255, 0.96);
  --admin-border: rgba(255, 255, 255, 0.45);
  --admin-success: #138a4b;
  --admin-error: #c62828;
}


* {
    box-sizing: border-box;
}

.customer-service-wrapper {
    width: min(1400px, calc(100% - 2rem));
    margin: 2rem auto 4rem;
}

.admin-header-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.customer-service-panel {
    margin-bottom: 2rem;
    padding: 2rem;
    border: 3px solid var(--customer-border);
    border-radius: 28px;
    color: var(--customer-text);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(235, 245, 255, 0.95)
        );
    box-shadow:
        0 25px 65px rgba(0, 0, 0, 0.35),
        inset 0 0 25px rgba(255, 255, 255, 0.7);
}

.customer-service-panel h2 {
    margin-top: 0;
}

.customer-search-form {
    display: grid;
    gap: 0.8rem;
}

.customer-search-form label {
    font-weight: 900;
}

.customer-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.8rem;
}

.customer-search-row input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--customer-border);
    border-radius: 15px;
    background: white;
    font: inherit;
}

.customer-search-row input:focus {
    outline: none;
    border-color: var(--customer-blue);
    box-shadow:
        0 0 0 4px rgba(31, 111, 235, 0.14);
}

.customer-search-row button,
.customer-search-reset,
.customer-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 15px;
    color: white;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.customer-search-row button {
    padding: 0.9rem 1.4rem;
    background:
        linear-gradient(
            145deg,
            var(--customer-blue),
            var(--customer-cyan)
        );
}

.customer-search-reset {
    padding: 0.9rem 1.2rem;
    background: var(--customer-gray);
}

.customer-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.customer-result-header p {
    margin-bottom: 0;
    color: var(--customer-muted);
}

.customer-result-count {
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    color: white;
    background: var(--customer-blue);
    font-weight: 900;
    white-space: nowrap;
}

.customer-table-wrapper {
    overflow-x: auto;
    border: 2px solid var(--customer-border);
    border-radius: 18px;
    background: white;
}

.customer-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1050px;
}

.customer-table th,
.customer-table td {
    padding: 1rem;
    border-bottom: 1px solid #dbe5f4;
    text-align: left;
    vertical-align: middle;
}

.customer-table th {
    color: white;
    background: var(--customer-dark);
    font-size: 0.9rem;
}

.customer-table tbody tr:hover {
    background: #edf6ff;
}

.customer-table tbody tr:last-child td {
    border-bottom: none;
}

.customer-status {
    display: inline-flex;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    color: white;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.status-active {
    background: var(--customer-green);
}

.status-suspended {
    background: var(--customer-orange);
}

.status-banned,
.status-deleted {
    background: var(--customer-red);
}

.status-unknown {
    background: var(--customer-gray);
}

.customer-view-button {
    padding: 0.65rem 0.9rem;
    background:
        linear-gradient(
            145deg,
            var(--customer-blue),
            #174fa8
        );
}

.customer-feedback,
.customer-empty-state {
    padding: 1.2rem;
    border-radius: 16px;
}

.customer-feedback-error {
    border: 2px solid rgba(220, 38, 38, 0.3);
    color: #991b1b;
    background: rgba(220, 38, 38, 0.1);
    font-weight: 800;
}

.customer-empty-state {
    text-align: center;
    background: rgba(31, 111, 235, 0.08);
}

.customer-empty-state h3 {
    margin-top: 0;
}

.customer-search-block {
    display: grid;
    gap: 0.8rem;
}

.customer-search-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--customer-muted);
    font-weight: 900;
}

.customer-search-divider::before,
.customer-search-divider::after {
    content: "";
    height: 2px;
    flex: 1;
    background: var(--customer-border);
}

.customer-search-divider span {
    padding: 0 0.5rem;
}

.customer-number-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
}

.customer-number-input {
    display: flex;
    overflow: hidden;
    border: 2px solid var(--customer-border);
    border-radius: 15px;
    background: white;
}

.customer-number-input:focus-within {
    border-color: var(--customer-blue);
    box-shadow:
        0 0 0 4px rgba(31, 111, 235, 0.14);
}

.customer-number-prefix {
    display: flex;
    align-items: center;
    padding: 0 0 0 1rem;
    color: var(--customer-text);
    background: #eaf2ff;
    font-weight: 900;
    user-select: none;
}

.customer-number-input input {
    width: 100%;
    min-width: 0;
    padding: 1rem;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
}

.customer-number-row button {
    padding: 0.9rem 1.4rem;
    border: none;
    border-radius: 15px;
    color: white;
    background:
        linear-gradient(
            145deg,
            var(--customer-blue),
            var(--customer-cyan)
        );
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

/* Buttons */

.back-btn,
.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  color: white;
  text-decoration: none;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.back-btn {
  background:
    linear-gradient(
      145deg,
      var(--admin-blue),
      var(--admin-cyan)
    );
}

.logout-btn {
  background:
    linear-gradient(
      145deg,
      var(--admin-red),
      var(--admin-red-hover)
    );
}

.back-btn:hover,
.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}



/* Media */

@media (max-width: 750px) {
    .customer-service-panel {
        padding: 1.2rem;
    }

    .customer-search-row {
        grid-template-columns: 1fr;
    }

    .customer-result-header {
        flex-direction: column;
    }
}