/* Premium Loyalty Points Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

/* UI Styling Variables */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --color-bg: #f9fafb;
    --color-surface: #ffffff;
    --color-border: #e5e7eb;
    --color-border-hover: #d1d5db;
    
    --color-text-primary: #111827;
    --color-text-secondary: #4b5563;
    --color-text-muted: #9ca3af;
    
    --color-brand: #111827;
    --color-brand-hover: #1f2937;
    
    --color-success: #10b981;
    --color-success-light: #ecfdf5;
    --color-success-dark: #065f46;
    
    --color-danger: #ef4444;
    --color-danger-light: #fef2f2;
    --color-danger-dark: #991b1b;
    
    --color-info: #3b82f6;
    --color-info-light: #eff6ff;
    --color-info-dark: #1e40af;
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* Reset and General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: #757575;
    color: var(--color-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding: 2rem 4rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Container */
.app-container {
    max-width: 1120px;
    margin: 0 auto;
}

/* Header Area */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    background-color: #f3f4f6;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-title-section h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #b9021a;
    letter-spacing: -0.025em;
}

.header-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.header-subtitle span {
    font-weight: 500;
    color: var(--color-text-secondary);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #c50c00;
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-brand-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--color-surface);
    color: #c50c00;
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg);
    border-color: var(--color-border-hover);
    color: var(--color-text-primary);
}

.btn-icon {
    padding: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Bar Section */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    width: 1.125rem;
    height: 1.125rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

.search-input:focus {
    border-color: var(--color-text-secondary);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}

/* Empty State */
.empty-state-card {
    background-color: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 6rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-icon-circle {
    width: 4rem;
    height: 4rem;
    background-color: var(--color-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.empty-state-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    max-width: 24rem;
    margin-bottom: 1.5rem;
    line-height: 1.45;
}

/* Customer List Layout */
.content-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    display: none; /* Shown dynamically via JS */
}

/* Customer Table Styles */
.customer-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.customer-table th {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background-color: #f3f4f6;
    letter-spacing: 0.05em;
}

.customer-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    font-size: 0.875rem;
}

.customer-table tbody tr {
    transition: background-color var(--transition-fast);
}

.customer-table tbody tr:hover {
    background-color: #fafbfc;
}

.customer-table tbody tr:last-child td {
    border-bottom: none;
}

/* Customer Profile Column */
.customer-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-full);
    background-color: #f3f4f6;
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

.customer-info-text {
    display: flex;
    flex-direction: column;
}

.customer-name {
    font-weight: 600;
    color: var(--color-text-primary);
}

.customer-email {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.customer-phone {
    color: var(--color-text-secondary);
}

/* Points Badge & Quick Controls */
.points-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.points-badge {
    background-color: var(--color-success-light);
    color: var(--color-success-dark);
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    min-width: 3.5rem;
    text-align: center;
    display: inline-block;
}

.points-quick-actions {
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2px;
}

.points-input {
    width: 2.5rem;
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    outline: none;
}

.points-input::-webkit-outer-spin-button,
.points-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* ==========================================================================
   10. Pagination
   ========================================================================== */

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    background-color: #ffffff;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    gap: 1rem;
}

.pagination-info {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pagination-btn, .page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1.5px solid #14b8a6; /* Teal color from image */
    background-color: white;
    color: #14b8a6;
}

.pagination-btn:hover:not(:disabled), .page-num:hover:not(.active) {
    background-color: #f0fdfa;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #cbd5e1;
    color: #cbd5e1;
}

.page-num.active {
    background-color: #14b8a6;
    color: white;
    border-color: #14b8a6;
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.2);
}

.page-ellipsis {
    color: #14b8a6;
    font-weight: 700;
    padding: 0 0.25rem;
}

@media (max-width: 480px) {
    .pagination-controls {
        gap: 0.5rem;
    }
    .pagination-btn, .page-num {
        width: 2.25rem;
        height: 2.25rem;
    }
}



