:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary: #10B981;
    --accent: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --warning: #F59E0B;
    --success: #10B981;
    --dark: #0F172A;
    --dark2: #1E293B;
    --text: #1E293B;
    --text-light: #64748B;
    --border: #E2E8F0;
    --light: #F8FAFC;
    --white: #ffffff;
    --sidebar-bg: #0F172A;
    --sidebar-text: #94A3B8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F1F5F9;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===================== SCREENS ===================== */
.screen {
    display: none;
}

.screen.active {
    display: flex;
}

/* ===================== LOGIN ===================== */
#loginScreen {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #312E81 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    animation: slideUp 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.logo i {
    font-size: 36px;
    color: white;
}

.login-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.login-form label i {
    color: var(--primary);
    margin-right: 6px;
}

.login-form input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--light);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.login-footer p {
    font-size: 12px;
    color: var(--text-light);
    background: var(--light);
    padding: 8px 14px;
    border-radius: 6px;
}

/* ===================== APP LAYOUT ===================== */
#appScreen {
    min-height: 100vh;
    background: #F1F5F9;
}

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    background: linear-gradient(135deg, #4F46E5, #312E81);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header i {
    font-size: 26px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 2px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(67, 56, 202, 0.9));
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-item i {
    font-size: 17px;
    width: 22px;
    text-align: center;
}

/* Pricing Card in Sidebar */
.pricing-card {
    margin: 0 12px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.pricing-header {
    padding: 12px 16px;
    background: rgba(79, 70, 229, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vehicle-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--sidebar-text);
}

.vehicle-type i {
    color: var(--primary-light);
}

.rate {
    font-weight: 700;
    color: var(--secondary);
    font-size: 14px;
}

.pricing-note {
    padding: 8px 16px;
    font-size: 11px;
    color: #475569;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    margin-bottom: 12px;
}

.user-info i {
    font-size: 32px;
    color: var(--primary-light);
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    font-size: 11px;
    color: var(--sidebar-text);
}

/* ===================== MAIN CONTENT ===================== */
.main-content {
    margin-left: 260px;
    padding: 28px 32px;
    min-height: 100vh;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h2 i {
    color: var(--primary);
    font-size: 22px;
}

/* ===================== BUTTONS ===================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 6px;
}

/* ===================== STATS GRID ===================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.25s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.primary::before {
    background: var(--primary);
}

.stat-card.success::before {
    background: var(--success);
}

.stat-card.warning::before {
    background: var(--warning);
}

.stat-card.info::before {
    background: var(--info);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #4F46E5, #6366F1);
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #10B981, #059669);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.stat-card.info .stat-icon {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
    font-weight: 500;
}

/* ===================== CARDS ===================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to right, #F8FAFC, white);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--primary);
}

.card-body {
    padding: 24px;
}

.revenue-display {
    text-align: center;
    padding: 20px 0;
}

.revenue-display .currency {
    font-size: 28px;
    color: var(--text-light);
    margin-right: 2px;
    vertical-align: top;
    margin-top: 8px;
    display: inline-block;
}

.revenue-display .amount {
    font-size: 52px;
    font-weight: 800;
    color: var(--secondary);
}

.revenue-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.revenue-stat {
    text-align: center;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.revenue-stat .label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.revenue-stat .value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
}

/* ===================== TABLES ===================== */
.table-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead tr {
    background: linear-gradient(135deg, var(--dark), var(--dark2));
}

.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: #F8FAFC;
}

.data-table td {
    padding: 16px 18px;
    font-size: 14px;
    color: var(--text);
    vertical-align: middle;
}

/* Vehicle number badge in table */
.vehicle-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    border: 1px solid #C7D2FE;
}

.vehicle-badge i {
    font-size: 12px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.badge-success {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
    border-color: #A7F3D0;
}

.badge-warning {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
    border-color: #FDE68A;
}

.badge-danger {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #991B1B;
    border-color: #FECACA;
}

.duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #F0FDF4;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #BBF7D0;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.type-badge.four-wheeler {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.type-badge.two-wheeler {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FED7AA;
}

.text-center {
    text-align: center !important;
}

/* ===================== ACTIVE VEHICLES CARDS ===================== */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.vehicle-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.25s ease;
}

.vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.vehicle-card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-card-number {
    font-size: 16px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vehicle-card-number i {
    color: var(--primary-light);
    font-size: 14px;
}

.vehicle-card-slot {
    background: rgba(79, 70, 229, 0.3);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.vehicle-card-body {
    padding: 18px 20px;
}

.vehicle-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.vehicle-info-row:last-of-type {
    border-bottom: none;
}

.vehicle-info-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.vehicle-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.vehicle-card-footer {
    padding: 14px 20px;
    background: var(--light);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.duration-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
}

.duration-display i {
    font-size: 14px;
}

/* ===================== SLOTS GRID ===================== */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.slot-item {
    background: white;
    padding: 20px 16px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: default;
}

.slot-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.slot-item.available {
    border-color: #10B981;
}

.slot-item.occupied {
    border-color: #EF4444;
    background: #FFF5F5;
}

.slot-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.slot-type {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.slot-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
}

.slot-status.available {
    background: #D1FAE5;
    color: #065F46;
}

.slot-status.occupied {
    background: #FEE2E2;
    color: #991B1B;
}

/* ===================== FORMS ===================== */
.form-container {
    max-width: 820px;
}

.parking-form {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--light);
    color: var(--text);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-actions {
    margin-top: 24px;
}

/* ===================== VEHICLE DETAILS ===================== */
.vehicle-details {
    background: linear-gradient(135deg, #F8FAFC, #EEF2FF);
    padding: 24px;
    border-radius: var(--radius);
    margin: 20px 0;
    border: 1px solid #C7D2FE;
}

.vehicle-details h4 {
    margin-bottom: 18px;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.detail-item {
    padding: 14px 16px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.detail-item .label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-item .value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

/* ===================== MESSAGES ===================== */
.error-message,
.result-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: none;
    font-weight: 500;
}

.error-message.show,
.result-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message.error,
.result-message.error {
    background: #FEF2F2;
    color: #991B1B;
    border-left: 4px solid var(--danger);
    border: 1px solid #FECACA;
    border-left: 4px solid var(--danger);
}

.result-message.success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
    border-left: 4px solid var(--success);
}

.result-message.info {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    border-left: 4px solid var(--info);
}

/* ===================== INFO BOX ===================== */
.info-box {
    background: white;
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.info-box h4 {
    margin-bottom: 16px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
}

.info-box h4 i {
    color: var(--primary);
}

.slots-info {
    display: grid;
    gap: 10px;
}

.slot-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.type-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.type-count {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

/* ===================== ACTIVITY LIST ===================== */
.activity-list {
    max-height: 320px;
    overflow-y: auto;
}

.activity-item {
    padding: 12px 16px;
    border-left: 3px solid var(--primary);
    background: var(--light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
}

/* ===================== REPORTS ===================== */
.reports-container {
    display: grid;
    gap: 24px;
}

.report-section {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.report-section h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-section h3 i {
    color: var(--primary);
}

.report-result {
    margin-top: 20px;
}

/* ===================== ANALYTICS ===================== */
.analytics-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: white;
    padding: 6px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.analytics-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-light);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.analytics-tab:hover {
    background: var(--light);
    color: var(--text);
}

.analytics-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.analytics-content {
    display: none;
}

.analytics-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.stat-highlight {
    text-align: center;
    padding: 16px 0;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
}

.stat-number.revenue {
    color: var(--secondary);
}

.stat-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 500;
}

.growth-positive {
    color: var(--success);
    font-weight: 700;
}

.growth-negative {
    color: var(--danger);
    font-weight: 700;
}

.chart-container {
    min-height: 220px;
}

/* ===================== USERS PAGE ===================== */
.user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.user-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(3px);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
}

.user-details .name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.user-details .username {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.user-details .email {
    font-size: 12px;
    color: var(--text-light);
}

/* ===================== LOADING ===================== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 15px;
}

.loading i {
    margin-right: 8px;
    color: var(--primary);
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* ===================== RECEIPT MODAL ===================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.receipt-card {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.receipt-header {
    background: var(--primary);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.receipt-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.receipt-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.receipt-header p {
    font-size: 14px;
    opacity: 0.8;
}

.receipt-body {
    padding: 30px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.receipt-row.main {
    margin-bottom: 20px;
}

.receipt-row.main .value {
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
}

.receipt-row .label {
    color: var(--text-light);
    font-weight: 500;
}

.receipt-row .value {
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

.receipt-divider {
    height: 1px;
    border-top: 2px dashed #E2E8F0;
    margin: 20px 0;
}

.receipt-row.total {
    font-size: 20px;
    margin-top: 10px;
}

.receipt-row.total .value {
    color: var(--success);
    font-weight: 800;
    font-size: 24px;
}

#receiptNumberRow {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
    opacity: 0.7;
}

.receipt-footer {
    padding: 30px;
    background: #F8FAFC;
    text-align: center;
    border-top: 1px solid #E2E8F0;
}

.receipt-footer p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.receipt-actions {
    display: flex;
    gap: 12px;
}

.receipt-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
}