/* ==========================================================================
   CleanSpark TRACKING DASHBOARD - PROFESSIONAL STYLESHEET
   ========================================================================== */

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

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --dark-color: #1e1e2f;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    
    /* Light Theme Variables */
    --bg-body: #f4f7fc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-sidebar: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-topbar: #ffffff;
    --bg-footer: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-modal-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-section-alt: #f8fafc;
    --bg-hover: #f1f5f9;
    --bg-pin-input-focus: #f0f4ff;
    --bg-approve-summary: #f0fdf4;
    --bg-payment-card-ui: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --bg-payment-modal-header: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-payment-method-option: #f8fafc;
    --bg-payment-method-option-hover: #ffffff;
    --bg-payment-method-selected: #eff1fe;
    --bg-share-preview: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-share-link-section: #f8fafc;
    --bg-add-method-card: #f8fafc;
    --bg-add-method-card-hover: #ffffff;
    --bg-rating-question: #f8fafc;
    --bg-notification-icon-blue: #eff6ff;
    --bg-notification-icon-green: #f0fdf4;
    --bg-notification-icon-purple: #faf5ff;
    --bg-notification-icon-orange: #fff7ed;
    --bg-success-checkmark: #d1fae5;
    --bg-rated-label: #f0fdf4;
    --bg-staff-avatar: linear-gradient(135deg, #e9d8fd, #c4b5fd);
    --bg-pin-section: #ffffff;
    --bg-quote-document: #ffffff;
    --bg-terms-scroll-track: #f1f5f9;
    --bg-terms-scroll-thumb: #cbdde9;
    --bg-quote-doc-th: #f8fafc;
    --bg-rating-bar-track: #f1f5f9;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-login-overlay: rgba(0, 0, 0, 0.7);
    --bg-empty-icon: #cbdde9;
    --bg-hamburger: #f8fafc;
    --bg-toast: #ffffff;
    --bg-share-option: #ffffff;
    --bg-staff-info-card: #ffffff;
    --bg-staff-rating-section: #ffffff;
    --bg-invoice-card: #ffffff;
    --bg-invoice-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --text-primary: #1a202c;
    --text-secondary: #475569;
    --text-muted: #6c757d;
    --text-light: #94a3b8;
    --text-sidebar: rgba(255,255,255,0.8);
    --text-sidebar-active: #ffffff;
    --text-footer: rgba(255,255,255,0.8);
    --text-footer-hover: #ffffff;
    --text-white: #ffffff;
    --text-payment-card: rgba(255,255,255,0.9);
    --text-payment-card-label: rgba(255,255,255,0.5);
    --text-payment-card-brand: rgba(255,255,255,0.6);
    --text-success: #059669;
    --text-staff-avatar: #764ba2;
    --text-staff-name: #ffffff;
    --text-staff-role: rgba(255,255,255,0.85);
    --text-rating-stars-empty: #d1d5db;
    
    --border-color: #e2e8f0;
    --border-light: #eef2f8;
    --border-dashed: #cbdde9;
    --border-sidebar-link: rgba(255,255,255,0.1);
    --border-footer: rgba(255,255,255,0.1);
    --border-footer-copyright: rgba(255,255,255,0.1);
    --border-approve-summary: #bbf7d0;
    --border-rated-label: #bbf7d0;
    --border-payment-method: #e2e8f0;
    --border-share-option: #e2e8f0;
    --border-add-method: #e2e8f0;
    --border-rating-question: #eef2f8;
    --border-staff-online-dot: #ffffff;
    --border-pin-input: #e2e8f0;
    --border-quote-doc-footer: #e2e8f0;
    --border-quote-doc-header: #4361ee;
    
    --shadow-card: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-card-hover: 0 20px 30px -15px rgba(0,0,0,0.15);
    --shadow-modal: 0 30px 60px rgba(0,0,0,0.2);
    --shadow-lg: 0 30px 60px rgba(0,0,0,0.3);
    --shadow-login-card: 0 30px 60px rgba(0,0,0,0.3);
    --shadow-login-icon: 0 15px 30px rgba(102, 126, 234, 0.4);
    --shadow-staff-avatar: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-staff-info-card: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-payment-method-icon: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-notification-toast: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-share-option-hover: 0 12px 24px rgba(0,0,0,0.1);
    --shadow-add-method-hover: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-invoice-card: 0 4px 12px rgba(0,0,0,0.08);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-payment-card: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-payment-chip: linear-gradient(135deg, #ffd700, #ffaa00);
    --gradient-rating-bar: linear-gradient(90deg, #fbbf24, #f59e0b);
    
    --status-upcoming-bg: #e8f0fe;
    --status-upcoming-text: #4361ee;
    --status-delivered-bg: #e0f2e9;
    --status-delivered-text: #1e7b48;
    --status-cancelled-bg: #fee9e6;
    --status-cancelled-text: #dc3545;
    --status-unpaid-bg: #fff0db;
    --status-unpaid-text: #e68a2e;
    --status-completed-bg: #d1fae5;
    --status-completed-text: #059669;
    --status-pending-bg: #fff3cd;
    --status-pending-text: #b45309;
    --status-paid-bg: #d1fae5;
    --status-paid-text: #059669;
    --status-partial-bg: #fed7aa;
    --status-partial-text: #9a3412;
    
    --scrollbar-track: #f1f5f9;
    --scrollbar-thumb: #cbdde9;
    --scrollbar-sidebar-track: rgba(255,255,255,0.1);
    --scrollbar-sidebar-thumb: rgba(255,255,255,0.3);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --bg-body: #121212;
    --bg-white: #1e1e2f;
    --bg-card: #1e1e2f;
    --bg-input: #2a2a3e;
    --bg-sidebar: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 100%);
    --bg-topbar: #1e1e2f;
    --bg-footer: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 100%);
    --bg-modal-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-section-alt: #2a2a3e;
    --bg-hover: #2a2a3e;
    --bg-pin-input-focus: #2a2a4e;
    --bg-approve-summary: #1a3a2a;
    --bg-payment-card-ui: linear-gradient(135deg, #0a0a1e 0%, #0d0d2e 50%, #0a1a3e 100%);
    --bg-payment-modal-header: linear-gradient(135deg, #0a0a1e 0%, #0d0d2e 100%);
    --bg-payment-method-option: #2a2a3e;
    --bg-payment-method-option-hover: #1e1e2f;
    --bg-payment-method-selected: #2a2a4e;
    --bg-share-preview: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-share-link-section: #2a2a3e;
    --bg-add-method-card: #2a2a3e;
    --bg-add-method-card-hover: #1e1e2f;
    --bg-rating-question: #2a2a3e;
    --bg-notification-icon-blue: #1a2a3a;
    --bg-notification-icon-green: #1a3a2a;
    --bg-notification-icon-purple: #2a1a3a;
    --bg-notification-icon-orange: #3a2a1a;
    --bg-success-checkmark: #1a3a2a;
    --bg-rated-label: #1a3a2a;
    --bg-staff-avatar: linear-gradient(135deg, #3a2a5e, #2a1a4e);
    --bg-pin-section: #1e1e2f;
    --bg-quote-document: #1e1e2f;
    --bg-terms-scroll-track: #2a2a3e;
    --bg-terms-scroll-thumb: #3a3a4e;
    --bg-quote-doc-th: #2a2a3e;
    --bg-rating-bar-track: #2a2a3e;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --bg-login-overlay: rgba(0, 0, 0, 0.85);
    --bg-empty-icon: #3a3a4e;
    --bg-hamburger: #2a2a3e;
    --bg-toast: #1e1e2f;
    --bg-share-option: #1e1e2f;
    --bg-staff-info-card: #1e1e2f;
    --bg-staff-rating-section: #1e1e2f;
    --bg-invoice-card: #1e1e2f;
    --bg-invoice-header: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 100%);
    
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-muted: #a0a0b0;
    --text-light: #888898;
    --text-sidebar: rgba(255,255,255,0.75);
    --text-sidebar-active: #ffffff;
    --text-footer: rgba(255,255,255,0.75);
    --text-footer-hover: #ffffff;
    --text-white: #ffffff;
    --text-payment-card: rgba(255,255,255,0.9);
    --text-payment-card-label: rgba(255,255,255,0.5);
    --text-payment-card-brand: rgba(255,255,255,0.6);
    --text-success: #4ade80;
    --text-staff-avatar: #a78bfa;
    --text-staff-name: #ffffff;
    --text-staff-role: rgba(255,255,255,0.85);
    --text-rating-stars-empty: #4a4a5e;
    
    --border-color: #3a3a4e;
    --border-light: #2a2a3e;
    --border-dashed: #3a3a4e;
    --border-sidebar-link: rgba(255,255,255,0.08);
    --border-footer: rgba(255,255,255,0.08);
    --border-footer-copyright: rgba(255,255,255,0.08);
    --border-approve-summary: #2a4a3a;
    --border-rated-label: #2a4a3a;
    --border-payment-method: #3a3a4e;
    --border-share-option: #3a3a4e;
    --border-add-method: #3a3a4e;
    --border-rating-question: #2a2a3e;
    --border-staff-online-dot: #1e1e2f;
    --border-pin-input: #3a3a4e;
    --border-quote-doc-footer: #3a3a4e;
    --border-quote-doc-header: #4361ee;
    
    --shadow-card: 0 5px 15px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 20px 30px -15px rgba(0,0,0,0.4);
    --shadow-modal: 0 30px 60px rgba(0,0,0,0.5);
    --shadow-lg: 0 30px 60px rgba(0,0,0,0.6);
    --shadow-login-card: 0 30px 60px rgba(0,0,0,0.5);
    --shadow-login-icon: 0 15px 30px rgba(102, 126, 234, 0.3);
    --shadow-staff-avatar: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-staff-info-card: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-payment-method-icon: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-notification-toast: 0 10px 30px rgba(0,0,0,0.4);
    --shadow-share-option-hover: 0 12px 24px rgba(0,0,0,0.3);
    --shadow-add-method-hover: 0 4px 12px rgba(0,0,0,0.2);
    --shadow-invoice-card: 0 4px 12px rgba(0,0,0,0.3);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-payment-card: linear-gradient(135deg, #0a0a1e 0%, #0d0d2e 50%, #0a1a3e 100%);
    --gradient-payment-chip: linear-gradient(135deg, #ffd700, #ffaa00);
    --gradient-rating-bar: linear-gradient(90deg, #fbbf24, #f59e0b);
    
    --status-upcoming-bg: #1a2a3a;
    --status-upcoming-text: #60a5fa;
    --status-delivered-bg: #1a3a2a;
    --status-delivered-text: #4ade80;
    --status-cancelled-bg: #3a1a1a;
    --status-cancelled-text: #f87171;
    --status-unpaid-bg: #3a2a1a;
    --status-unpaid-text: #fbbf24;
    --status-completed-bg: #1a3a2a;
    --status-completed-text: #4ade80;
    --status-pending-bg: #3a3a1a;
    --status-pending-text: #fbbf24;
    --status-paid-bg: #1a3a2a;
    --status-paid-text: #4ade80;
    --status-partial-bg: #3a2a1a;
    --status-partial-text: #fbbf24;
    
    --scrollbar-track: #2a2a3e;
    --scrollbar-thumb: #3a3a4e;
    --scrollbar-sidebar-track: rgba(255,255,255,0.08);
    --scrollbar-sidebar-thumb: rgba(255,255,255,0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========== THEME TOGGLE BUTTON ========== */
.theme-toggle-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-input);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    flex-shrink: 0;
    outline: none;
    padding: 0;
}

.theme-toggle-btn:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.3);
}

.theme-toggle-btn:active {
    transform: rotate(15deg) scale(0.95);
}

.theme-toggle-btn i {
    position: absolute;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-primary);
}

.theme-toggle-btn .bi-sun-fill {
    opacity: 0;
    transform: translateY(30px) rotate(-90deg);
    color: #f8961e;
}

.theme-toggle-btn .bi-moon-fill {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    color: #6366f1;
}

[data-theme="dark"] .theme-toggle-btn .bi-sun-fill {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

[data-theme="dark"] .theme-toggle-btn .bi-moon-fill {
    opacity: 0;
    transform: translateY(-30px) rotate(90deg);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    box-shadow: 0 0 15px rgba(248, 150, 30, 0.3);
}

/* ========== LOGIN REQUIRED OVERLAY ========== */
.login-required-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-login-overlay);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-required-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-login-card);
    animation: fadeInUp 0.5s ease-out;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-required-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: var(--text-white);
    box-shadow: var(--shadow-login-icon);
}