.btn-adjust {
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-adjust:hover {
    background-color: var(--color-border);
    color: var(--color-text-primary);
}


/* Joined Date */
.joined-date {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

/* Actions Column */
.actions-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.action-icon-btn:hover {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
}

.action-icon-btn.delete:hover,
.action-icon-btn.reset:hover {
    background-color: var(--color-danger-light);
    color: var(--color-danger);
}

/* Modals Overlay & Body */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 28rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(1rem) scale(0.98);
    transition: transform var(--transition-normal);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-box.wide {
    max-width: 36rem;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background-color: #f3f4f6;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.btn-close {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-close:hover {
    color: var(--color-text-primary);
    background-color: var(--color-bg);
}

/* Modal Body & Forms */
.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus {
    border-color: var(--color-text-secondary);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Modal Footer */
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background-color: #fafbfc;
}

/* Drag & Drop CSV Zone */
.csv-dropzone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: #fcfcfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.csv-dropzone:hover, .csv-dropzone.dragover {
    border-color: var(--color-text-primary);
    background-color: var(--color-bg);
}

.csv-dropzone-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.csv-dropzone h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.csv-dropzone p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.csv-file-selected {
    display: none;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-success-dark);
    background-color: var(--color-success-light);
    border: 1px solid rgba(16, 185, 129, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 500;
}

/* CSV Info Link */
.csv-info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 1rem;
}

