/* =======================
   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;
}

/* 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;
}

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

.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-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;
    max-height: none;
    padding-bottom: 20px;
}

.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-footer {
    width: 100%;
    padding: 20px;
    border-top: 2px solid var(--border-color);
    background-color: var(--sidebar-bg);
    z-index: 100;
    margin-top: auto;
    position: relative;
}

.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 .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;
}

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

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

/* 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;
}

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

.modern-clients-table thead th {
    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: all 0.3s ease;
    background: transparent;
    position: relative;
}

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

.modern-clients-table tbody td {
    padding: 10px 8px;
    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: visible;
    }

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

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

@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;
}

@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;
}


.client-actions-dropdown .dropdown-menu {
    z-index: 1060;
}


.client-actions-dropdown .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.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 .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;
}

/* Desktop: show all buttons, hide dropdown */
@media (min-width: 992px) {
    .client-actions-inline {
        display: flex !important;
    }

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