/* =======================
   VIP GYM - Main Styles
   Color Scheme: Yellow & Light Black
   ======================= */

:root {
    --primary-color: #FFD700;
    --primary-dark: #FFA500;
    --secondary-color: #2C2C2C;
    --secondary-light: #3A3A3A;
    --background-color: #1A1A1A;
    --text-color: #FFFFFF;
    --text-secondary: #CCCCCC;
    --border-color: #404040;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --modern-bg: #f5f7fb;
    --modern-surface: #ffffff;
    --modern-ink: #111827;
    --modern-muted: #64748b;
    --modern-border: #e2e8f0;
    --modern-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

/* =======================
   Global Modern Admin Refresh
   ======================= */

.main-content {
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.16), transparent 32%),
        linear-gradient(135deg, #f8fafc 0%, #eef2f7 48%, #fff7d6 100%);
    min-height: 100vh;
    color: var(--modern-ink);
}

.main-content .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 0 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.main-content .navbar #userName,
.navbar #userName {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    font-weight: 800;
    display: inline-block !important;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.main-content .navbar .fa-user-circle,
.navbar .fa-user-circle {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

@media (max-width: 576px) {
    .main-content .navbar .container-fluid {
        gap: 8px;
        flex-wrap: nowrap !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    .main-content .navbar .container-fluid > .d-flex.align-items-center.flex-wrap {
        flex-wrap: nowrap !important;
        gap: 6px !important;
        margin-left: auto !important;
    }

    .main-content .navbar #userName,
    .navbar #userName {
        display: inline-block !important;
        max-width: 82px;
        font-size: 0.82rem;
    }

    .main-content .navbar .dropdown-toggle {
        padding-left: 6px;
        padding-right: 6px;
        white-space: nowrap;
    }
}

.content-wrapper,
.main-content > .container-fluid,
.main-content .container-fluid.p-4 {
    color: var(--modern-ink);
}

.main-content .page-title,
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6,
.main-content p,
.main-content label,
.main-content .form-label,
.main-content .text-dark {
    color: var(--modern-ink) !important;
}

.main-content .text-muted,
.main-content small {
    color: var(--modern-muted) !important;
}

.main-content .card:not(.template-card) {
    border: 1px solid rgba(148, 163, 184, 0.20) !important;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: var(--modern-shadow);
    overflow: hidden;
}

.main-content .card-header:not(.bg-danger):not(.bg-success):not(.bg-warning):not(.bg-primary):not(.bg-info) {
    background: linear-gradient(135deg, #111827 0%, #293241 100%) !important;
    color: #ffffff !important;
    border: 0 !important;
}

.main-content .card-header,
.main-content .card-header * {
    color: inherit;
}

.main-content .form-control,
.main-content .form-select,
.main-content textarea,
.main-content input,
.main-content select,
.modal .form-control,
.modal .form-select,
.modal textarea,
.modal input,
.modal select {
    background: #ffffff !important;
    color: var(--modern-ink) !important;
    -webkit-text-fill-color: var(--modern-ink) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
    min-height: 44px;
    box-shadow: none !important;
}

.main-content .form-control::placeholder,
.main-content input::placeholder,
.main-content textarea::placeholder,
.modal .form-control::placeholder,
.modal input::placeholder,
.modal textarea::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    opacity: 1 !important;
}

.main-content .form-control:focus,
.main-content .form-select:focus,
.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.22rem rgba(255, 215, 0, 0.18) !important;
}

.main-content .input-group-text {
    background: #f8fafc !important;
    color: var(--modern-ink) !important;
    border-color: #cbd5e1 !important;
    border-radius: 14px !important;
}

.main-content .btn,
.modal .btn {
    border-radius: 14px;
    font-weight: 800;
}

.main-content .btn-primary,
.main-content .btn-dark,
.modal .btn-primary {
    background: linear-gradient(135deg, #111827, #374151) !important;
    color: var(--primary-color) !important;
    border: 0 !important;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
}

.main-content .btn-warning,
.modal .btn-warning {
    background: linear-gradient(135deg, #ffd700, #f59e0b) !important;
    color: #111827 !important;
    border: 0 !important;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.20);
}

.main-content .btn-outline-secondary,
.main-content .btn-outline-primary,
.main-content .btn-outline-info,
.main-content .btn-outline-warning {
    background: #ffffff !important;
    color: var(--modern-ink) !important;
    border: 1px solid #cbd5e1 !important;
}

.main-content .table-responsive {
    border-radius: 20px;
}

.main-content .table {
    color: var(--modern-ink);
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.main-content .table thead th,
.main-content .table-dark th {
    background: #111827 !important;
    color: #ffffff !important;
    border-color: #111827 !important;
    font-weight: 800;
    white-space: nowrap;
}

.main-content .table tbody td {
    color: var(--modern-ink) !important;
    border-color: #e5e7eb;
    vertical-align: middle;
}

.modal-content {
    border: 0;
    border-radius: 24px;
    background: #ffffff !important;
    color: var(--modern-ink) !important;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.modal-header {
    border: 0;
    background: linear-gradient(135deg, #111827 0%, #293241 100%) !important;
    color: #ffffff !important;
}

.modal-header .modal-title,
.modal-header .modal-title *,
.modal-header i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.modal-body,
.modal-body label,
.modal-body .form-label,
.modal-body p,
.modal-body small,
.modal-body .text-muted {
    color: var(--modern-ink) !important;
}

.admin-modern-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 30px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 215, 0, 0.34), transparent 28%),
        linear-gradient(135deg, #111827 0%, #202938 54%, #050505 100%);
    color: #ffffff;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.admin-modern-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.20);
}

.admin-modern-hero > * {
    position: relative;
    z-index: 1;
}

.admin-modern-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.14);
    border: 1px solid rgba(255, 215, 0, 0.24);
    color: #ffe27a;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-modern-hero h1,
.admin-modern-hero p {
    color: #ffffff !important;
}

.admin-modern-hero h1 {
    margin: 14px 0 8px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.admin-modern-hero p {
    max-width: 680px;
    margin: 0;
    opacity: 0.78;
}

.admin-modern-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin-modern-stat-card,
.stats-card {
    min-height: 118px;
    border-radius: 24px !important;
    padding: 22px !important;
    background: linear-gradient(135deg, #111827, #293241) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16) !important;
}

.admin-modern-stat-card h3,
.admin-modern-stat-card p,
.stats-card h3,
.stats-card p,
.stats-card .stats-info h3,
.stats-card .stats-info p,
.stats-card .stats-icon i {
    color: #ffffff !important;
}

.stats-card.gold,
.stats-card.stats-card-primary,
.stats-card.stats-card-success,
.stats-card.stats-card-info,
.stats-card.warning,
.stats-card.success {
    background: linear-gradient(135deg, #111827, #293241) !important;
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .admin-modern-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
    }

    .admin-modern-actions {
        justify-content: stretch;
    }

    .admin-modern-actions .btn {
        width: 100%;
    }
}

/* System Footer */
.system-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 15px;
    background-color: var(--secondary-color);
    border-top: 2px solid var(--primary-color);
    color: var(--text-color);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.system-footer strong {
    color: var(--primary-color);
}

.system-footer i {
    color: var(--primary-color);
}

/* Add padding to body to prevent content being hidden behind fixed footer */
body {
    padding-bottom: 60px;
}

/* Delete Request Alert (Popup Notification) */
.delete-request-alert {
    position: fixed;
    width: 400px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
    z-index: 9999;
    transition: all 0.3s ease-in-out;
    animation: pulse 2s infinite;
    opacity: 0;
    transform: scale(0.8);
}

/* Alert position variations */
.delete-request-alert.alert-position-top-right {
    top: 20px;
    right: -450px;
}

.delete-request-alert.alert-position-top-right.show {
    right: 20px;
    opacity: 1;
    transform: scale(1);
}

.delete-request-alert.alert-position-top-left {
    top: 20px;
    left: -450px;
}

.delete-request-alert.alert-position-top-left.show {
    left: 20px;
    opacity: 1;
    transform: scale(1);
}

.delete-request-alert.alert-position-bottom-right {
    bottom: 20px;
    right: -450px;
}

.delete-request-alert.alert-position-bottom-right.show {
    right: 20px;
    opacity: 1;
    transform: scale(1);
}

.delete-request-alert.alert-position-bottom-left {
    bottom: 20px;
    left: -450px;
}

.delete-request-alert.alert-position-bottom-left.show {
    left: 20px;
    opacity: 1;
    transform: scale(1);
}

.delete-request-alert.alert-position-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px) scale(0.8);
}

.delete-request-alert.alert-position-top-center.show {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

.delete-request-alert .alert-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.delete-request-alert .alert-icon {
    font-size: 24px;
    animation: shake 0.5s infinite;
}

.delete-request-alert .alert-text {
    flex: 1;
}

.delete-request-alert .alert-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.delete-request-alert .alert-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.delete-request-alert .alert-count {
    font-weight: bold;
    font-size: 18px;
    color: #FFD700;
}

.delete-request-alert .alert-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delete-request-alert .btn {
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(220, 53, 69, 0.6);
    }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* =======================
   Admin Settings (cards)
   ======================= */

.settings-grid {
    margin-top: 0.25rem;
}

.settings-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(58, 58, 58, 0.35) 0%, rgba(44, 44, 44, 0.25) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.settings-card .card-body {
    background: rgba(26, 26, 26, 0.25);
}

.settings-card-header {
    background: rgba(44, 44, 44, 0.7);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 16px;
}

.settings-card-header h5 {
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.settings-card-header .text-muted {
    color: var(--text-secondary) !important;
}

.settings-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: var(--primary-color);
    flex: 0 0 auto;
}

.settings-card-accent {
    position: relative;
}

.settings-card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    opacity: 0.95;
}

.settings-accent-success::before { background: var(--success-color); }
.settings-accent-warning::before { background: var(--warning-color); }
.settings-accent-danger::before { background: var(--danger-color); }

.settings-preview-box {
    background: rgba(58, 58, 58, 0.25) !important;
    border-color: rgba(255, 215, 0, 0.18) !important;
}

.settings-subcard {
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.18);
    overflow: hidden;
    background: rgba(26, 26, 26, 0.25);
}

.settings-subcard-header {
    background: rgba(255, 193, 7, 0.18);
    border-bottom: 1px solid rgba(255, 193, 7, 0.25);
    color: var(--text-color);
}

.settings-subcard-warning .settings-subcard-header i {
    color: var(--warning-color);
}

/* Modern Exchange Rate Design */
.exchange-rate-main {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.02) 100%);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.exchange-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.3);
}

.exchange-icon {
    font-size: 28px;
    color: var(--secondary-color);
    animation: rotate-slow 3s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.currency-box {
    background: rgba(44, 44, 44, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 16px 12px;
    transition: all 0.3s ease;
}

.currency-box:hover {
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.currency-box-highlight {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-color);
}

.currency-flag {
    font-size: 32px;
}

.currency-code {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.currency-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-color);
}

.currency-amount-input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    outline: none;
}

.currency-amount-input:focus {
    color: #FFA500;
}

.exchange-equals {
    font-size: 24px;
    color: var(--primary-color);
}