.csv-download-template {
    color: var(--color-text-primary);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.csv-download-template:hover {
    color: var(--color-text-secondary);
}

/* Transaction History Modal list */
.history-list {
    max-height: 20rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: #fcfcfd;
}

.history-details {
    display: flex;
    flex-direction: column;
}

.history-reason {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.history-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.history-amount {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
}

.history-amount.positive {
    background-color: var(--color-success-light);
    color: var(--color-success-dark);
}

.history-amount.negative {
    background-color: var(--color-danger-light);
    color: var(--color-danger-dark);
}

.history-empty {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Toast Notifications System */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1100;
}

.toast {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 18rem;
    max-width: 24rem;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.toast.success {
    border-left: 4px solid var(--color-success);
}
.toast.success .toast-icon {
    color: var(--color-success);
}

.toast.error {
    border-left: 4px solid var(--color-danger);
}
.toast.error .toast-icon {
    color: var(--color-danger);
}

/* Settings Rules Preview Box */
.settings-preview {
    background-color: #fafbfc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1.25rem;
}

.settings-preview-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.settings-preview-text {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Danger Button Styles */
.btn-danger {
    background-color: var(--color-danger);
    color: white;
}

.btn-danger:hover {
    background-color: var(--color-danger-dark);
    transform: translateY(-1px);
}

/* Custom Checkbox Styling */
.checkbox-custom {
    appearance: none;
    -webkit-appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    border: 1px solid var(--color-border-hover);
    border-radius: 4px;
    background-color: var(--color-surface);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-fast);
    vertical-align: middle;
}

.checkbox-custom:hover {
    border-color: var(--color-text-secondary);
}

.checkbox-custom:checked {
    background-color: var(--color-brand);
    border-color: var(--color-brand);
}

.checkbox-custom:checked::after {
    content: "";
    width: 0.25rem;
    height: 0.45rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    margin-top: -2px;
}

/* Bulk Actions Floating Bar */
.bulk-actions-bar {
    position: fixed;
    bottom: -5rem; /* Hidden initially */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(17, 24, 39, 0.95); /* Deep dark onyx shade */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 0.875rem 1.5rem;
    width: calc(100% - 4rem);
    max-width: 44rem;
    z-index: 950;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bulk-actions-bar.active {
    bottom: 2rem; /* Slides up into visibility */
}

.bulk-actions-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.bulk-selection-count {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.bulk-actions-buttons {
    display: flex;
    gap: 0.75rem;
}

.bulk-actions-buttons .btn {
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
}

.bulk-actions-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: transparent;
    color: white;
}

.bulk-actions-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ==========================================================================
   9. Responsive Utilities & Media Queries
   ========================================================================== */

/* Tablet Adjustments */
@media (max-width: 1024px) {
    body {
        padding: 1.5rem;
    }

    .app-container {
        padding: 0 0.5rem;
    }

    .customer-table th, 
    .customer-table td {
        padding: 0.75rem 1rem;
    }
}

/* Tablet Portrait & Mobile Adjustments */
@media (max-width: 992px) {
    body {
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
        padding: 1.25rem;
    }

    .header-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.5rem;
    }

    .header-actions .btn {
        width: 100%;
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
        height: 2.5rem;
    }
    
    .header-actions .btn-icon {
        width: 100%;
        height: 2.5rem;
    }

    .header-title-section h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .header-subtitle {
        text-align: center;
    }

    .search-input {
        font-size: 0.875rem;
        padding: 0.625rem 1rem 0.625rem 2.5rem;
    }

    /* Transform Table to Cards */
    .customer-table thead {
        display: none; /* Hide headers on mobile */
    }

    .customer-table, 
    .customer-table tbody, 
    .customer-table tr, 
    .customer-table td {
        display: block;
        width: 100%;
    }

    .customer-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        background-color: var(--color-surface);
        padding: 1.25rem;
        position: relative;
        box-shadow: var(--shadow-sm);
    }

    .customer-table td {
        border: none;
        padding: 0.625rem 0;
    }

    /* Checkbox position */
    .customer-table td:first-child {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        width: auto;
        padding: 0;
        z-index: 5;
    }

    /* Customer Profile Column */
    .customer-table td:nth-child(2) {
        padding-top: 0;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid var(--color-bg);
        padding-bottom: 0.75rem;
    }
    
    .customer-profile {
        padding-right: 2rem; /* Avoid checkbox overlap */
    }

    /* Responsive labels for data columns */
    .customer-table td:nth-child(3)::before,
    .customer-table td:nth-child(4)::before,
    .customer-table td:nth-child(5)::before {
        display: block;
        font-size: 0.6875rem;
        text-transform: uppercase;
        font-weight: 700;
        color: var(--color-text-muted);
        margin-bottom: 0.375rem;
        letter-spacing: 0.025em;
    }
    
    .customer-table td:nth-child(3)::before { content: "Phone Number"; }
    .customer-table td:nth-child(4)::before { content: "Loyalty Points Account"; }
    .customer-table td:nth-child(5)::before { content: "Membership Since"; }

    .points-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .points-quick-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .points-input {
        flex: 1;
    }

    .actions-cell {
        justify-content: center;
        margin-top: 0.75rem;
        padding-top: 1rem;
        border-top: 1px solid var(--color-bg);
        gap: 1rem;
    }
    
    .action-icon-btn {
        width: 2.5rem;
        height: 2.5rem;
        background-color: var(--color-bg);
    }

    /* Modal adjustments */
    .modal-box {
        width: 92%;
        margin: 1rem;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }
    
    .modal-body {
        overflow-y: auto;
        padding: 1.25rem;
    }

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

    /* Bulk Actions Bar */
    .bulk-actions-bar {
        left: 1rem;
        right: 1rem;
        bottom: -12rem;
        width: calc(100% - 2rem);
        transform: translateX(0);
    }
    
    .bulk-actions-bar.active {
        bottom: 1rem;
    }
    
    .bulk-actions-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .bulk-actions-buttons {
        width: 100%;
        gap: 0.5rem;
    }
    
    .bulk-actions-buttons .btn {
        flex: 1;
    }
}

/* ==========================================================================
   11. Standalone Login Page & Logout System
   ========================================================================== */

body.login-body {
    background: radial-gradient(circle at 10% 20%, rgb(17, 24, 39) 0%, rgb(31, 41, 55) 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 !important;
    margin: 0 !important;
}

.login-wrapper {
    width: 100%;
    max-width: 26rem;
    padding: 1.5rem;
}

.login-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2.25rem;
    width: 100%;
    transition: transform var(--transition-normal);
}

.login-card:hover {
    transform: translateY(-2px);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-circle {
    background-color: #c50c00;
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.3);
}

.login-logo-circle svg {
    width: 1.75rem;
    height: 1.75rem;
}

.login-header h2 {
    font-family: var(--font-heading);
    color: #c50c00;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.login-header p {
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form .form-label {
    margin-bottom: 0.5rem;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0;
}


.login-error-alert {
    background-color: var(--color-danger-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-danger-dark);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
}

.login-error-alert svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.btn-login-submit {
    margin-top: 1.5rem;
    padding: 0.6875rem 1rem;
    font-weight: 600;
}

.btn-block {
    display: block;
    width: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.7125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Logout Button styling adjustment */
.btn-logout:hover {
    background-color: var(--color-danger-light) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    color: var(--color-danger) !important;
}
