/* ========== CUSTOMERS PAGE ========== */

.cust-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--font-ui);
}

/* ========== HEADER ========== */
.cust-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cust-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0d2a52;
    margin: 0;
}

.cust-header p {
    font-size: 13px;
    color: rgba(30, 70, 130, 0.65);
    margin: 4px 0 0;
}

.cust-btn-add {
    padding: 10px 22px;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
}

.cust-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* ========== TOOLBAR (Search + Stats) ========== */
.cust-toolbar {
    display: flex;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 20px;
}

.cust-search-form {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(100, 160, 220, 0.30);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(60, 100, 180, 0.08);
}

.cust-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 14px;
    font-family: var(--font-ui);
    color: #0d2a52;
    outline: none;
}

.cust-search-input::placeholder {
    color: rgba(30, 70, 130, 0.4);
}

.cust-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cust-search-btn:hover {
    transform: scale(1.05);
}

.cust-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(100, 160, 220, 0.30);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(60, 100, 180, 0.08);
    min-width: 140px;
    text-align: center;
}

.cust-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(30, 70, 130, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cust-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #2563EB;
    font-family: var(--font-ui);
}

/* ========== TABLE ========== */
.cust-table-wrap {
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(100, 160, 220, 0.30);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(60, 100, 180, 0.10);
    overflow: hidden;
}

.cust-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
}

.cust-table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(30, 70, 130, 0.55);
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(100, 160, 220, 0.15);
}

.cust-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(100, 160, 220, 0.08);
    font-size: 13px;
    color: #0d2a52;
}

.cust-table tbody tr {
    transition: background 0.15s ease;
}

.cust-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.03);
}

.cust-cell-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cust-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.08));
    color: #2563EB;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.cust-name {
    font-weight: 600;
    font-size: 14px;
}

.cust-id {
    font-size: 11px;
    color: rgba(30, 70, 130, 0.45);
}

.cust-contact {
    font-size: 13px;
    color: #0d2a52;
}

.cust-phone {
    font-size: 12px;
    color: rgba(30, 70, 130, 0.5);
}

.cust-points-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.cust-spent {
    font-weight: 700;
    color: #10B981;
    font-size: 14px;
}

.cust-actions {
    display: flex;
    gap: 6px;
}

.cust-btn-edit {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(37, 99, 235, 0.08);
    color: #2563EB;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.cust-btn-edit:hover {
    background: rgba(37, 99, 235, 0.15);
}

.cust-btn-view {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(30, 70, 130, 0.06);
    color: rgba(30, 70, 130, 0.7);
    border: 1px solid rgba(30, 70, 130, 0.12);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.cust-btn-view:hover {
    background: rgba(30, 70, 130, 0.1);
}

.cust-no-data {
    text-align: center;
    color: rgba(30, 70, 130, 0.4);
    padding: 40px;
    font-size: 14px;
}

/* ========== PAGINATION ========== */
.cust-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 0 4px;
}

.cust-page-info {
    font-size: 12px;
    color: rgba(30, 70, 130, 0.5);
}

.cust-page-btns {
    display: flex;
    gap: 4px;
}

.cust-page-btn {
    min-width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #0d2a52;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(100, 160, 220, 0.2);
    transition: all 0.2s ease;
}

.cust-page-btn:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

.cust-page-btn.active {
    background: #2563EB;
    color: white;
    border-color: #2563EB;
}

/* ========== MODAL ========== */
.cust-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(13, 42, 82, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.cust-modal-overlay.open {
    display: flex;
}

.cust-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 160, 220, 0.30);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(13, 42, 82, 0.2);
    animation: custSlideDown 0.3s ease;
}

@keyframes custSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cust-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(100, 160, 220, 0.2);
}

.cust-modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0d2a52;
    margin: 0;
}

.cust-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #94A3B8;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cust-modal-close:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
}

.cust-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cust-form-group {
    margin-bottom: 14px;
}

.cust-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #0d2a52;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cust-form-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-ui);
    color: #0d2a52;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cust-form-input:focus {
    background: #fff;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cust-form-input::placeholder {
    color: #94A3B8;
}

.cust-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.cust-btn-cancel {
    flex: 0.5;
    padding: 11px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-ui);
    cursor: pointer;
    background: rgba(148, 163, 184, 0.08);
    color: #0d2a52;
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: all 0.2s ease;
}

.cust-btn-cancel:hover {
    background: rgba(148, 163, 184, 0.15);
}

.cust-btn-save {
    flex: 1;
    padding: 11px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-ui);
    cursor: pointer;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.cust-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .cust-toolbar {
        flex-direction: column;
    }

    .cust-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cust-form-row {
        grid-template-columns: 1fr;
    }

    .cust-table thead th:nth-child(3),
    .cust-table tbody td:nth-child(3) {
        display: none;
    }
}