.login-required-card h2 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.login-required-card p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.login-required-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-login-required {
    padding: 14px 32px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-login-required.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-login-required.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-login-required.secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-login-required.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ========== DASHBOARD WRAPPER ========== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    flex: 1;
}

/* ========== SIDEBAR STYLES ========== */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    z-index: 1050;
    flex-shrink: 0;
    transform: translateX(0);
}

.sidebar-header {
    display: none;
    justify-content: flex-end;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-sidebar-link);
}

.sidebar-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-white);
    padding: 5px;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--scrollbar-sidebar-track);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--scrollbar-sidebar-thumb);
    border-radius: 4px;
}

/* Profile Section */
.profile {
    padding: 32px 20px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-sidebar-link);
    margin-bottom: 8px;
}

/* ========== PAYMENT FLOW STYLES ========== */

.payment-step {
    padding: 10px 0;
}

.payment-step-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.payment-step-label i {
    margin-right: 8px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.payment-method-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.payment-method-option.selected {
    border-color: var(--primary-color);
    background: rgba(26, 86, 219, 0.08);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.payment-method-icon {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.payment-provider-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.payment-provider-logos span {
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.payment-summary-box {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.pin-input-container {
    text-align: center;
    padding: 10px 0;
}

.pin-input-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0;
}

.pin-input {
    width: 55px;
    height: 60px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--dark-color);
    transition: all 0.2s ease;
}

.pin-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
    outline: none;
}

.pin-input-filled {
    border-color: var(--success-color);
    background: rgba(22, 163, 74, 0.05);
}

/* Payment status badges */
.payment-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.payment-status-completed {
    background: rgba(22, 163, 74, 0.15);
    color: #16a34a;
}

.payment-status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.payment-status-failed {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

/* Payment form styles */
.payment-form-group {
    margin-bottom: 20px;
}

.payment-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-form-group input,
.payment-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--bg-input);
    color: var(--text-primary);
}

.payment-form-group input:focus,
.payment-form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.card-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 12px;
}