.section-title {
    font-weight: 700;
    color: var(--text-color);
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.modern-select-wrapper {
    position: relative;
}

.modern-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-select {
    background: rgba(44, 44, 44, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.15);
    color: var(--text-color);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-select:focus {
    background: rgba(44, 44, 44, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.modern-select option {
    background: var(--secondary-color);
    color: var(--text-color);
}

.info-box {
    background: rgba(23, 162, 184, 0.1);
    border: 2px solid rgba(23, 162, 184, 0.3);
    border-radius: 12px;
    padding: 16px;
    height: 100%;
}

.info-box-title {
    font-weight: 700;
    color: #67d8ea;
    margin-bottom: 10px;
    font-size: 14px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.info-list li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.info-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.preview-calculator {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.05) 100%);
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.calculator-header {
    background: rgba(40, 167, 69, 0.2);
    padding: 12px 16px;
    font-weight: 700;
    color: #5dd68d;
    border-bottom: 2px solid rgba(40, 167, 69, 0.3);
}

.calculator-body {
    padding: 20px;
}

.calculation-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 20px;
}

.calc-value {
    font-weight: 700;
    color: var(--text-color);
}

.calc-operator {
    color: var(--primary-color);
    font-weight: 800;
}

.calc-result {
    font-size: 28px;
    font-weight: 800;
    color: var(--success-color);
}

.calc-currency {
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-save-modern {
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.btn-save-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.salary-settings-section,
.inventory-pricing-section {
    background: rgba(26, 26, 26, 0.3);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

/* General Settings Modern Design */
.general-setting-item {
    background: rgba(26, 26, 26, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.12);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.general-setting-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(26, 26, 26, 0.5);
    transform: translateX(4px);
}

.setting-icon-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.setting-mini-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.setting-mini-icon i {
    font-size: 18px;
    color: var(--secondary-color);
}

.theme-color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-color-input {
    width: 80px;
    height: 60px;
    border-radius: 12px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-color-input:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.color-preview-box {
    flex: 1;
    background: rgba(44, 44, 44, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
}

.color-preview-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.color-preview-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

/* UI Color Customization Modern Design */
.color-customization-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.color-group-item {
    background: rgba(26, 26, 26, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.12);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.3s ease;
}

.color-group-item:hover {
    border-color: rgba(255, 215, 0, 0.25);
    background: rgba(26, 26, 26, 0.5);
}

.color-group-header {
    margin-bottom: 12px;
}

.color-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(13, 110, 253, 0.2);
    color: #6ea8fe;
    border: 1px solid rgba(13, 110, 253, 0.3);
}

.badge-success {
    background: rgba(25, 135, 84, 0.2);
    color: #75b798;
    border: 1px solid rgba(25, 135, 84, 0.3);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffda6a;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #ea868f;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.badge-info {
    background: rgba(13, 202, 240, 0.2);
    color: #6edff6;
    border: 1px solid rgba(13, 202, 240, 0.3);
}

.color-group-pickers {
    display: flex;
    gap: 12px;
}

.color-picker-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.color-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.color-input {
    width: 100%;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-input:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.color-hex {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    background: rgba(44, 44, 44, 0.6);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.button-preview-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.02) 100%);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.preview-header {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.preview-btn {
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    cursor: default !important;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Typography Control Modern Design */
.typography-section {
    background: rgba(26, 26, 26, 0.3);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.typography-slider-item {
    background: rgba(44, 44, 44, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.12);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.typography-slider-item:hover {
    border-color: rgba(255, 215, 0, 0.25);
    background: rgba(44, 44, 44, 0.6);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-value-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.modern-range {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 215, 0, 0.15);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 8px;
}

.modern-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
    border: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.modern-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.6);
}

.modern-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
    border: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.modern-range::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.6);
}

.slider-scale {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    padding: 0 4px;
}

.text-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.text-color-item {
    background: rgba(44, 44, 44, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.12);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.text-color-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(44, 44, 44, 0.6);
    transform: translateY(-2px);
}

.text-color-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    width: 100%;
}

.text-color-label i {
    font-size: 20px;
    color: var(--primary-color);
}

.text-color-label span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.text-color-input {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-color-input:hover {
    border-color: var(--primary-color);
    transform: scale(1.08);
}

.typography-preview-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 240, 0.95) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.typography-preview-content {
    padding: 20px;
}

/* Language Control Modern Design */
.language-info-box {
    background: rgba(23, 162, 184, 0.1);
    border: 2px solid rgba(23, 162, 184, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.language-info-box i {
    color: #67d8ea;
    font-size: 18px;
}

.language-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.language-option-item {
    background: rgba(26, 26, 26, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.12);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.language-option-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(26, 26, 26, 0.5);
    transform: translateX(4px);
}

.language-flag-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.language-flag {
    font-size: 36px;
    line-height: 1;
}

.language-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.language-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

.language-code {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modern Toggle Switch */
.modern-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    cursor: pointer;
}

.modern-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.3);
    border: 2px solid rgba(220, 53, 69, 0.5);
    border-radius: 32px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.modern-toggle input:checked + .toggle-slider {
    background: rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.5);
}

.modern-toggle input:checked + .toggle-slider:before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.modern-toggle:hover .toggle-slider {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* Exchange Rate & Currency modern UI */
.settings-block {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.14);
    background: rgba(26, 26, 26, 0.20);
}

.settings-block-title {
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--text-color);
}

.settings-badge {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.22);
    color: var(--primary-color);
    font-weight: 700;
}

.settings-callout {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(23, 162, 184, 0.35);
    background: rgba(23, 162, 184, 0.10);
}

.settings-callout-icon {
    margin-top: 2px;
    color: #67d8ea;
}

.settings-rate-input .input-group-text {
    background: rgba(44, 44, 44, 0.75);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.settings-rate-input .form-control {
    background: rgba(26, 26, 26, 0.55);
    border-color: var(--border-color);
}

.settings-rate-input .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.45);
}

.settings-note {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.12);
    background: rgba(58, 58, 58, 0.18);
}

.settings-note-icon {
    margin-top: 2px;
    color: rgba(255, 215, 0, 0.85);
}

.settings-preview {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(40, 167, 69, 0.30);
    background: rgba(40, 167, 69, 0.10);
}



/* =======================
   Login Page Styles
   ======================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--secondary-color) 100%);
    position: relative;
}

.login-page .language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.navbar .language-switcher,
.main-content .language-switcher {
    position: static;
    z-index: auto;
}

.navbar .language-switcher {
    flex: 0 0 auto;
    max-width: 150px;
    white-space: nowrap;
}

.navbar .language-switcher .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 150px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar .container-fluid > .flex-grow-1:has(.language-switcher) {
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    margin-left: auto;
    min-width: 0;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.navbar .container-fluid > .d-flex.align-items-center,
.navbar .container-fluid > .d-flex.align-items-center.ms-auto,
.navbar .container-fluid > .d-flex.align-items-center.gap-3 {
    flex: 0 1 auto;
    flex-wrap: nowrap !important;
    justify-content: flex-end;
    min-width: 0;
}

.navbar .dropdown {
    min-width: 0;
}

.navbar .dropdown:not(.language-switcher) {
    flex: 0 1 auto;
    max-width: clamp(130px, 24vw, 240px);
}

.navbar .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.language-switcher .btn {
    margin: 0 5px;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.language-switcher .btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
    border: 2px solid var(--border-color);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.gym-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

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

.login-form .form-label {
    color: var(--text-color);
    font-weight: 500;
}

.login-form .form-control {
    background-color: var(--secondary-light);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    height: 45px;
}

.login-form .form-control:focus {
    background-color: var(--secondary-light);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.15);
}

.login-form .input-group-text {
    background-color: var(--secondary-light);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.login-form .btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-color);
    height: 45px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 15px;
}

.login-form .btn-primary:hover {
    background-color: var(--primary-dark);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

/* =======================
   Sidebar Styles
   ======================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: var(--secondary-color);
    border-right: 2px solid var(--border-color);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-header {
    padding: 20px 8px;
}

.sidebar.collapsed .sidebar-header h3,
.sidebar.collapsed .sidebar-menu li a span,
.sidebar.collapsed .sidebar-footer .btn span,
.sidebar.collapsed .language-menu-item {
    display: none !important;
}

.sidebar.collapsed .sidebar-header i {
    margin-bottom: 0;
}

.sidebar.collapsed .sidebar-menu {
    padding: 14px 0;
    padding-bottom: 76px;
    overflow-x: hidden;
}

.sidebar.collapsed .sidebar-menu::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar.collapsed .sidebar-menu li {
    margin: 6px 0;
}

.sidebar.collapsed .sidebar-menu li a {
    justify-content: center;
    padding: 15px 0;
    font-size: 0;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-menu li a i {
    width: auto;
    min-width: 0;
    font-size: 22px;
    margin: 0;
}

.sidebar.collapsed .sidebar-menu li a:hover,
.sidebar.collapsed .sidebar-menu li.active > a {
    border-left-width: 4px;
    padding-left: 0;
}

.sidebar.collapsed .sidebar-footer {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 62px;
    padding: 9px 8px;
}

.sidebar.collapsed .sidebar-footer .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px !important;
    height: 46px;
    padding: 0;
    margin: 0 auto;
    border-radius: 14px;
    font-size: 0;
    overflow: visible;
}

.sidebar.collapsed .sidebar-footer .btn i {
    font-size: 20px;
    margin: 0;
    color: #ffffff;
    line-height: 1;
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    background: var(--secondary-light);
}

.sidebar-header i {
    font-size: 35px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sidebar-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding-bottom: 112px;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu li a i {
    font-size: 18px;
    width: 30px;
    color: var(--primary-color);
}

.sidebar-menu li a:hover,
.sidebar-menu li.active > a {
    background: var(--secondary-light);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.sidebar-menu .sidebar-menu-group {
    margin: 8px 0;
}

.sidebar-menu .sidebar-menu-group > .sidebar-group-link {
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(255, 215, 0, 0.08);
    border-top: 1px solid rgba(255, 215, 0, 0.18);
    border-bottom: 1px solid rgba(255, 215, 0, 0.18);
}

.sidebar-menu .sidebar-menu-group.active > .sidebar-group-link,
.sidebar-menu .sidebar-menu-group > .sidebar-group-link:hover {
    background: var(--secondary-light);
    border-left: 4px solid var(--primary-color);
}

.sidebar-group-arrow {
    margin-left: auto;
    width: auto !important;
    font-size: 12px !important;
    transition: transform 0.2s ease;
}

.sidebar-menu .sidebar-menu-group.open .sidebar-group-arrow {
    transform: rotate(0deg);
}

.sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 5px 0 8px 0;
    background: rgba(0, 0, 0, 0.16);
    border-left: 2px solid rgba(255, 215, 0, 0.35);
}

.sidebar-submenu li {
    margin: 2px 0;
}

.sidebar-submenu li a {
    padding: 10px 18px 10px 34px;
    font-size: 0.92rem;
}

.sidebar-submenu li a i {
    font-size: 15px;
    width: 24px;
}

.sidebar-submenu li.active a,
.sidebar-submenu li a:hover {
    color: var(--primary-color);
    background: rgba(255, 215, 0, 0.12);
    border-left: 4px solid var(--primary-color);
}

.sidebar.collapsed .sidebar-menu .sidebar-menu-group > .sidebar-group-link {
    justify-content: center;
    padding: 15px 0;
}

.sidebar.collapsed .sidebar-submenu,
.sidebar.collapsed .sidebar-group-arrow {
    display: none !important;
}

.sidebar-menu li.language-menu-item {
    margin: 12px 16px 5px;
    padding: 14px 0 0;
    border-top: 1px solid var(--border-color);
}

.sidebar-menu li.language-menu-item .language-switcher {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    z-index: auto;
}

.sidebar-menu li.language-menu-item .language-switcher .btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 14px;
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-align: left;
}

.sidebar-menu li.language-menu-item .language-switcher .btn:hover,
.sidebar-menu li.language-menu-item .language-switcher .btn:focus {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.sidebar-menu li.language-menu-item .language-switcher .dropdown-menu {
    width: 100%;
    min-width: 100%;
    background-color: var(--secondary-color);
    border-color: var(--border-color);
}

.sidebar-menu li.language-menu-item .language-switcher .dropdown-item {
    color: #ffffff !important;
    background-color: transparent;
    font-weight: 600;
}

.sidebar-menu li.language-menu-item .language-switcher .dropdown-item:hover,
.sidebar-menu li.language-menu-item .language-switcher .dropdown-item:focus {
    color: var(--secondary-color) !important;
    background-color: var(--primary-color);
}

.sidebar-menu li.language-menu-item .language-switcher:not(.dropdown) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.sidebar-menu li.language-menu-item .language-switcher:not(.dropdown) .btn {
    justify-content: center;
    padding-left: 6px;
    padding-right: 6px;
}

.sidebar-footer {
    width: 100%;
    padding: 20px;
    border-top: 2px solid var(--border-color);
    background-color: var(--sidebar-bg);
    z-index: 100;
    margin-top: 0;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.2);
}

.sidebar-footer .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-footer .btn-danger {
    background-color: var(--danger-color);
    border: none;
}

/* =======================
   Main Content Styles
   ======================= */

.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background-color: var(--background-color);
    transition: all 0.3s ease;
}

.main-content.expanded {
    margin-left: 70px;
}

.navbar {
    background-color: var(--secondary-color) !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding: 15px 20px;
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 20px;
    flex-shrink: 0;
}

.navbar .mx-auto {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    text-align: center;
}

.navbar .dropdown-toggle {
    color: var(--text-color);
    text-decoration: none;
}

.navbar #userName {
    display: inline-block;
    max-width: clamp(90px, 18vw, 180px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.navbar .dropdown-menu {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.navbar .dropdown-item {
    color: var(--text-color);
}

.navbar .dropdown-item:hover {
    background-color: var(--secondary-light);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
}

.notification-dropdown {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-dropdown .dropdown-header {
    background-color: var(--secondary-light);
    color: var(--primary-color);
    font-weight: bold;
}

.currency-switcher .form-select {
    background-color: var(--secondary-light);
    border-color: var(--border-color);
    color: var(--text-color);
    width: 100px;
}

.currency-switcher .form-select:focus {
    background-color: var(--secondary-light);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.15);
}

/* =======================
   Content Wrapper
   ======================= */

.content-wrapper {
    padding: 30px;
}

.page-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: bold;
}

/* =======================
   Statistics Cards
   ======================= */

.stat-card {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 30px;
    color: white;
}

/* Mini bar reports - normalize stat card sizing */
.minibar-report .stat-card {
    min-height: 140px;
    height: 140px;
    width: 100%;
    align-items: center;
}

.minibar-report .stat-details {
    flex: 1;
}

.minibar-report .stat-details h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
}

.minibar-report .stat-details p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-icon.bg-warning {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.stat-icon.bg-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.stat-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: bold;
}

.stat-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* =======================
   Cards
   ======================= */

.card {
    background-color: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 20px;
}

.card-header {
    background-color: var(--secondary-light);
    border-bottom: 2px solid var(--border-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 13px 13px 0 0;
}

.card-header h5 {
    color: var(--primary-color);
    margin: 0;
    font-weight: bold;
}

.card-body {
    padding: 25px;
}

.dashboard-chart-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    height: 320px;
}

.dashboard-chart-container-wide {
    height: 340px;
}

.dashboard-chart-container-small {
    height: 340px;
}

.dashboard-chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .dashboard-chart-container,
    .dashboard-chart-container-wide,
    .dashboard-chart-container-small {
        height: 280px;
        min-height: 260px;
    }
}