/* Payment Success Animation */
.payment-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.payment-success-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.4s ease;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: #059669;
    animation: popIn 0.5s ease 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Avatar with image support */
.avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin: 0 auto 15px;
    overflow: hidden;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.avatar img + * {
    display: none;
}

.profile h4 {
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 6px;
    color: var(--text-white);
    letter-spacing: -0.2px;
}

.profile p {
    font-size: 0.8rem;
    color: var(--text-sidebar);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Menu List */
.menu {
    list-style: none;
    padding: 0 12px;
    margin: 0 0 20px 0;
    flex: 1;
}

.menu li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 14px;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-sidebar);
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu li i {
    font-size: 1.25rem;
    width: 28px;
    color: var(--text-sidebar);
    transition: color 0.2s;
}

.menu li:hover {
    background: rgba(255,255,255,0.2);
    color: var(--text-sidebar-active);
    transform: translateX(5px);
}

.menu li.active {
    background: rgba(255,255,255,0.25);
    color: var(--text-sidebar-active);
    font-weight: 600;
    border-left: 3px solid white;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid var(--border-sidebar-link);
    font-size: 0.7rem;
    color: var(--text-sidebar);
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--bg-topbar);
    border-radius: 15px;
    padding: 12px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hamburger-btn {
    background: var(--bg-hamburger);
    border: 1px solid var(--border-color);
    font-size: 24px;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.hamburger-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(0.98);
}