/* =======================
   Tables
   ======================= */

.table {
    color: var(--text-color);
}

.table thead th {
    background-color: var(--secondary-light);
    color: var(--primary-color);
    border-color: var(--border-color);
    font-weight: 600;
}

.table tbody td {
    border-color: var(--border-color);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: var(--secondary-light);
}

/* =======================
   Buttons
   ======================= */

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

#toggleSearchBtn {
    background: rgba(255, 215, 0, 0.12);
    border: 2px solid var(--primary-color);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 20px;
    padding: 6px 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

#toggleSearchBtn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 215, 0, 0.35);
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: #FFFFFF !important;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-light);
    border-color: var(--primary-color);
    color: #FFFFFF !important;
}

.btn-success {
    background-color: var(--success-color);
    border: none;
}

.btn-danger {
    background-color: var(--danger-color);
    border: none;
}

.btn-warning {
    background-color: var(--warning-color);
    border: none;
    color: var(--secondary-color);
}

.btn-info {
    background-color: var(--info-color);
    border: none;
}

/* =======================
   Forms
   ======================= */

.form-control,
.form-select {
    background-color: var(--secondary-light);
    border: 1px solid var(--border-color);
    color: #FFFFFF !important;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--secondary-light);
    border-color: var(--primary-color);
    color: #FFFFFF !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

.form-control::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-control::-moz-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
}

/* =======================
   Modal Customization
   ======================= */

.modal-content {
    background-color: var(--secondary-color);
    border: 2px solid var(--border-color);
}

.modal-header {
    background-color: var(--secondary-light);
    border-bottom: 2px solid var(--border-color);
}

.modal-title {
    color: var(--primary-color);
}

.modal-body {
    color: var(--text-color);
}

.modal-footer {
    border-top: 2px solid var(--border-color);
}

.btn-close {
    filter: invert(1);
}

/* =======================
   Badges
   ======================= */

.badge {
    font-weight: 600;
    padding: 5px 12px;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--secondary-color) !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
}

/* =======================
   Arabic RTL Support
   ======================= */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 2px solid var(--border-color);
}

html[dir="rtl"] .main-content {
    margin-left: 0;
    margin-right: 260px;
}

html[dir="rtl"] .main-content.expanded {
    margin-left: 0;
    margin-right: 70px;
}

html[dir="rtl"] .sidebar-menu li a:hover,
html[dir="rtl"] .sidebar-menu li.active > a {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

html[dir="rtl"] .sidebar.collapsed .sidebar-menu li a:hover,
html[dir="rtl"] .sidebar.collapsed .sidebar-menu li.active > a {
    padding-right: 0;
}

/* =======================
   Modern Trash Management Page
   ======================= */

.trash-modern-page {
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(220, 53, 69, 0.12), transparent 30%);
}

.trash-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid rgba(255, 215, 0, 0.28);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(38, 38, 38, 0.96), rgba(20, 20, 20, 0.98));
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}

.trash-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.14);
}

.trash-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: 800;
    font-size: 0.86rem;
}

.trash-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.trash-hero h1 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.trash-hero p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.02rem;
}

.trash-hero-icon {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary-color), #ffb300);
    color: var(--secondary-color);
    font-size: 2.8rem;
    box-shadow: 0 18px 32px rgba(255, 215, 0, 0.22);
    position: relative;
    z-index: 1;
}

.trash-stat-card {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px;
    background: rgba(38, 38, 38, 0.92);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trash-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
}

.trash-stat-card .card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
}

.trash-stat-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    font-size: 1.45rem;
}

.trash-stat-card h6 {
    margin: 0 0 6px;
    color: #ffffff !important;
    font-weight: 800;
}

.trash-stat-card h3 {
    margin: 0;
    color: #ffffff !important;
    font-weight: 900;
    font-size: 2rem;
}

.trash-stat-card .card-body,
.trash-stat-card .card-body *:not(.trash-stat-icon):not(.trash-stat-icon i) {
    color: #ffffff !important;
}

.trash-stat-danger { border-color: rgba(220, 53, 69, 0.6) !important; }
.trash-stat-danger .trash-stat-icon { background: linear-gradient(135deg, #ff416c, #dc3545); }
.trash-stat-warning { border-color: rgba(255, 193, 7, 0.65) !important; }
.trash-stat-warning .trash-stat-icon { background: linear-gradient(135deg, #ffd700, #ff9800); color: #222; }
.trash-stat-info { border-color: rgba(13, 202, 240, 0.6) !important; }
.trash-stat-info .trash-stat-icon { background: linear-gradient(135deg, #00d4ff, #0d6efd); }
.trash-stat-total { border-color: rgba(173, 181, 189, 0.45) !important; }
.trash-stat-total .trash-stat-icon { background: linear-gradient(135deg, #6c757d, #343a40); }

.trash-tabs {
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(33, 33, 33, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.trash-tabs .nav-link {
    border: 0;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
    padding: 12px 18px;
}

.trash-tabs .nav-link i {
    color: var(--primary-color);
    margin-right: 8px;
}

.trash-tabs .nav-link.active {
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--primary-color), #ffb300);
    box-shadow: 0 12px 26px rgba(255, 215, 0, 0.18);
}

.trash-tabs .nav-link.active i {
    color: var(--secondary-color);
}

.trash-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: rgba(37, 37, 37, 0.94);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.trash-panel-header {
    padding: 20px 24px;
    border: 0;
    color: #ffffff;
}

.trash-panel-header h5 {
    font-size: 1.25rem;
    font-weight: 900;
}

.trash-panel-header h5 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.trash-panel-danger { background: linear-gradient(135deg, #dc3545, #9f1d2b) !important; }
.trash-panel-warning { background: linear-gradient(135deg, #ffc107, #c47f00) !important; color: #221f1f !important; }
.trash-panel-warning h5 i { color: #221f1f; }
.trash-panel-info { background: linear-gradient(135deg, #0dcaf0, #0d6efd) !important; }

.trash-empty-btn {
    border: 0;
    border-radius: 14px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

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

.trash-panel .card-body {
    padding: 24px;
}

.trash-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.trash-table thead th {
    border: 0;
    padding: 14px 16px;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.94rem;
    font-weight: 900;
    text-transform: uppercase;
}

.trash-table thead th:first-child { border-radius: 14px 0 0 14px; }
.trash-table thead th:last-child { border-radius: 0 14px 14px 0; }

.trash-table tbody tr {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trash-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.trash-table tbody td {
    border: 0;
    padding: 16px;
    vertical-align: middle;
    color: #222222;
}

.trash-table tbody td:first-child { border-radius: 16px 0 0 16px; }
.trash-table tbody td:last-child { border-radius: 0 16px 16px 0; }

.trash-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(33, 37, 41, 0.08);
    color: #343a40;
    font-weight: 800;
}

.trash-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.trash-restore-btn,
.trash-delete-btn {
    border: 0;
    border-radius: 12px;
    padding: 9px 13px;
    font-weight: 900;
    color: #ffffff;
}

.trash-restore-btn {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.trash-delete-btn {
    background: linear-gradient(135deg, #ef4444, #991b1b);
}

.trash-restore-btn:hover,
.trash-delete-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.trash-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 86px;
    color: #6c757d;
    font-weight: 800;
    font-size: 1.05rem;
}

.trash-empty-state i {
    color: #22c55e;
    font-size: 1.4rem;
}

/* =======================
   Modern Add/Edit Client Form
   ======================= */

#clientModal .client-form-dialog {
    max-width: min(1180px, 96vw);
}

#clientModal .client-form-modal {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.26);
    overflow: hidden;
}

#clientModal .client-form-header {
    padding: 22px 28px;
    border: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 215, 0, 0.22), transparent 34%),
        linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
}

#clientModal .client-form-header .modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

#clientModal .client-form-header .modal-title::before {
    content: '\f234';
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color), #ffb300);
    color: var(--secondary-color);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.22);
}

#clientModal .client-form-header .btn-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.92);
    opacity: 1;
}

#clientModal .client-form-body {
    padding: 26px;
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.16), transparent 28%),
        linear-gradient(180deg, #f8fafc, #ffffff 42%, #f9fafb);
    color: #111827;
}

#clientModal #resubscribeSection {
    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: 20px;
    background: linear-gradient(135deg, #ecfeff, #fff7d6);
    color: #111827 !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

#clientModal #resubscribeSection,
#clientModal #resubscribeSection div,
#clientModal #resubscribeSection strong,
#clientModal #resubscribeSection label,
#clientModal #resubscribeSection i {
    color: #111827 !important;
}

#clientModal #resubscribeSection .text-muted,
#clientModal .modern-client-form small,
#clientModal .modern-client-form .text-muted {
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
}

#clientModal .client-form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 4px;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #1f2937);
    border: 1px solid rgba(255, 215, 0, 0.26);
    color: #ffffff !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.86rem;
}

#clientModal .client-form-section-title i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--secondary-color);
}

#clientModal .modern-client-form .col-md-4,
#clientModal .modern-client-form .col-md-6,
#clientModal .modern-client-form .col-md-12 {
    position: relative;
}

#clientModal .modern-client-form label.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    margin-bottom: 8px;
    color: #111827 !important;
    font-weight: 800;
    font-size: 0.92rem;
}

#clientModal .modern-client-form .form-control,
#clientModal .modern-client-form .form-select {
    min-height: 48px;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    background: #ffffff !important;
    color: #111827 !important;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    -webkit-text-fill-color: #111827 !important;
    caret-color: #111827;
}

#clientModal .modern-client-form .form-control::placeholder,
#clientModal .modern-client-form textarea.form-control::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #6c757d;
}

#clientModal .modern-client-form .form-control::-webkit-input-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #6c757d;
}

#clientModal .modern-client-form .form-control::-moz-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

#clientModal .modern-client-form .form-select option {
    color: #111111;
    background: #ffffff;
}

#clientModal .modern-client-form textarea.form-control {
    min-height: 92px;
}

#clientModal .modern-client-form .form-control:focus,
#clientModal .modern-client-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.18), 0 16px 30px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

#clientModal .modern-client-form .form-control[readonly],
#clientModal .modern-client-form .client-number-readonly,
#clientModal .modern-client-form .pool-access-readonly,
#clientModal .modern-client-form #totalPrice {
    background: linear-gradient(135deg, #fff8d6, #ffffff) !important;
    border-color: rgba(255, 215, 0, 0.5);
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

#clientModal .modern-client-form .input-group-text {
    min-width: 68px;
    justify-content: center;
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 16px 0 0 16px;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 900;
}

#clientModal .modern-client-form .input-group .form-control {
    border-radius: 0 16px 16px 0;
}

#clientModal .modern-client-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

#clientModal .modern-client-form .form-check-input {
    margin: 0;
    width: 1.15rem;
    height: 1.15rem;
    border-color: var(--primary-color);
}

#clientModal .modern-client-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#clientModal .modern-client-form .form-check-label {
    color: #111827 !important;
    font-weight: 800;
}

#clientModal .modern-client-form .btn-outline-danger {
    border-radius: 14px;
    font-weight: 900;
}

#clientModal .client-form-footer {
    padding: 18px 26px;
    border: 0;
    background: #ffffff;
    box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.08);
}

#clientModal .client-form-cancel,
#clientModal .client-form-save {
    min-width: 140px;
    border: 0;
    border-radius: 16px;
    padding: 12px 22px;
    font-weight: 900;
}