.top-bar-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.top-bar-logo .logo-small {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.top-bar-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-bar-actions i {
    font-size: 1.3rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition), color 0.3s ease;
    position: relative;
}

.top-bar-actions i:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.top-bar-actions .home-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar-actions .home-link:hover {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 2px 0 30px rgba(0, 0, 0, 0.3);
        z-index: 1060;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-header {
        display: flex;
    }
    
    .overlay-blur {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-overlay);
        backdrop-filter: blur(4px);
        z-index: 1055;
        display: none;
        transition: all 0.2s;
    }
    
    .overlay-blur.active {
        display: block;
    }
    
    .theme-toggle-btn {
        width: 36px;
        height: 36px;
    }
    .theme-toggle-btn i {
        font-size: 1rem;
    }
}

/* Desktop: Sidebar always visible */
@media (min-width: 993px) {
    .sidebar {
        position: sticky;
        transform: translateX(0) !important;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .sidebar-header {
        display: none;
    }
}

/* ========== MAIN CONTENT AREA ========== */
.content {
    flex: 1;
    padding: 24px 32px;
    background: var(--bg-body);
    transition: all 0.2s, background-color 0.3s ease;
    margin-left: 280px;
}

@media (max-width: 992px) {
    .content {
        margin-left: 0;
        padding: 20px 18px;
    }
}

/* Page Title */
.page-title {
    font-weight: 700;
    font-size: 1.9rem;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.section-header {
    margin-bottom: 8px;
}

/* ========== TABS STYLES ========== */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.tab {
    background: transparent;
    border: none;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 25px;
    color: var(--text-muted);
    transition: var(--transition), background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab i {
    font-size: 1rem;
}

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

.tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 14px rgba(67, 97, 238, 0.25);
}

/* ========== BOOKING BOX & CARDS ========== */
.booking-box {
    min-height: 300px;
}

.booking-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-card, .support-card, .payment-card, .notification-item, .invoice-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 22px 26px;
    transition: var(--transition), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.invoice-card {
    cursor: pointer;
}

.invoice-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-invoice-card);
    border-color: var(--primary-color);
}

.booking-card.clickable, .support-card, .notification-item {
    cursor: pointer;
}

.booking-card.clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px 0 0 4px;
}

.booking-card.clickable:hover::before {
    opacity: 1;
}

.booking-card.clickable:hover, .support-card:hover, .notification-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-color);
}