#clientModal .client-form-cancel {
    background: #111827;
    color: #ffffff !important;
}

#clientModal .client-form-save {
    background: linear-gradient(135deg, var(--primary-color), #ffb300);
    color: var(--secondary-color);
    box-shadow: 0 14px 28px rgba(255, 215, 0, 0.18);
}

#clientModal .client-form-save:hover,
#clientModal .client-form-cancel:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

#clientModal .client-search-results {
    z-index: 20;
    border-radius: 16px !important;
    overflow: hidden;
}

@media (max-width: 768px) {
    #clientModal .client-form-dialog {
        max-width: 100vw;
        margin: 0;
        min-height: 100vh;
    }

    #clientModal .client-form-modal {
        min-height: 100vh;
        border-radius: 0;
    }

    #clientModal .client-form-header,
    #clientModal .client-form-body,
    #clientModal .client-form-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    #clientModal .client-form-footer {
        flex-direction: column-reverse;
    }

    #clientModal .client-form-cancel,
    #clientModal .client-form-save {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .trash-hero {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 22px;
    }

    .trash-hero-icon {
        width: 76px;
        height: 76px;
        font-size: 2rem;
    }

    .trash-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .trash-tabs .nav-link {
        white-space: nowrap;
    }

    .trash-panel-header {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 12px;
    }

    .trash-empty-btn {
        width: 100%;
    }
}

/* =======================
   Responsive Design
   ======================= */

@media (max-width: 992px) {
    .navbar {
        padding: 10px 12px;
    }

    .navbar .container-fluid {
        gap: 0.35rem;
    }

    .navbar .language-switcher,
    .navbar .language-switcher .btn {
        max-width: 120px;
    }

    .navbar #userName {
        max-width: 110px;
    }
}

@media (max-width: 576px) {
    .navbar .language-switcher .btn {
        width: 42px;
        max-width: 42px;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0;
    }

    .navbar .language-switcher .btn i,
    .navbar .language-switcher .btn::after {
        font-size: 14px;
        margin: 0 !important;
    }

    .navbar #userName {
        max-width: 80px;
    }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    
    .sidebar.show,
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    html[dir="rtl"] .sidebar {
        left: auto;
        right: 0;
        transform: translateX(100%);
    }
    
    html[dir="rtl"] .sidebar.show,
    html[dir="rtl"] .sidebar.active {
        transform: translateX(0);
    }
    
    html[dir="rtl"] .main-content {
        margin-right: 0 !important;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    /* Show sidebar toggle button */
    #sidebarToggle {
        display: block !important;
    }
    
    /* Adjust Administrator text on small screens */
    .navbar .mx-auto h5 {
        font-size: 12px;
        letter-spacing: 0.5px !important;
    }
    
    .navbar .mx-auto h5 i {
        display: none;
    }
}

/* =======================
   Print Styles
   ======================= */