.booking-card .click-hint {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: 0.72rem;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.booking-card.clickable:hover .click-hint {
    opacity: 1;
}

/* Badges */
.booking-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-upcoming { background: var(--status-upcoming-bg); color: var(--status-upcoming-text); }
.badge-delivered { background: var(--status-delivered-bg); color: var(--status-delivered-text); }
.badge-cancelled { background: var(--status-cancelled-bg); color: var(--status-cancelled-text); }
.badge-unpaid { background: var(--status-unpaid-bg); color: var(--status-unpaid-text); }

/* Invoice Status Badges */
.invoice-status-paid { background: var(--status-paid-bg); color: var(--status-paid-text); }
.invoice-status-unpaid { background: var(--status-unpaid-bg); color: var(--status-unpaid-text); }
.invoice-status-pending { background: var(--status-pending-bg); color: var(--status-pending-text); }
.invoice-status-partial { background: var(--status-partial-bg); color: var(--status-partial-text); }

/* Service Icon */
.service-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-section-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

/* Empty State */
.empty-state {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 70px 24px;
    text-align: center;
    border: 1px dashed var(--border-dashed);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.empty-state i {
    font-size: 64px;
    color: var(--bg-empty-icon);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.empty-state h4 {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.empty-state p {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Pay Now Button */
.pay-now-btn {
    background: #dc3545;
    border: none;
    padding: 6px 16px;
    font-size: 0.8rem;
    border-radius: 25px;
    transition: var(--transition);
    color: white;
}

.pay-now-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Utility */
.text-muted-custom {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

hr {
    opacity: 0.3;
    margin: 16px 0;
    border-color: var(--border-color);
}

/* Settings Card */
.settings-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.settings-card label {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.settings-card .form-check-label {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* ========== NOTIFICATIONS PANEL ========== */
.notification-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
}

.notification-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.icon-blue { background: var(--bg-notification-icon-blue); color: #3b82f6; }
.icon-green { background: var(--bg-notification-icon-green); color: #22c55e; }
.icon-purple { background: var(--bg-notification-icon-purple); color: #a855f7; }
.icon-orange { background: var(--bg-notification-icon-orange); color: #f97316; }

.notification-content {
    flex: 1;
}

.notification-content h5 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.notification-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.notification-time {
    font-size: 0.72rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

/* ========== PAYMENT METHODS ========== */
.payment-method-option {
    background: var(--bg-payment-method-option);
    border: 1.5px solid var(--border-payment-method);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition), background-color 0.3s ease, border-color 0.3s ease;
}

.payment-method-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-payment-method-option-hover);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.payment-method-option.selected {
    border-color: var(--primary-color);
    background: var(--bg-payment-method-selected);
}

.payment-method-option span {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.payment-method-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    box-shadow: var(--shadow-payment-method-icon);
    transition: background-color 0.3s ease;
}

/* ========== PAYMENT CARD MODAL ========== */
.payment-card-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    background-color: var(--bg-white);
    transition: background-color 0.3s ease;
}

.payment-card-modal-header {
    background: var(--bg-payment-modal-header);
    color: white;
    border: none;
    padding: 20px 28px;
}

.payment-card-ui {
    background: var(--gradient-payment-card);
    padding: 30px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.payment-card-ui::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.payment-card-chip {
    width: 50px;
    height: 40px;
    background: var(--gradient-payment-chip);
    border-radius: 8px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.payment-card-chip::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: rgba(0,0,0,0.2);
}

.payment-card-number-display {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-payment-card);
    margin-bottom: 20px;
    font-family: 'Inter', monospace;
}

.payment-card-details-row {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.payment-card-detail-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-payment-card-label);
    margin-bottom: 4px;
}

.payment-card-detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-payment-card);
}

.payment-card-brand {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: var(--text-payment-card-brand);
}

.pin-entry-section {
    background: var(--bg-pin-section);
    padding: 24px 28px;
    transition: background-color 0.3s ease;
}

.pin-entry-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.pin-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.pin-input-group input {
    width: 50px;
    height: 55px;
    border: 2px solid var(--border-pin-input);
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.2s, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-input);
}

.pin-input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

.pin-input-group input.filled {
    background: var(--bg-pin-input-focus);
    border-color: var(--primary-color);
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 12px;
    transition: color 0.3s ease;
}

.btn-confirm-payment {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-confirm-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-confirm-payment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* ========== PAYMENT DETAILS MODAL ========== */
.payment-details-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    background-color: var(--bg-white);
    transition: background-color 0.3s ease;
}

.payment-details-modal-header {
    background: var(--bg-payment-modal-header);
    color: white;
    border: none;
    padding: 20px 28px;
}

.payment-detail-section {
    background: var(--bg-section-alt);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    transition: background-color 0.3s ease;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    transition: border-color 0.3s ease;
}

.payment-detail-row:last-child {
    border-bottom: none;
}

.payment-detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.payment-detail-value {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    transition: color 0.3s ease;
}

.payment-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-status-completed {
    background: var(--status-completed-bg);
    color: var(--status-completed-text);
}

.payment-status-pending {
    background: var(--status-pending-bg);
    color: var(--status-pending-text);
}

/* ========== ADD PAYMENT METHOD MODAL ========== */
.add-method-section-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.add-method-card {
    background: var(--bg-add-method-card);
    border: 1.5px solid var(--border-add-method);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition), background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

.add-method-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-add-method-card-hover);
    box-shadow: var(--shadow-add-method-hover);
    transform: translateY(-1px);
}

.add-method-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.add-method-card-info h6 {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.add-method-card-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

/* ========== STAFF MODAL STYLES ========== */
.staff-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    background-color: var(--bg-white);
    transition: background-color 0.3s ease;
}

.staff-modal-header {
    background: var(--bg-modal-header);
    color: white;
    border: none;
    padding: 20px 28px;
}

.staff-profile-banner {
    background: var(--gradient-primary);
    padding: 28px 28px 50px;
    text-align: center;
    position: relative;
}

.staff-avatar-wrap {
    position: relative;
    display: inline-block;
}

.staff-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-staff-avatar);
    background: var(--bg-staff-avatar);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-staff-avatar);
    margin: 0 auto;
    transition: background 0.3s ease, color 0.3s ease;
}