@media print {
    .sidebar,
    .navbar,
    .btn,
    .language-switcher,
    .currency-switcher,
    .notification-dropdown {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .card,
    .table {
        border-color: #000;
    }
}

/* =======================
   Custom Scrollbar
   ======================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =======================
   Animation Classes
   ======================= */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* =======================
   Modern Clients Table Styles
   ======================= */

.modern-clients-card {
    background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modern-clients-table {
    color: #fff;
    margin: 0;
}

.clients-table-scroll {
    max-height: 760px;
    overflow-y: auto;
    overflow-x: auto;
}

.clients-table-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.clients-table-scroll::-webkit-scrollbar-track {
    background: #1A1A1A;
}

.clients-table-scroll::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 10px;
}

.modern-clients-table thead {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    position: sticky;
    top: 0;
    z-index: 200;
}

.modern-clients-table thead th {
    position: sticky;
    top: 0;
    z-index: 201;
    border: none;
    padding: 12px 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    color: #FFFFFF;
    vertical-align: middle;
}

.table-header-badge {
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-weight: 700;
}

.table-header-badge i {
    font-size: 0.9rem;
}

.modern-clients-table tbody tr {
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    background: transparent;
    position: relative;
    z-index: 1;
}

.modern-clients-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.modern-clients-table tbody td {
    padding: 12px 10px;
    vertical-align: middle;
    border: none;
    font-size: 0.9rem;
}

.modern-clients-table tbody td:first-child {
    font-weight: 700;
    color: #FFD700;
    font-size: 1rem;
}

/* Client Table Badge Styles */
.modern-clients-table .badge {
    padding: 4px 10px;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.modern-clients-table .badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
    border: 1px solid rgba(40, 167, 69, 0.5);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.modern-clients-table .badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border: 1px solid rgba(220, 53, 69, 0.5);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.modern-clients-table .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    border: 1px solid rgba(255, 193, 7, 0.5);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    color: #1A1A1A;
}

.modern-clients-table .badge.bg-dark {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #FFD700 !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Pool Icon Styling */
.modern-clients-table .fa-swimming-pool {
    animation: poolWave 2s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes poolWave {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Action Buttons in Table */
.modern-clients-table .btn-sm {
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 1px;
}

.modern-clients-table .btn-sm:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modern-clients-table .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
}

.modern-clients-table .btn-primary:hover {
    border-color: #66b3ff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.modern-clients-table .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    border-color: #17a2b8;
}

.modern-clients-table .btn-info:hover {
    border-color: #5bc0de;
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
}

.modern-clients-table .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border-color: #ffc107;
    color: #1A1A1A;
}

.modern-clients-table .btn-warning:hover {
    border-color: #FFD700;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.modern-clients-table .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #dc3545;
}

.modern-clients-table .btn-danger:hover {
    border-color: #ff6b6b;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.modern-clients-table .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    border-color: #28a745;
}

.modern-clients-table .btn-success:hover {
    border-color: #5cb85c;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.modern-clients-table .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border-color: #6c757d;
}

.modern-clients-table .btn-secondary:hover {
    border-color: #95a5a6;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* Small text styling */
.modern-clients-table small.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.8rem;
}

/* Responsive Table Adjustments */
@media (max-width: 1200px) {
    .table-header-badge {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
    
    .modern-clients-table tbody td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .modern-clients-table .btn-sm {
        padding: 4px 7px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .modern-clients-card {
        border-radius: 12px;
    }
    
    .modern-clients-table thead th {
        padding: 10px 4px;
        font-size: 0.7rem;
    }
    
    .table-header-badge {
        padding: 4px 6px;
        font-size: 0.65rem;
        gap: 3px;
    }
    
    .modern-clients-table tbody td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .modern-clients-table .btn-sm {
        padding: 3px 6px;
        font-size: 0.7rem;
        margin: 1px;
    }
    
    .modern-clients-table .badge {
        padding: 3px 7px;
        font-size: 0.7rem;
    }
    
    .table-header-badge i {
        font-size: 0.7rem;
    }
    
    /* Make table scrollable horizontally on small screens */
    .modern-clients-card .table-responsive {
        overflow-x: auto;
        overflow-y: auto;
    }

    .modern-clients-table tbody tr {
        position: relative;
    }

    .modern-clients-table tbody tr:hover {
        z-index: 2;
    }
}

@media (max-width: 576px) {
    .modern-clients-table thead th {
        padding: 8px 3px;
        font-size: 0.65rem;
    }
    
    .table-header-badge {
        padding: 3px 5px;
        font-size: 0.6rem;
    }
    
    .modern-clients-table tbody td {
        padding: 6px 3px;
        font-size: 0.7rem;
    }
    
    .modern-clients-table .btn-sm {
        padding: 2px 4px;
        font-size: 0.65rem;
    }
    
    .modern-clients-table .badge {
        padding: 2px 6px;
        font-size: 0.65rem;
    }
    
    .modern-clients-table tbody td:first-child {
        font-size: 0.85rem;
    }
}

/* =======================
   Statistics Cards (Clients Page)
   ======================= */

.stats-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.invoice-stats .stats-card {
    height: 100%;
}

.gym-report-stats .stats-card {
    height: 100%;
    min-height: 120px;
    align-items: center;
}

.gym-report-stats .stats-info h3 {
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gym-report-stats .stats-info p {
    font-size: clamp(0.75rem, 1.1vw, 0.95rem);
    text-transform: none;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.gym-report-filter-label {
    color: #ffffff;
}

#gymReportTotalCard {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    border: 2px solid var(--primary-color);
}

#gymReportTotalCard h6,
#gymReportTotalCard h3 {
    color: #ffffff;
}

.invoice-stats .stats-info h3 {
    font-size: clamp(1.6rem, 2.4vw, 2.5rem);
}

.invoice-stats .stats-info p {
    font-size: clamp(0.75rem, 1.1vw, 1rem);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.stats-card-primary {
    border-color: var(--primary-color);
}

.stats-card-primary:hover {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #4A4A4A 100%);
}

.stats-card-success {
    border-color: var(--success-color);
}

.stats-card-success:hover {
    border-color: #1e7e34;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #4A4A4A 100%);
}

.stats-card-danger {
    border-color: var(--danger-color);
}

.stats-card-info {
    border-color: var(--info-color);
}

.stats-card-danger:hover {
    border-color: #bd2130;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #4A4A4A 100%);
}

.stats-card-info:hover {
    border-color: #117a8b;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #4A4A4A 100%);
}

.stats-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.stats-card-primary .stats-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.stats-card-success .stats-icon {
    background: linear-gradient(135deg, var(--success-color) 0%, #1e7e34 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.stats-card-danger .stats-icon {
    background: linear-gradient(135deg, var(--danger-color) 0%, #bd2130 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.stats-card-info .stats-icon {
    background: linear-gradient(135deg, var(--info-color) 0%, #117a8b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

.stats-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    word-break: break-word;
    background: linear-gradient(135deg, var(--primary-color) 0%, white 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-info p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coach-report-stats .card {
    height: 100%;
}

.coach-report-stats h3 {
    font-size: clamp(1.2rem, 2vw, 2.2rem);
    white-space: normal;
    word-break: break-word;
}

.coach-report-stats h6 {
    font-size: clamp(0.75rem, 1.1vw, 0.95rem);
    white-space: normal;
}

/* =======================
   Modern Coach Reports Page
   ======================= */

.coach-reports-page {
    background: linear-gradient(135deg, #f7f8fc 0%, #eef1f8 45%, #fff8e6 100%);
}

.coach-reports-modern {
    color: #1f2937;
}

.coach-reports-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(255, 193, 7, 0.34), transparent 34%), linear-gradient(135deg, #101827 0%, #23304a 60%, #111827 100%);
    color: #fff;
    box-shadow: 0 24px 55px rgba(17, 24, 39, 0.2);
    position: relative;
    overflow: hidden;
}

.coach-reports-hero::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.coach-reports-hero-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.coach-reports-hero-icon {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffc107, #ffde72);
    color: #111827;
    font-size: 2rem;
    box-shadow: 0 14px 32px rgba(255, 193, 7, 0.34);
    flex-shrink: 0;
}

.coach-reports-kicker {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffd86b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.coach-reports-hero h1,
.coach-reports-hero p {
    color: #fff;
}

.coach-reports-hero p {
    opacity: 0.86;
}

.coach-reports-hero-actions {
    position: relative;
    z-index: 1;
}

.coach-reports-hero-actions .btn {
    border: none;
    border-radius: 16px;
    color: #111827 !important;
    box-shadow: 0 12px 28px rgba(255, 193, 7, 0.26);
}

.coach-report-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 132px;
    padding: 1.35rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.coach-report-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.13);
}

.coach-report-stat-card h3 {
    margin: 0;
    color: #111827;
    font-weight: 900;
}

.coach-report-stat-card p {
    color: #64748b !important;
    font-weight: 700;
}

.coach-report-stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.coach-report-stat-primary .coach-report-stat-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.coach-report-stat-success .coach-report-stat-icon { background: linear-gradient(135deg, #059669, #34d399); }
.coach-report-stat-info .coach-report-stat-icon { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.coach-report-stat-warning .coach-report-stat-icon { background: linear-gradient(135deg, #d97706, #facc15); color: #111827; }

.coach-report-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: #fff;
    color: #111827;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.09);
    overflow: hidden;
}

.coach-report-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    background: radial-gradient(circle at right, rgba(255, 193, 7, 0.28), transparent 34%), linear-gradient(135deg, #111827 0%, #25324d 100%);
    color: #fff;
}

.coach-report-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffc107, #ffe28a);
    color: #111827;
    font-size: 1.45rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(255, 193, 7, 0.28);
    flex-shrink: 0;
}

.coach-report-title-block {
    flex: 1;
    min-width: 0;
}

.coach-report-title-block h4 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-weight: 900;
}

.coach-report-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.coach-report-contact i {
    color: #ffc107;
}

.coach-report-print-btn {
    border: none;
    border-radius: 14px;
    color: #111827 !important;
    font-weight: 800;
    white-space: nowrap;
}

.coach-report-card-body {
    padding: 1.5rem;
}

.coach-report-metric {
    height: 100%;
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.coach-report-metric span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.coach-report-metric strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.45rem;
    font-weight: 900;
}

.coach-report-status-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #334155;
    font-weight: 800;
}

.coach-report-status-strip strong {
    margin-left: 0.2rem;
    color: #111827;
}

.coach-report-load {
    min-width: 180px;
}

.coach-report-load span {
    display: block;
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.coach-report-load .progress {
    height: 9px;
    border-radius: 999px;
    background: #e2e8f0;
}

.coach-report-table-panel {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
}

.coach-report-table-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.coach-report-table-title h6 {
    margin: 0;
    color: #111827;
    font-weight: 900;
}

.coach-report-table-title i {
    color: #d97706;
}

.coach-report-table-title span {
    color: #64748b;
    font-weight: 800;
}

.coach-report-table {
    color: #1f2937;
}

.coach-report-table thead th {
    background: #111827 !important;
    color: #fff !important;
    border: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.coach-report-table tbody td {
    border-color: rgba(148, 163, 184, 0.2);
    color: #1f2937;
    vertical-align: middle;
}

.coach-report-row-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #fff3cd;
    color: #8a5a00;
    font-weight: 900;
}

.coach-report-no-clients {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 800;
}

.coach-report-no-clients i {
    color: #d97706;
}

.coach-report-empty-state {
    padding: 4rem 1.5rem;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.85);
    text-align: center;
    color: #1f2937;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.coach-report-empty-state > i {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffc107, #ffe28a);
    color: #111827;
    font-size: 2rem;
}

.coach-report-empty-state h4 {
    color: #111827;
    font-weight: 900;
}

.coach-report-empty-state p {
    color: #64748b;
}

@media (max-width: 768px) {
    .coach-reports-hero,
    .coach-report-card-header,
    .coach-report-table-title {
        flex-direction: column;
        align-items: stretch;
    }

    .coach-reports-hero {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .coach-reports-hero-content {
        align-items: flex-start;
    }

    .coach-reports-hero-actions .btn,
    .coach-report-print-btn {
        width: 100%;
    }

    .coach-report-card-body {
        padding: 1rem;
    }

    .coach-report-status-strip {
        align-items: stretch;
    }
}

/* =======================
   Modern Client Reports Page
   ======================= */

.client-reports-page {
    background: linear-gradient(135deg, #f6f8fc 0%, #eef4ff 45%, #fff9e8 100%);
}

.client-reports-modern {
    color: #111827;
}

.client-reports-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 30px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.25), transparent 32%), radial-gradient(circle at bottom left, rgba(255, 193, 7, 0.28), transparent 34%), linear-gradient(135deg, #0f172a 0%, #172554 55%, #111827 100%);
    color: #fff;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
    position: relative;
    overflow: hidden;
}

.client-reports-hero::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    right: -95px;
    bottom: -115px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.client-reports-hero-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.client-reports-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffc107, #ffe58a);
    color: #111827;
    font-size: 2rem;
    box-shadow: 0 14px 34px rgba(255, 193, 7, 0.32);
    flex-shrink: 0;
}

.client-reports-kicker {
    display: inline-flex;
    padding: 0.35rem 0.8rem;
    margin-bottom: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffd86b;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.client-reports-hero h1,
.client-reports-hero p {
    color: #fff;
}

.client-reports-hero p {
    opacity: 0.88;
}

.client-reports-hero-actions {
    position: relative;
    z-index: 1;
}

.client-reports-hero-actions .btn {
    border: none;
    border-radius: 16px;
    color: #111827 !important;
    box-shadow: 0 12px 28px rgba(255, 193, 7, 0.28);
}

.client-report-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 132px;
    padding: 1.35rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-report-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

.client-report-stat-card h3 {
    margin: 0;
    color: #111827;
    font-weight: 900;
}

.client-report-stat-card p {
    color: #64748b !important;
    font-weight: 800;
}

.client-report-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.client-report-stat-primary .client-report-stat-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.client-report-stat-success .client-report-stat-icon { background: linear-gradient(135deg, #059669, #34d399); }
.client-report-stat-info .client-report-stat-icon { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.client-report-stat-warning .client-report-stat-icon { background: linear-gradient(135deg, #d97706, #facc15); color: #111827; }

.client-report-filter-card,
.client-report-table-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.09);
    overflow: hidden;
}

.client-report-filter-header,
.client-report-table-header {
    padding: 1.15rem 1.35rem;
    background: linear-gradient(135deg, #111827, #24314c);
    color: #fff;
}

.client-report-filter-header h5,
.client-report-table-header h5 {
    margin: 0;
    color: #fff;
    font-weight: 900;
}

.client-report-filter-header i,
.client-report-table-header i {
    color: #ffc107;
}

.client-report-filter-header p,
.client-report-table-header p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.client-report-filter-body,
.client-report-table-body {
    padding: 1.35rem;
}

.client-report-input-wrap {
    position: relative;
}

.client-report-input-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
}

.client-report-input-wrap .form-control {
    padding-left: 2.75rem;
}

.client-report-filter-card .form-control,
.client-report-filter-card .form-select {
    min-height: 48px;
    border: 1px solid #d9e2ef;
    border-radius: 16px;
    background-color: #fff !important;
    color: #111827 !important;
    font-weight: 700;
}

.client-report-filter-card .form-control::placeholder {
    color: #94a3b8;
}

.client-report-reset-btn {
    min-height: 48px;
    border-radius: 16px;
    font-weight: 800;
}

.client-report-table {
    color: #1f2937;
}

.client-report-table thead th {
    background: #111827 !important;
    color: #fff !important;
    border: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.client-report-table tbody td {
    border-color: rgba(148, 163, 184, 0.22);
    color: #1f2937;
    vertical-align: middle;
}

.client-report-number,
.client-report-pill,
.client-report-coach,
.client-report-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 800;
    color: #334155;
}

.client-report-number {
    padding: 0.38rem 0.65rem;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
}

.client-report-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-report-person strong {
    display: block;
    color: #111827;
}

.client-report-person small {
    display: block;
    color: #64748b;
    font-weight: 700;
}

.client-report-avatar-sm {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffc107, #ffe58a);
    color: #111827;
    font-weight: 900;
    flex-shrink: 0;
}

.client-report-pill {
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: #f1f5f9;
}

.client-report-pill-gold {
    background: #fff3cd;
    color: #8a5a00;
}

.client-report-coach i,
.client-report-mobile i {
    color: #d97706;
}

.client-report-view-btn {
    border: none;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.client-report-view-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #fff !important;
}

.client-report-empty-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 3rem 1rem;
    color: #64748b;
}

.client-report-empty-row i {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #fff3cd;
    color: #d97706;
    font-size: 1.6rem;
}

.client-report-empty-row strong {
    color: #111827;
    font-size: 1.1rem;
}

.client-report-modal-content {
    border: none;
    border-radius: 26px;
    overflow: hidden;
    color: #111827;
}

.client-report-modal-content .modal-header {
    background: linear-gradient(135deg, #111827, #24314c);
    color: #fff;
    border: none;
}

.client-report-modal-content .modal-title {
    color: #fff;
    font-weight: 900;
}

.client-report-modal-content .btn-close {
    filter: invert(1);
    opacity: 0.9;
}

.client-report-modal-content .modal-body {
    background: #f8fafc;
    color: #111827;
}

.client-report-modal-content .modal-footer {
    background: #fff;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.client-report-detail-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #111827, #24314c);
    color: #fff;
}

.client-report-detail-avatar {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffc107, #ffe58a);
    color: #111827;
    font-weight: 900;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.client-report-detail-kicker {
    color: #ffd86b;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.client-report-detail-hero h3,
.client-report-detail-hero p {
    margin: 0;
    color: #fff;
}

.client-report-detail-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 20px;
    background: #fff;
}

.client-report-detail-card h6,
.client-report-detail-section-title {
    color: #111827;
    font-weight: 900;
}

.client-report-detail-card h6 i,
.client-report-detail-section-title i {
    color: #d97706;
}

.client-report-detail-section-title {
    margin-top: 1.15rem;
    margin-bottom: 0.75rem;
}

.client-report-detail-table {
    background: #fff;
    color: #1f2937;
    border-radius: 14px;
    overflow: hidden;
}

.client-report-detail-table thead th {
    background: #111827 !important;
    color: #fff !important;
    border-color: #111827 !important;
}

.client-report-detail-table td,
.client-report-detail-table th {
    color: #1f2937;
    border-color: rgba(148, 163, 184, 0.28);
}

.client-report-detail-table td strong {
    color: #111827;
}

@media (max-width: 768px) {
    .client-reports-hero,
    .client-report-detail-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .client-reports-hero {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .client-reports-hero-content {
        align-items: flex-start;
    }

    .client-reports-hero-actions .btn {
        width: 100%;
    }

    .client-report-filter-body,
    .client-report-table-body {
        padding: 1rem;
    }
}

/* =======================
   Modern Cash Flow Report Page
   ======================= */

.cash-flow-report-page {
    background: linear-gradient(135deg, #f7fafc 0%, #edf5ff 48%, #fff7df 100%);
}

.cash-flow-modern {
    color: #111827;
}

.cash-flow-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 30px;
    background: radial-gradient(circle at top right, rgba(255, 193, 7, 0.32), transparent 34%), radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.2), transparent 34%), linear-gradient(135deg, #101827 0%, #24314c 58%, #111827 100%);
    color: #fff;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
    position: relative;
    overflow: hidden;
}

.cash-flow-hero::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    right: -95px;
    bottom: -115px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cash-flow-hero-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.cash-flow-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffc107, #ffe58a);
    color: #111827;
    font-size: 2rem;
    box-shadow: 0 14px 34px rgba(255, 193, 7, 0.32);
    flex-shrink: 0;
}

.cash-flow-kicker {
    display: inline-flex;
    padding: 0.35rem 0.8rem;
    margin-bottom: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffd86b;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cash-flow-hero h1,
.cash-flow-hero p {
    color: #fff;
}

.cash-flow-hero p {
    opacity: 0.88;
}

.cash-flow-hero-actions {
    position: relative;
    z-index: 1;
}

.cash-flow-hero-actions .btn {
    border: none;
    border-radius: 16px;
    color: #111827 !important;
    box-shadow: 0 12px 28px rgba(255, 193, 7, 0.28);
}

.cash-flow-filter-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.09);
    overflow: hidden;
}

.cash-flow-filter-header {
    padding: 1.15rem 1.35rem;
    background: linear-gradient(135deg, #111827, #24314c);
    color: #fff;
}

.cash-flow-filter-header h5 {
    margin: 0;
    color: #fff;
    font-weight: 900;
}

.cash-flow-filter-header i {
    color: #ffc107;
}

.cash-flow-filter-header p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.cash-flow-filter-body {
    padding: 1.35rem;
}

.cash-flow-filter-card .form-label {
    color: #334155;
}

.cash-flow-filter-card .form-control,
.cash-flow-filter-card .form-select {
    min-height: 48px;
    border: 1px solid #d9e2ef;
    border-radius: 16px;
    background-color: #fff !important;
    color: #111827 !important;
    font-weight: 700;
}

.cash-flow-generate-btn,
.cash-flow-palette-btn {
    min-height: 48px;
    border-radius: 16px;
}

.cash-flow-generate-btn {
    color: #111827 !important;
}

.cash-flow-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 150px;
    padding: 1.45rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cash-flow-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.15);
}

.cash-flow-stat-icon {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.cash-flow-income-card .cash-flow-stat-icon { background: linear-gradient(135deg, #059669, #34d399); }
.cash-flow-expense-card .cash-flow-stat-icon { background: linear-gradient(135deg, #dc2626, #fb7185); }
.cash-flow-balance-card .cash-flow-stat-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); }

.cash-flow-stat-card span {
    display: block;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cash-flow-stat-card .big-number {
    margin: 0.25rem 0 0;
    font-size: clamp(1.45rem, 2.4vw, 2.35rem);
    line-height: 1.1;
    word-break: break-word;
}

.cash-flow-stat-card small {
    color: #64748b;
    font-weight: 800;
}

.cash-flow-modern .section-title {
    padding: 1.05rem 1.25rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #111827 0%, #24314c 100%) !important;
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.cash-flow-modern .section-title h4 {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.cash-flow-modern .section-title i {
    color: #ffc107;
}

.cash-flow-breakdown-card,
.cash-flow-final-summary {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 24px !important;
    background: #fff;
    color: #111827;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden;
}

.cash-flow-breakdown-card .card-header,
.cash-flow-final-summary .card-header {
    border: none;
    padding: 1rem 1.2rem;
    color: #fff !important;
}

.cash-flow-breakdown-card.income-breakdown-card .card-header,
.cash-flow-breakdown-card .card-header.bg-success {
    background: linear-gradient(135deg, #047857, #10b981) !important;
}

.cash-flow-breakdown-card.expense-breakdown-card .card-header,
.cash-flow-breakdown-card .card-header.bg-danger {
    background: linear-gradient(135deg, #991b1b, #ef4444) !important;
}

.cash-flow-final-summary .card-header,
.cash-flow-final-summary .summary-header {
    background: linear-gradient(135deg, #111827, #24314c) !important;
}

.cash-flow-breakdown-card .card-header h5,
.cash-flow-final-summary .card-header h4 {
    color: #fff;
    font-weight: 900;
}

.cash-flow-breakdown-card .card-body,
.cash-flow-final-summary .card-body {
    background: #fff;
    color: #111827;
}

.cash-flow-modern table {
    color: #1f2937;
}

.cash-flow-modern table thead th {
    background: #f8fafc;
    color: #334155;
    border-color: rgba(148, 163, 184, 0.28);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cash-flow-modern table tbody td,
.cash-flow-modern table tfoot td,
.cash-flow-modern table tfoot th,
.cash-flow-final-summary table th,
.cash-flow-final-summary table td {
    color: #1f2937;
    border-color: rgba(148, 163, 184, 0.24);
    vertical-align: middle;
}

.cash-flow-modern table tfoot tr {
    background: #f8fafc;
}

.cash-flow-final-summary table {
    margin-bottom: 0;
    border-radius: 18px;
    overflow: hidden;
}

.cash-flow-final-summary .table-primary th,
.cash-flow-final-summary .table-primary td {
    background: #fff3cd !important;
    color: #111827 !important;
}

.cash-flow-modern + footer,
.cash-flow-report-page footer:not(.system-footer) {
    color: #64748b;
}

.cash-flow-report-page .print-btn {
    border: none;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #ffc107, #ffdd66);
    color: #111827;
    box-shadow: 0 14px 30px rgba(255, 193, 7, 0.32);
}

.cash-flow-report-page .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    color: #111827;
}

.cash-flow-report-page .modal-body,
.cash-flow-report-page .modal-footer {
    background: #fff;
    color: #111827;
}

@media (max-width: 768px) {
    .cash-flow-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 1.35rem;
        border-radius: 22px;
    }

    .cash-flow-hero-content {
        align-items: flex-start;
    }

    .cash-flow-hero-actions .btn {
        width: 100%;
    }

    .cash-flow-filter-body {
        padding: 1rem;
    }

    .cash-flow-stat-card {
        min-height: 128px;
    }
}

@media (max-width: 1100px) {
    .coach-report-stats h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .stats-card {
        padding: 20px;
        gap: 15px;
    }

    .invoice-stats .stats-card {
        min-height: 120px;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stats-info h3 {
        font-size: 2rem;
    }

    .invoice-stats .stats-info h3 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .stats-info p {
        font-size: 0.85rem;
    }

    .coach-report-stats h3 {
        white-space: normal;
    }

    .gym-report-stats .stats-card {
        min-height: 110px;
    }

    .gym-report-stats .stats-info p {
        white-space: normal;
    }
}

@media (max-width: 1200px) {
    .invoice-stats .stats-card {
        padding: 18px;
        gap: 12px;
    }

    .invoice-stats .stats-icon {
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }
}

/* =======================
   Invoice Preview Modal
   ======================= */

.invoice-preview-frame {
    width: 100%;
    height: 80vh;
    border: 0;
    display: block;
    background: #fff;
}

/* =======================
   Branding Preview
   ======================= */

.branding-preview-box {
    width: 100%;
    min-height: 180px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.branding-preview-image {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    display: block;
}

.branding-favicon-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.logo-preview-img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* =======================
   Client Actions Dropdown
   ======================= */

.client-actions-dropdown {
    position: relative;
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.modern-clients-table tbody td:has(.client-actions-dropdown) {
    position: relative;
    z-index: 2;
}

.modern-clients-table tbody tr:hover .client-actions-dropdown,
.modern-clients-table tbody tr:hover td:has(.client-actions-dropdown) {
    z-index: 3;
}

.modern-clients-table tbody tr.client-dropdown-open,
.modern-clients-table tbody tr:has(.client-actions-dropdown .dropdown-menu.show) {
    position: relative;
    z-index: 3 !important;
    transform: none !important;
}

.modern-clients-table tbody tr.client-dropdown-open:hover,
.modern-clients-table tbody tr:has(.client-actions-dropdown .dropdown-menu.show):hover {
    transform: none !important;
}

body.client-action-menu-open .modern-clients-table tbody tr:not(.client-dropdown-open) .client-actions-dropdown {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.client-action-menu-open .modern-clients-table tbody tr:not(.client-dropdown-open):hover {
    transform: none !important;
    z-index: 1 !important;
    box-shadow: none !important;
}

body.client-action-menu-open .clients-table-scroll {
    overflow-y: visible;
}

body:not(.client-action-menu-open) .modern-clients-table .client-actions-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}


.client-actions-dropdown .dropdown-menu {
    z-index: 3001 !important;
}


.client-actions-dropdown .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    position: absolute;
}

.client-actions-dropdown .dropdown-toggle {
    opacity: 1 !important;
    visibility: visible !important;
    color: #ffffff !important;
    border-color: #6c757d;
    background-color: #6c757d;
    font-weight: 600;
}

.client-actions-dropdown > .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2f3438 0%, #171a1d 100%) !important;
    border: 2px solid rgba(255, 215, 0, 0.35) !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2) !important;
}

.client-actions-dropdown > .btn:hover,
.client-actions-dropdown > .btn:focus {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%) !important;
    color: #111111 !important;
    border-color: #FFD700 !important;
}

.client-actions-dropdown .dropdown-toggle:hover,
.client-actions-dropdown .dropdown-toggle:focus {
    color: #ffffff;
    background-color: #5a6268;
}

.client-actions-dropdown .dropdown-item {
    color: #000000;
}

.client-actions-dropdown .dropdown-item:hover,
.client-actions-dropdown .dropdown-item:focus {
    background-color: #f1f1f1;
    color: #000000;
}

.client-actions-sheet-modal {
    z-index: 5000;
}

body.client-action-sheet-keep-open .modal:not(.client-actions-sheet-modal) {
    z-index: 5100 !important;
}

body.client-action-sheet-keep-open .modal-backdrop.show {
    z-index: 4990;
}

.client-actions-sheet-dialog {
    width: min(92vw, 420px);
    margin-left: auto;
    margin-right: auto;
}

.client-actions-sheet-modal + .modal-backdrop,
.modal-backdrop.show:has(+ .client-actions-sheet-modal) {
    z-index: 4990;
}

.client-actions-sheet {
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    background: #f7f7f7;
}

.client-actions-sheet .modal-header {
    background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
    color: #FFD700;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding: 18px 20px;
}

.client-actions-sheet .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFD700 !important;
    font-size: 1.25rem;
    font-weight: 800;
}

.client-actions-sheet .btn-close {
    filter: invert(1);
}

.client-actions-sheet .modal-body {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: #f7f7f7;
}

.client-action-sheet-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 15px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #161616 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.client-action-sheet-btn i {
    width: 24px;
    text-align: center;
    font-size: 1.15rem;
    color: #2C2C2C !important;
}

.client-action-sheet-btn span {
    color: inherit !important;
}

.client-action-sheet-btn:hover,
.client-action-sheet-btn:focus {
    background: #fff8d8 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.client-action-danger {
    color: #dc3545 !important;
}

.client-action-danger i {
    color: #dc3545 !important;
}

@media (max-width: 576px) {
    .client-actions-sheet-dialog {
        align-items: flex-end;
        min-height: calc(100% - 1rem);
        width: 100%;
        max-width: none;
        margin: 0.5rem;
    }

    .client-actions-sheet {
        border-radius: 24px 24px 16px 16px;
    }
}

@media (max-width: 991.98px) {
    .modern-clients-table .client-actions-dropdown {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        min-height: 42px;
    }

    .modern-clients-table .client-actions-inline {
        display: none !important;
    }

    .modern-clients-table tbody tr,
    .modern-clients-table tbody tr:hover {
        transform: none !important;
    }
}

/* Desktop/tablet/mobile: keep compact single action button */
@media (min-width: 992px) {
    .client-actions-inline {
        display: none !important;
    }

    .client-actions-dropdown {
        display: block !important;
    }
}


/* =====================================================================
   Text on dark surfaces always stays light.
   Generic heading/body colour rules (and the custom Typography colours)
   must never paint dark headers, hero panels, stat cards or dark tables.
   Only `color` is forced on containers; the inherited
   -webkit-text-fill-color is set on headings alone so buttons and badges
   inside these panels keep their own text colours.  Added 2026-09-14.
   ===================================================================== */
.main-content .card-header:not(.bg-warning):not(.bg-light):not(.bg-white):not(.bg-secondary-subtle):not(.bg-primary-subtle):not(.bg-success-subtle):not(.bg-info-subtle) :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
[class$="-hero"] :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
[class*="-hero "] :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
.dark-surface :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
.admin-modern-stat-card :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
.stats-card :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
.modal-header :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
.main-content .table thead th,
.main-content .table thead th *,
.main-content .table-dark th,
.main-content .table-dark th * {
    color: #ffffff !important;
}

.main-content .card-header:not(.bg-warning):not(.bg-light):not(.bg-white):not(.bg-secondary-subtle):not(.bg-primary-subtle):not(.bg-success-subtle):not(.bg-info-subtle) :is(h1, h2, h3, h4, h5, h6, .page-title, .modal-title),
[class$="-hero"] :is(h1, h2, h3, h4, h5, h6, .page-title, .modal-title),
[class*="-hero "] :is(h1, h2, h3, h4, h5, h6, .page-title, .modal-title),
.dark-surface :is(h1, h2, h3, h4, h5, h6, .page-title, .modal-title),
.admin-modern-stat-card :is(h1, h2, h3, h4, h5, h6, .page-title, .modal-title),
.stats-card :is(h1, h2, h3, h4, h5, h6, .page-title, .modal-title),
.modal-header :is(h1, h2, h3, h4, h5, h6, .page-title, .modal-title),
.main-content .table thead th {
    -webkit-text-fill-color: #ffffff !important;
}

.main-content .card-header:not(.bg-warning):not(.bg-light):not(.bg-white):not(.bg-secondary-subtle):not(.bg-primary-subtle):not(.bg-success-subtle):not(.bg-info-subtle) :is(.text-muted, small, .opacity-75):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
[class$="-hero"] :is(.text-muted, small, .opacity-75):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
[class*="-hero "] :is(.text-muted, small, .opacity-75):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
.dark-surface :is(.text-muted, small, .opacity-75):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
.admin-modern-stat-card :is(.text-muted, small, .opacity-75):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
.stats-card :is(.text-muted, small, .opacity-75):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *),
.modal-header :is(.text-muted, small, .opacity-75):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-dark):not(.text-dark *) {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Buttons, badges and inputs inside dark panels always use their own colour */
.main-content .card-header:not(.bg-warning):not(.bg-light):not(.bg-white):not(.bg-secondary-subtle):not(.bg-primary-subtle):not(.bg-success-subtle):not(.bg-info-subtle) :is(.btn, .btn *, .badge, .badge *, .form-control, .form-select),
[class$="-hero"] :is(.btn, .btn *, .badge, .badge *, .form-control, .form-select),
[class*="-hero "] :is(.btn, .btn *, .badge, .badge *, .form-control, .form-select),
.dark-surface :is(.btn, .btn *, .badge, .badge *, .form-control, .form-select),
.admin-modern-stat-card :is(.btn, .btn *, .badge, .badge *, .form-control, .form-select),
.stats-card :is(.btn, .btn *, .badge, .badge *, .form-control, .form-select),
.modal-header :is(.btn, .btn *, .badge, .badge *, .form-control, .form-select) {
    -webkit-text-fill-color: currentcolor !important;
}

/* Light card headers keep dark text */
.main-content .card-header:is(.bg-warning, .bg-light, .bg-white) :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b):not(.badge):not(.btn):not(.btn *) {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

/* Footer sits on a dark bar */
.system-footer,
.system-footer p,
.system-footer span,
.system-footer i {
    color: rgba(255, 255, 255, 0.82) !important;
}
.system-footer strong {
    color: #ffd700 !important;
}

/* Muted helper text inside white table rows must be grey, not white */
.main-content .table tbody small.text-muted,
.main-content .modern-clients-table tbody small.text-muted,
.main-content .table tbody .text-muted {
    color: #64748b !important;
}

/* Row hover must stay light so the dark text remains readable */
.main-content .table-hover > tbody > tr:hover > *,
.main-content .table-hover tbody tr:hover,
.main-content .table tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.14) !important;
    --bs-table-accent-bg: rgba(255, 215, 0, 0.14);
    --bs-table-bg-state: rgba(255, 215, 0, 0.14);
    color: #111827 !important;
}

/* Stat cards: colour decided at runtime by [data-surface] (see auth.js);
   the mini bar report cards are also covered without JS as a fallback. */
.main-content .minibar-report .stat-card :is(h1, h2, h3, h4, h5, h6, p, span, small, div, i, strong, b):not(.badge):not(.btn):not(.btn *) {
    color: #ffffff !important;
}

/* Mini bar POS: cart total on the white summary panel */
.main-content .cart-summary .summary-total,
.main-content .cart-summary .summary-total span {
    color: #92400e !important;
}

/* Transaction status badges: every status gets a real background */
.main-content .status-badge { color: #ffffff !important; }
.main-content .status-badge.status-paid { background: #15803d !important; }
.main-content .status-badge.status-unpaid,
.main-content .status-badge.status-pending { background: #b91c1c !important; }
.main-content .status-badge.status-partial { background: #b45309 !important; }
.main-content .status-badge.status-due { background: #b45309 !important; color: #ffffff !important; }
.main-content .status-badge.status-free { background: #0e7490 !important; color: #ffffff !important; }

/* Coach avatar initials on the gold gradient */
.main-content .coach-avatar { color: #111827 !important; -webkit-text-fill-color: #111827 !important; }

/* Inventory cards: amber price / buttons were too light on white; stock badges get stronger fills */
.main-content .inventory-modern-page .inventory-card .text-warning,
.main-content .inventory-modern-page .inventory-card h5.text-warning,
.main-content .inventory-card .btn-outline-warning,
.main-content .inventory-card .btn-outline-primary {
    color: #b45309 !important;
    -webkit-text-fill-color: #b45309 !important;
}
.main-content .stock-badge.stock-high, .main-content .stock-high { background: linear-gradient(135deg, #15803d, #166534) !important; color: #ffffff !important; }
.main-content .stock-badge.stock-low, .main-content .stock-low { background: linear-gradient(135deg, #dc2626, #b91c1c) !important; color: #ffffff !important; }
.main-content .stock-badge.stock-medium, .main-content .stock-medium { background: linear-gradient(135deg, #f59e0b, #d97706) !important; color: #111827 !important; }

/* =====================================================================
   Cards that were designed dark but were turned white by the modern
   card override (their text is still white): give them their dark
   surface back.  Added 2026-09-14.
   ===================================================================== */
.main-content .card.trash-stat-card,
.main-content .card.attendance-card,
.main-content .card.contact-card,
.main-content .card.cash-card {
    background: linear-gradient(135deg, #111827 0%, #293241 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.main-content .card.trash-stat-card :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
.main-content .card.attendance-card :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
.main-content .card.contact-card :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
.main-content .card.cash-card :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *) {
    color: #ffffff !important;
}
.main-content .card.trash-stat-card :is(.text-muted, small),
.main-content .card.attendance-card :is(.text-muted, small),
.main-content .card.contact-card :is(.text-muted, small),
.main-content .card.cash-card :is(.text-muted, small) {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Dark sub-headers inside pages (filter panels, report section titles) */
.cash-flow-filter-header :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
.section-title :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
.client-report-filter-header :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
.client-report-table-header :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
.coach-report-card-header :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
[class*="-filter-header"] :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
[class*="-table-header"] :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
[class*="-card-header"]:not(.card-header) :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
.summary-header :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
.settings-card-header :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *),
.trash-panel-header :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, a:not(.btn), .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.table *) {
    color: #ffffff !important;
}
.cash-flow-filter-header :is(.text-muted, small),
.section-title :is(.text-muted, small),
.client-report-filter-header :is(.text-muted, small),
.client-report-table-header :is(.text-muted, small),
.coach-report-card-header :is(.text-muted, small),
[class*="-filter-header"] :is(.text-muted, small),
[class*="-table-header"] :is(.text-muted, small),
[class*="-card-header"]:not(.card-header) :is(.text-muted, small),
.summary-header :is(.text-muted, small),
.settings-card-header :is(.text-muted, small),
.trash-panel-header :is(.text-muted, small) {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Light (solid) buttons always keep dark text, wherever they sit */
.main-content .btn-light, .main-content .btn-light * {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

/* Coloured card headers: keep enough contrast for white text */
.main-content .card-header.bg-info    { background: #0e7490 !important; color: #ffffff !important; }
.main-content .card-header.bg-success { background: #157347 !important; color: #ffffff !important; }
.main-content .card-header.bg-warning { background: #f59e0b !important; color: #111827 !important; }
.main-content .card-header.bg-warning * { color: #111827 !important; }

/* Accent text on light backgrounds was too pale (amber / cyan) */
.main-content :is(.card, .coach-report-metric, .table) :is(.text-warning, .text-info):not(.btn):not(.badge) {
    color: #b45309 !important;
}
.main-content :is(.card, .coach-report-metric, .table) .text-info:not(.btn):not(.badge) {
    color: #0e7490 !important;
}

/* Colour settings page: reset button */
.main-content .btn-reset { background: #dc2626 !important; color: #ffffff !important; }

/* Print / stand-alone pages (no sidebar layout) render on white paper:
   text must be dark there, whatever the dark-theme body default says. */
body:not(:has(.main-content)) .invoice-container,
body:not(:has(.main-content)) .invoice-container :is(h1, h2, h3, h4, h5, h6, p, span, div, strong, b, small, td, th, label):not(.badge):not(.btn):not(.btn *),
body:not(:has(.main-content)) .invoice-details-box,
body:not(:has(.main-content)) .invoice-details-box * {
    color: #111827 !important;
}
body:not(:has(.main-content)) .invoice-title { color: #92400e !important; }

/* Small leftovers found by the contrast sweep */
.main-content .trash-empty-btn, .main-content .trash-empty-btn * { color: #111111 !important; -webkit-text-fill-color: #111111 !important; }
.main-content .attendance-stat-chip, .main-content .attendance-stat-chip * { color: #111827 !important; }
.main-content .attendance-stat-chip .text-success { color: #15803d !important; }
.main-content .attendance-stat-chip .text-danger  { color: #b91c1c !important; }
.main-content .coach-report-avatar { color: #111827 !important; -webkit-text-fill-color: #111827 !important; }
.main-content .table .text-success:not(.btn):not(.badge) { color: #15803d !important; }
.main-content .table .text-danger:not(.btn):not(.badge)  { color: #b91c1c !important; }

/* =====================================================================
   Runtime-measured surfaces (auth.js sets data-surface="dark|light" on
   .card-header / .stat-card / .stats-card from the real background).
   The :not(#surface-guard) hack lifts specificity above every class chain.
   ===================================================================== */
:is(.card-header, .stat-card, .stats-card)[data-surface="dark"]:not(#surface-guard) :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input) {
    color: #ffffff !important;
}
:is(.card-header, .stat-card, .stats-card)[data-surface="dark"]:not(#surface-guard) :is(.text-muted, small) {
    color: rgba(255, 255, 255, 0.82) !important;
}
:is(.card-header, .stat-card, .stats-card)[data-surface="light"]:not(#surface-guard) :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu):not(.dropdown-menu *):not(select):not(input):not(option):not(.form-check-input):not(.text-success):not(.text-danger):not(.text-warning):not(.text-info):not(.text-primary) {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}
:is(.card-header, .stat-card, .stats-card)[data-surface="light"]:not(#surface-guard) :is(.text-muted, small) {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}

/* Inventory: page class sits on <body>, so it must come first in the selector */
.inventory-modern-page .main-content .inventory-card .text-warning,
.inventory-modern-page .main-content .inventory-card h5.text-warning {
    color: #b45309 !important;
    -webkit-text-fill-color: #b45309 !important;
}
/* Outline buttons in the gold theme had gold/amber text on white */
.main-content .btn-outline-warning:not(:hover), .main-content .btn-outline-primary:not(:hover) {
    color: #92400e !important;
    -webkit-text-fill-color: #92400e !important;
    border-color: #d97706 !important;
}

/* Specificity guards for rules that page-level styles were beating */
:is(.card-header, .stat-card, .stats-card)[data-surface="dark"]:not(#surface-guard) :is(h1, h2, h3, h4, h5, h6, p, label, small, span, div, i, strong, b, .page-title):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.form-control):not(.form-select):not(.form-select *):not(.dropdown-menu *):not(select):not(input):not(option) {
    -webkit-text-fill-color: #ffffff !important;
}
.main-content .btn-outline-warning:not(#surface-guard):not(:hover),
.main-content .btn-outline-primary:not(#surface-guard):not(:hover) {
    color: #92400e !important;
    -webkit-text-fill-color: #92400e !important;
    border-color: #d97706 !important;
}
.main-content .attendance-stat-chip:not(#surface-guard),
.main-content .attendance-stat-chip:not(#surface-guard) * {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}
.main-content .attendance-stat-chip:not(#surface-guard) .text-success { color: #15803d !important; -webkit-text-fill-color: #15803d !important; }
.main-content .attendance-stat-chip:not(#surface-guard) .text-danger  { color: #b91c1c !important; -webkit-text-fill-color: #b91c1c !important; }

/* Tables inside the restored dark cards keep a white surface with dark text */
.main-content :is(.card.cash-card, .card.attendance-card, .card.contact-card, .card.trash-stat-card) .table {
    --bs-table-bg: #ffffff;
    --bs-table-color: #111827;
    background: #ffffff !important;
    color: #111827 !important;
    border-radius: 12px;
    overflow: hidden;
}
.main-content :is(.card.cash-card, .card.attendance-card, .card.contact-card, .card.trash-stat-card) .table :is(td, th):not(thead th) {
    color: #111827 !important;
    background-color: transparent;
}

/* =====================================================================
   Admin panel switches (settings page) - state-aware toggle component.
   Markup: .vip-switch-row[data-vip-switch] > .vip-switch-text + label.vip-switch-control
   JS (settings-ux.js) keeps data-state="on|off" and the state pill text.
   ===================================================================== */
.vip-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.vip-switch-row[data-state="on"] {
    border-color: rgba(245, 158, 11, 0.55);
    background: linear-gradient(135deg, rgba(255, 247, 214, 0.9), rgba(255, 255, 255, 0.95));
}
.vip-switch-row:hover { box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); }
.vip-switch-row.vip-switch-row-bare { padding: 0; border: 0; background: transparent; box-shadow: none; }
.vip-switch-row.vip-switch-pulse { animation: vipSwitchPulse .45s ease; }
@keyframes vipSwitchPulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); } 100% { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); } }

.vip-switch-text { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }
.vip-switch-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px; flex: 0 0 44px;
    background: linear-gradient(135deg, #ffd700, #ffb703); color: #111827 !important; font-size: 1.1rem;
}
.vip-switch-icon i { color: #111827 !important; }
.vip-switch-title {
    display: block; margin: 0; cursor: pointer; font-weight: 700; font-size: 0.98rem;
    color: #111827 !important; line-height: 1.3;
}
.vip-switch-title i { color: #b45309 !important; margin-inline-end: 4px; }
.vip-switch-desc { font-size: 0.82rem; color: #64748b !important; margin-top: 2px; line-height: 1.35; }

.vip-switch-control {
    display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; flex: 0 0 auto;
    -webkit-user-select: none; user-select: none;
}
.vip-switch-control input[type="checkbox"] {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0;
}
.vip-switch-track {
    position: relative; display: inline-block; width: 56px; height: 30px; border-radius: 999px;
    background: #cbd5e1; box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: background .25s ease, box-shadow .25s ease; flex: 0 0 56px;
}
.vip-switch-knob {
    position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%;
    background: #ffffff; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), background .25s ease;
    display: flex; align-items: center; justify-content: center; font-size: 12px; color: #b45309;
}
.vip-switch-knob::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; transition: background .25s ease; }
[data-vip-switch][data-state="on"] .vip-switch-track {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    box-shadow: inset 0 1px 3px rgba(120, 53, 15, 0.3), 0 0 0 4px rgba(245, 158, 11, 0.14);
}
[data-vip-switch][data-state="on"] .vip-switch-knob { transform: translateX(26px); }
[dir="rtl"] [data-vip-switch][data-state="on"] .vip-switch-knob { transform: translateX(-26px); }
[data-vip-switch][data-state="on"] .vip-switch-knob::after { background: #15803d; }
.vip-switch-control input:focus-visible ~ .vip-switch-track { outline: 3px solid rgba(37, 99, 235, 0.5); outline-offset: 2px; }
.vip-switch-control input:disabled ~ .vip-switch-track { opacity: .5; cursor: not-allowed; }

.vip-switch-state {
    display: inline-block; min-width: 78px; text-align: center; padding: 5px 12px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
    background: #e2e8f0; color: #475569 !important; transition: background .25s ease, color .25s ease;
}
[data-vip-switch][data-state="on"] .vip-switch-state { background: #dcfce7; color: #166534 !important; }
[data-vip-switch][data-state="off"] .vip-switch-state { background: #fee2e2; color: #991b1b !important; }

/* Rows inside dark card bodies (runtime-marked) */
.card-body[data-surface="dark"] .vip-switch-row { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.card-body[data-surface="dark"] .vip-switch-row[data-state="on"] { background: rgba(255, 215, 0, 0.12); border-color: rgba(255, 215, 0, 0.5); }
.card-body[data-surface="dark"] .vip-switch-title { color: #ffffff !important; }
.card-body[data-surface="dark"] .vip-switch-desc { color: rgba(255, 255, 255, 0.78) !important; }

/* Language rows reuse the component but keep their own flag layout */
.language-option-item.vip-switch-row { padding: 12px 14px; }
.language-option-item .language-name { color: #111827 !important; font-weight: 700; }
.language-option-item .language-code { color: #64748b !important; }

/* Unsaved-changes marker on a section's save button */
.btn-unsaved { position: relative; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35) !important; animation: vipUnsaved 1.6s ease-in-out infinite; }
.btn-unsaved::after {
    content: ""; position: absolute; top: -5px; inset-inline-end: -5px; width: 14px; height: 14px; border-radius: 50%;
    background: #ef4444; border: 2px solid #ffffff;
}
@keyframes vipUnsaved { 0%, 100% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35); } 50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.12); } }

/* Toasts */
.vip-toast-host {
    position: fixed; bottom: 72px; inset-inline-end: 20px; z-index: 12000;
    display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px));
}
.vip-toast {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px;
    background: #111827; color: #ffffff !important; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    border-inline-start: 5px solid #22c55e; animation: vipToastIn .25s ease; font-size: 0.92rem;
}
.vip-toast i { margin-top: 2px; color: #22c55e !important; }
.vip-toast-error { border-inline-start-color: #ef4444; } .vip-toast-error i { color: #ef4444 !important; }
.vip-toast-warning { border-inline-start-color: #f59e0b; } .vip-toast-warning i { color: #f59e0b !important; }
.vip-toast-info { border-inline-start-color: #38bdf8; } .vip-toast-info i { color: #38bdf8 !important; }
.vip-toast-text { flex: 1 1 auto; white-space: pre-line; color: #ffffff !important; }
.vip-toast-close { background: transparent; border: 0; color: rgba(255, 255, 255, 0.7) !important; font-size: 1.2rem; line-height: 1; padding: 0 2px; cursor: pointer; }
.vip-toast-hide { opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
@keyframes vipToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Quick navigation: active section + scroll offset */
.settings-quick-nav a.active { background: linear-gradient(135deg, #ffd700, #f59e0b) !important; color: #111827 !important; box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35); }
.settings-quick-nav a.active i { color: #111827 !important; }
.settings-modern-page .card { scroll-margin-top: 96px; }

/* Native Bootstrap switches elsewhere in the app: make them visible and on-brand */
.main-content .form-switch .form-check-input {
    width: 3em; height: 1.6em; margin-top: 0; cursor: pointer;
    background-color: #cbd5e1; border-color: #94a3b8;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.main-content .form-switch .form-check-input:checked {
    background-color: #f59e0b; border-color: #d97706;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.main-content .form-switch .form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(245, 158, 11, .25); }
@media (max-width: 575px) {
    .vip-switch-row { flex-wrap: wrap; }
    .vip-switch-control { width: 100%; justify-content: space-between; }
}

/* Choice cards (radio groups) - same family as the switches */
.vip-choice-row {
    display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 14px; cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 16px; background: rgba(255, 255, 255, 0.92);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.vip-choice-row:hover { box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); }
.vip-choice-row[data-state="on"] {
    border-color: rgba(245, 158, 11, 0.7);
    background: linear-gradient(135deg, rgba(255, 247, 214, 0.95), rgba(255, 255, 255, 0.96));
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}
.vip-choice-row input[type="radio"] {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0;
}
.vip-choice-indicator {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #94a3b8; background: #ffffff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: transparent;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.vip-choice-indicator i { color: inherit !important; }
.vip-choice-row[data-state="on"] .vip-choice-indicator { background: linear-gradient(135deg, #ffd700, #f59e0b); border-color: #d97706; color: #111827; }
.vip-choice-row input:focus-visible ~ .vip-choice-indicator { outline: 3px solid rgba(37, 99, 235, 0.5); outline-offset: 2px; }
.vip-choice-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vip-choice-title { font-weight: 700; color: #111827 !important; line-height: 1.3; }
.vip-choice-title strong { color: inherit !important; }
.vip-choice-title i { margin-inline-end: 4px; }
.vip-choice-desc { font-size: 0.82rem; color: #64748b !important; line-height: 1.35; }
.vip-choice-state {
    flex: 0 0 auto; display: none; padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800;
    letter-spacing: .02em; text-transform: uppercase; background: #dcfce7; color: #166534 !important;
}
.vip-choice-row[data-state="on"] .vip-choice-state { display: inline-block; }
.card-body[data-surface="dark"] .vip-choice-row { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.card-body[data-surface="dark"] .vip-choice-row[data-state="on"] { background: rgba(255, 215, 0, 0.12); border-color: rgba(255, 215, 0, 0.5); }
.card-body[data-surface="dark"] .vip-choice-title { color: #ffffff !important; }
.card-body[data-surface="dark"] .vip-choice-desc { color: rgba(255, 255, 255, 0.78) !important; }

/* Native radios and checkboxes elsewhere: visible and on-brand */
.main-content .form-check-input[type="radio"],
.main-content .form-check-input[type="checkbox"]:not(.form-switch .form-check-input) {
    width: 1.25em; height: 1.25em; margin-top: 0.15em; cursor: pointer; border: 2px solid #94a3b8; background-color: #ffffff;
}
.main-content .form-check-input[type="radio"]:checked,
.main-content .form-check-input[type="checkbox"]:not(.form-switch .form-check-input):checked {
    background-color: #f59e0b; border-color: #d97706;
}
.main-content .form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(245, 158, 11, .25); border-color: #d97706; }

/* =====================================================================
   Client form (Add / Edit / Re-subscribe client) - 2026-09-14
   ===================================================================== */
.vip-form-subtitle { display: block; color: rgba(255, 255, 255, 0.75) !important; font-size: 0.8rem; margin-top: 2px; }
.vip-form { background: #f4f6fa; }
.vip-form-resub {
    border: 1px dashed rgba(37, 99, 235, 0.45); background: #eef4ff; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px;
}
.vip-form-resub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vip-form-resub-head strong, .vip-form-resub-head span { color: #1e3a8a !important; }
.vip-form-resub .client-search-box { margin-top: 10px; }
.vip-form-body { display: flex; flex-direction: column; gap: 14px; }
.vip-form-section {
    background: #ffffff; border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 18px; padding: 16px 18px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.vip-form-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.vip-form-section-head h6 { margin: 0; font-weight: 800; color: #111827 !important; font-size: 1rem; }
.vip-form-section-head h6 i { color: #d97706; margin-inline-end: 4px; }
.vip-form-step {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ffd700, #f59e0b); color: #111827 !important; font-weight: 900; font-size: 0.9rem;
}
.vip-form-client-no { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #64748b !important; }
.vip-form-chip-input {
    border: 1px solid rgba(245, 158, 11, 0.5); background: #fff7d6; color: #92400e !important; font-weight: 800; border-radius: 999px;
    padding: 4px 12px; width: 110px; text-align: center; letter-spacing: 0.03em;
}
.vip-form .form-label { font-weight: 700; color: #334155 !important; font-size: 0.86rem; margin-bottom: 4px; }
.vip-form .form-label i { color: #64748b; margin-inline-end: 4px; }
.vip-req { color: #dc2626 !important; font-weight: 900; }
.vip-form .form-control, .vip-form .form-select { border-radius: 12px; border: 1px solid #cbd5e1; padding: 9px 12px; min-height: 42px; background: #ffffff; color: #111827 !important; }
.vip-form .form-control:focus, .vip-form .form-select:focus { border-color: #f59e0b; box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.22); }
.vip-form .vip-form-readonly, .vip-form .form-control[readonly] { background: #f1f5f9 !important; color: #334155 !important; border-style: dashed; }
.vip-form .input-group-text { border-radius: 12px 0 0 12px; background: #e2e8f0; border: 1px solid #cbd5e1; font-weight: 700; color: #334155 !important; }
[dir="rtl"] .vip-form .input-group-text { border-radius: 0 12px 12px 0; }
.vip-form small.text-muted { display: block; margin-top: 4px; font-size: 0.76rem; color: #64748b !important; }
.vip-form-options { display: flex; gap: 10px; flex-wrap: wrap; }
.vip-form-option {
    display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; border: 1px solid #cbd5e1; background: #fff;
    cursor: pointer; font-weight: 700; color: #334155 !important; margin: 0; transition: border-color .15s, background .15s;
}
.vip-form-option:has(input:checked) { border-color: #d97706; background: #fff7d6; color: #92400e !important; }
.vip-form-option input { margin: 0; width: 1.15em; height: 1.15em; }
.vip-form-option i { color: #d97706; }
.vip-form-total {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(135deg, #111827, #293241); border-radius: 18px; padding: 14px 18px; color: #ffffff !important;
}
.vip-form-total > div:first-child { display: flex; flex-direction: column; }
.vip-form-total-label { font-weight: 800; font-size: 1.05rem; color: #ffffff !important; }
.vip-form-total small { color: rgba(255, 255, 255, 0.72) !important; font-size: 0.78rem; }
.vip-form-total-input { max-width: 240px; }
.vip-form-total-input .input-group-text { background: #ffd700; color: #111827 !important; border-color: #ffd700; }
.vip-form-total-input .form-control { font-weight: 900; font-size: 1.15rem; color: #111827 !important; background: #fff7d6 !important; border-color: #ffd700; border-style: solid; }
/* validation feedback (native messages, plus a red edge on the field) */
.vip-form .was-validated :invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.15) !important; }
.client-form-footer { gap: 8px; }
.client-form-save { min-width: 160px; font-weight: 800; }
@media (max-width: 575px) {
    .vip-form-section { padding: 14px; border-radius: 14px; }
    .vip-form-client-no { margin-inline-start: 0; width: 100%; }
    .vip-form-total-input { max-width: 100%; width: 100%; }
}

/* Client form: the "search existing client" button must stay readable on the blue panel */
.main-content .vip-form-resub .btn-outline-primary:not(#surface-guard),
.main-content .vip-form-resub .btn-outline-primary:not(#surface-guard):hover {
    color: #1e3a8a !important; -webkit-text-fill-color: #1e3a8a !important;
    border-color: #1e3a8a !important; background: #ffffff !important;
}
#toggleSearchBtn:not(#surface-guard), #toggleSearchBtn:not(#surface-guard):hover, #toggleSearchBtn:not(#surface-guard):focus,
#toggleSearchBtn:not(#surface-guard) * {
    color: #1e3a8a !important; -webkit-text-fill-color: #1e3a8a !important;
    background: #ffffff !important; border-color: #1e3a8a !important; opacity: 1 !important;
}

/* Sidebar language row (the only language switcher in the app) */
.sidebar-menu .language-menu-item { margin-top: 10px; padding: 10px 14px 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sidebar-language { display: flex; flex-direction: column; gap: 8px; }
.sidebar-language-label { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 215, 0, 0.85) !important; font-weight: 700; }
.sidebar-language-label i { margin-inline-end: 6px; }
.sidebar-language-options { display: flex; gap: 6px; }
.sidebar-language-options button {
    flex: 1 1 0; padding: 7px 0; border-radius: 10px; border: 1px solid rgba(255, 215, 0, 0.35); background: rgba(255, 255, 255, 0.05);
    color: #ffd700 !important; font-weight: 800; font-size: 0.82rem; cursor: pointer; transition: background .15s, color .15s;
}
.sidebar-language-options button:hover { background: rgba(255, 215, 0, 0.18); }
.sidebar-language-options button.active { background: linear-gradient(135deg, #ffd700, #f59e0b); color: #111827 !important; border-color: transparent; }
.sidebar.collapsed .sidebar-language-label { display: none; }
.sidebar.collapsed .sidebar-language-options { flex-direction: column; }