.staff-online-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    border: 2.5px solid var(--border-staff-online-dot);
}

.staff-name {
    color: var(--text-staff-name);
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 14px;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.staff-role {
    color: var(--text-staff-role);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.staff-details-body {
    padding: 0 28px 28px;
    margin-top: -24px;
}

.staff-info-card {
    background: var(--bg-staff-info-card);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: var(--shadow-staff-info-card);
    margin-bottom: 16px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.staff-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    transition: border-color 0.3s ease;
}

.staff-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.staff-info-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.staff-info-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.staff-info-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.staff-rating-section {
    background: var(--bg-staff-rating-section);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: var(--shadow-staff-info-card);
    margin-bottom: 16px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.staff-rating-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.rating-big-score {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    transition: color 0.3s ease;
}

.rating-stars-display {
    display: flex;
    gap: 3px;
    margin: 6px 0 4px;
}

.rating-stars-display i {
    font-size: 1.1rem;
    color: #fbbf24;
}

.rating-stars-display i.empty {
    color: var(--text-rating-stars-empty);
    transition: color 0.3s ease;
}

.rating-total-reviews {
    font-size: 0.76rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.rating-bar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 14px;
    text-align: right;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.rating-bar-track {
    flex: 1;
    height: 7px;
    background: var(--bg-rating-bar-track);
    border-radius: 10px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.rating-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--gradient-rating-bar);
    transition: width 0.8s ease;
}

.rating-bar-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    width: 24px;
    text-align: right;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.staff-modal-actions {
    padding: 0 28px 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-rate-service {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-rate-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.rated-label {
    background: var(--bg-rated-label);
    border: 1px solid var(--border-rated-label);
    color: #15803d;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ========== RATING MODAL STYLES ========== */
.rating-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    background-color: var(--bg-white);
    transition: background-color 0.3s ease;
}

.rating-modal-header {
    background: var(--bg-modal-header);
    color: white;
    border: none;
    padding: 20px 28px;
}

.rating-question-block {
    background: var(--bg-rating-question);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    border: 1px solid var(--border-rating-question);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.rating-question-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.star-group {
    display: flex;
    gap: 6px;
}

.star-group i {
    font-size: 1.6rem;
    color: var(--text-rating-stars-empty);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}

.star-group i:hover,
.star-group i.selected {
    color: #fbbf24;
    transform: scale(1.15);
}

.star-group i.hovered {
    color: #fbbf24;
}

.rating-comment-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.rating-comment-textarea {
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    padding: 14px 16px;
    font-size: 0.88rem;
    resize: none;
    transition: border-color 0.2s, background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    background-color: var(--bg-input);
    color: var(--text-primary);
}

.rating-comment-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.btn-submit-rating {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 13px 32px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    margin-top: 6px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-submit-rating:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ========== GLOBAL MODAL ========== */
.global-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    background-color: var(--bg-white);
    transition: background-color 0.3s ease;
}

.global-modal-header {
    background: var(--bg-modal-header);
    color: white;
    border: none;
    padding: 20px 28px;
}

/* ========== TERMS & CONDITIONS MODAL ========== */
.terms-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    transition: color 0.3s ease;
}

.terms-scroll::-webkit-scrollbar {
    width: 4px;
}

.terms-scroll::-webkit-scrollbar-track {
    background: var(--bg-terms-scroll-track);
    border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb {
    background: var(--bg-terms-scroll-thumb);
    border-radius: 4px;
}

.terms-section-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.terms-section-title:first-child {
    margin-top: 0;
}

/* ========== FEEDBACK SECTION ========== */
.feedback-form .rating-emoji-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 15px 0;
}

.feedback-form .emoji-option {
    font-size: 2.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    filter: grayscale(100%);
    opacity: 0.6;
}

.feedback-form .emoji-option:hover,
.feedback-form .emoji-option.selected {
    transform: scale(1.3);
    filter: grayscale(0%);
    opacity: 1;
}

.feedback-form textarea {
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    padding: 14px 16px;
    font-size: 0.88rem;
    resize: none;
    transition: border-color 0.2s, background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    margin-top: 10px;
    background-color: var(--bg-input);
    color: var(--text-primary);
}

.feedback-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* ========== FOOTER STYLES ========== */
.footer {
    background: var(--bg-footer);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
    transition: background 0.3s ease;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: white;
}

.footer p {
    color: var(--text-footer);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--text-footer);
    text-decoration: none;
    transition: all 0.3s ease, color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--text-footer-hover);
    padding-left: 5px;
}

.footer ul li i {
    margin-right: 10px;
    width: 20px;
}

.footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.footer .social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer .contact-info li {
    display: flex;
    align-items: center;
    color: var(--text-footer);
    transition: color 0.3s ease;
}

.footer .contact-info li i {
    margin-right: 10px;
    color: white;
    width: 20px;
}

.footer .contact-link {
    color: var(--text-footer);
    text-decoration: none;
    transition: all 0.3s ease, color 0.3s ease;
}

.footer .contact-link:hover {
    color: var(--text-footer-hover);
    text-decoration: underline;
}

.footer .newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer .newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: rgba(255,255,255,0.9);
    color: #333;
}

.footer .newsletter-form input::placeholder {
    color: #888;
}

.footer .newsletter-form input:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.footer .newsletter-form button {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    background: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer .newsletter-form button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer .copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border-footer-copyright);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

/* Payment Success Animation */
.payment-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.payment-success-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.4s ease;
    transition: background-color 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background: var(--bg-success-checkmark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: var(--text-success);
    animation: popIn 0.5s ease 0.2s both;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.payment-success-card h2 {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.payment-success-card p {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* ========== NOTIFICATION TOAST ========== */
.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--bg-toast);
    border-radius: 12px;
    box-shadow: var(--shadow-notification-toast);
    min-width: 280px;
    max-width: 350px;
    border-left: 4px solid #4bb543;
    animation: slideInRight 0.3s ease-out;
    transition: background-color 0.3s ease;
}

.notification-toast .notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
}

.notification-toast .notification-content i {
    font-size: 1.2rem;
}

.notification-toast .notification-content span {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: var(--text-primary);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Share modal legacy */
.share-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.share-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    color: white;
}

.share-option.whatsapp { background: #25D366; }
.share-option.email { background: #EA4335; }
.share-option.sms { background: #34B7F1; }
.share-option.copy { background: var(--gray-color); }

.share-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .top-bar {
        padding: 12px 16px;
    }
    
    .top-bar-logo span {
        display: none;
    }
    
    .top-bar-actions {
        gap: 12px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .tabs {
        gap: 8px;
    }
    
    .tab {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .booking-card, .support-card, .notification-item, .invoice-card {
        padding: 16px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .booking-card .d-flex.flex-wrap {
        gap: 10px !important;
    }
    
    .staff-info-card, .staff-rating-section {
        padding: 16px;
    }
    
    .staff-modal-actions {
        padding: 0 16px 20px;
    }
    
    .staff-details-body {
        padding: 0 16px 20px;
    }
    
    .payment-card-number-display {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }
    
    .pin-input-group input {
        width: 42px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .quote-document {
        padding: 20px;
    }
    
    .quote-doc-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .quote-doc-number {
        text-align: left;
    }
    
    .login-required-card {
        padding: 30px 24px;
    }
    
    .btn-login-required {
        padding: 12px 24px;
        font-size: 0.88rem;
        width: 100%;
        justify-content: center;
    }
    
    .share-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-toggle-btn {
        width: 30px;
        height: 30px;
    }
    .theme-toggle-btn i {
        font-size: 0.85rem;
    }
}

/* ========== RESPONSIVE FOOTER FIXES ========== */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    .footer .row > div {
        margin-bottom: 30px;
    }
    
    .footer h5,
    .footer p,
    .footer ul li,
    .footer .contact-info li,
    .footer .social-links {
        text-align: left;
        justify-content: flex-start;
    }
    
    .footer h5:after {
        left: 0;
        transform: none;
    }
    
    .footer .newsletter-form {
        flex-direction: column;
    }
    
    .footer .newsletter-form button {
        width: 100%;
    }
    
    .footer .contact-info li {
        justify-content: flex-start;
    }
}

/* Payment Method Form Styles */
.payment-form-group {
    margin-bottom: 20px;
}

.payment-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.payment-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: var(--transition), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    background-color: var(--bg-input);
    color: var(--text-primary);
}

.payment-form-group input::placeholder {
    color: var(--text-muted);
}

.payment-form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.card-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Dark mode specific overrides for Bootstrap modals */
[data-theme="dark"] .modal-content {
    background-color: var(--bg-white);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--bg-input);
    color: var(--text-primary);
}

[data-theme="dark"] .form-check-input {
    background-color: var(--bg-input);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .form-check-label {
    color: var(--text-primary);
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .bg-light {
    background-color: var(--bg-section-alt) !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .shadow-sm {
    box-shadow: var(--shadow-card) !important;
}

/* Ensure all dynamic content gets themed */
[data-theme="dark"] .booking-box h5,
[data-theme="dark"] .booking-box h6,
[data-theme="dark"] .booking-box p,
[data-theme="dark"] .booking-box span,
[data-theme="dark"] .booking-box div {
    color: inherit;
}

[data-theme="dark"] .booking-box .text-muted,
[data-theme="dark"] .booking-box .text-muted-custom {
    color: var(--text-muted) !important;
}

/* ========== INVOICE STYLES ========== */
.invoice-card {
    transition: all 0.3s ease;
}

.invoice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.invoice-number {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.invoice-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.invoice-body {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.invoice-info {
    flex: 1;
}

.invoice-info p {
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.invoice-info i {
    width: 24px;
    color: var(--primary-color);
}

.invoice-amount {
    text-align: right;
}

.invoice-amount .total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.invoice-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.btn-invoice-action {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-invoice-action:hover {
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.btn-invoice-download {
    color: var(--primary-color);
}

.btn-invoice-share {
    color: #25D366;
}

/* Invoice Detail Modal Styles */
.invoice-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    background-color: var(--bg-white);
    transition: background-color 0.3s ease;
}

.invoice-modal-header {
    background: var(--bg-invoice-header);
    color: white;
    border: none;
    padding: 20px 28px;
}

.invoice-document {
    padding: 40px;
    background: var(--bg-white);
    transition: background-color 0.3s ease;
}

.invoice-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.invoice-doc-company h3 {
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.invoice-doc-company p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.invoice-doc-number {
    text-align: right;
}

.invoice-doc-number .doc-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.invoice-doc-number .doc-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.invoice-doc-section {
    margin-bottom: 25px;
}

.invoice-doc-section h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.invoice-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.invoice-info-box {
    flex: 1;
    min-width: 200px;
}

.invoice-info-box p {
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.invoice-info-box strong {
    color: var(--text-primary);
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.invoice-table th,
.invoice-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.invoice-table th {
    background: var(--bg-section-alt);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.invoice-table td {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.invoice-table td.text-end,
.invoice-table th.text-end {
    text-align: right;
}

.invoice-total-section {
    margin-top: 20px;
    text-align: right;
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
}

.invoice-total-row {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin-bottom: 8px;
}

.invoice-total-label {
    font-weight: 600;
    color: var(--text-muted);
}

.invoice-total-value {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 120px;
    text-align: right;
}

.invoice-grand-total {
    font-size: 1.2rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid var(--border-light);
}

.invoice-grand-total .invoice-total-label {
    font-size: 1rem;
    font-weight: 800;
}

.invoice-grand-total .invoice-total-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.invoice-doc-footer {
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    color: var(--text-light);
}

.invoice-actions-bar {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-light);
}

.btn-invoice-action-large {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-invoice-action-large:hover {
    transform: translateY(-2px);
}

.btn-invoice-download-large {
    background: var(--gradient-primary);
    color: white;
}

.btn-invoice-share-large {
    background: #25D366;
    color: white;
}

/* Share Options Grid */
.share-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

@media (max-width: 576px) {
    .share-options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.share-option-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.share-option-btn:hover {
    background: var(--bg-hover);
    transform: translateY(-3px);
}

.share-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.share-whatsapp .share-icon-circle { background: #25D366; }
.share-facebook .share-icon-circle { background: #1877F2; }
.share-twitter .share-icon-circle { background: #1DA1F2; }
.share-email .share-icon-circle { background: #EA4335; }
.share-sms .share-icon-circle { background: #34B7F1; }
.share-linkedin .share-icon-circle { background: #0077B5; }
.share-telegram .share-icon-circle { background: #0088cc; }
.share-copy .share-icon-circle { background: #6c757d; }

.share-option-btn span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.share-link-section {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-share-link-section);
    border-radius: 12px;
}

.share-link-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.8rem;
    background: var(--bg-input);
    color: var(--text-primary);
}

.share-link-copy-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.share-link-copy-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* Share Preview Card */
.share-preview-card {
    background: var(--bg-share-preview);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.share-quote-id {
    font-size: 0.8rem;
    opacity: 0.8;
}

.share-quote-service {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 8px 0;
}

.share-quote-total {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Approve Summary Card */
.approve-summary-card {
    background: var(--bg-approve-summary);
    border: 1px solid var(--border-approve-summary);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.approve-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.approve-summary-row:last-child {
    border-bottom: none;
}

.approve-success-icon {
    width: 60px;
    height: 60px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.approve-success-icon i {
    font-size: 30px;
    color: #059669;
}

.btn-approve-confirm {
    background: var(--gradient-success);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    width: 100%;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-approve-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-approve-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

/* Quote Document Styles */
.quote-document {
    padding: 30px;
    background: var(--bg-quote-document);
}

.quote-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-quote-doc-header);
}

.quote-doc-company h3 {
    font-weight: 800;
    color: var(--primary-color);
}

.quote-doc-number {
    text-align: right;
}

.quote-doc-number .doc-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.quote-doc-number .doc-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.quote-doc-section {
    margin-bottom: 25px;
}

.quote-doc-section h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.quote-doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.quote-doc-table th,
.quote-doc-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.quote-doc-table th {
    background: var(--bg-quote-doc-th);
    font-weight: 600;
}

.quote-doc-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border-light);
}

.quote-doc-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-quote-doc-footer);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quote-actions-bar {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-light);
}

.btn-quote-action {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-quote-download {
    background: var(--gradient-primary);
    color: white;
}

.btn-quote-share {
    background: #25D366;
    color: white;
}

.btn-quote-approve {
    background: var(--gradient-success);
    color: white;
}

.btn-quote-action:hover {
    transform: translateY(-2px);
}