/* Theme Variables */
:root {
    /* DEFAULT: LIGHT THEME */
    --bg-dark: #ffffff;
    /* Light background */
    --bg-panel-left: #ffffff;
    /* Solid white for light mode (No Glass) */
    --bg-panel-right: #ffffff;
    /* White right panel */
    /* No blur for light mode - REMOVED, now using global blur */
    --primary-red: #E63946;
    --primary-red-hover: #D32F2F;
    --text-white: #121212;
    /* Dark text for light mode */
    --text-muted: #666666;
    --border-color: #e1e1e1;
    --input-bg: #f9f9f9;
    /* Light input bg */
    --input-bg-focus: #ffffff;
    --input-border: #e1e1e1;
    --btn-social-bg: #ffffff;
    --btn-social-hover: #f9f9f9;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --glass-border: rgba(0, 0, 0, 0.05);
    /* Light mode glass border */
    --bg-menu-glass: rgba(255, 255, 255, 0.7);
    --bg-dropdown: rgba(255, 255, 255, 0.85);
    /* Semi-transparent white for glass effect */
    --backdrop-blur: blur(20px);
    /* Enable blur for light mode too */
}

/* DARK THEME OVERRIDES */
[data-theme="dark"] {
    --bg-dark: linear-gradient(135deg, #121212 0%, #1e0505 100%);
    --bg-panel-left: rgba(28, 28, 28, 0.6);
    --bg-panel-right: #000000;
    --text-white: #ffffff;
    --text-muted: #888888;
    --border-color: #333333;
    --input-bg: #2a2a2a;
    --input-bg-focus: #333333;
    --input-border: #333333;
    --btn-social-bg: transparent;
    --btn-social-hover: #2a2a2a;
    --glass-border: rgba(255, 255, 255, 0.1);
    --backdrop-blur: blur(20px);
    --bg-menu-glass: rgba(20, 20, 20, 0.7);
    --bg-dropdown: rgba(20, 20, 20, 0.95);
    /* Dark glass for dark mode */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

input,
textarea {
    -webkit-user-select: text;
    user-select: text;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    /* Subtle gradient background handled by theme var */
    color: var(--text-white);
    height: 100vh;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Background Texture/Accents to show off glass effect */
body::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    z-index: 0;
}

/* Split Screen Layout */
.split-screen {
    display: flex;
    width: 100%;
    height: 100%;
}

/* LEFT PANEL */
.left-panel {
    width: 50%;
    background: var(--bg-panel-left);
    /* Semi-transparent or solid based on theme */
    backdrop-filter: var(--backdrop-blur);
    /* Glass blur based on theme */
    -webkit-backdrop-filter: var(--backdrop-blur);
    /* Safari support */
    display: flex;
    flex-direction: column;
    padding: 2rem 4rem;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle glass border */
    z-index: 1;
    /* Ensure above background elements */
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    /* Bigger text */
    color: var(--text-white);
    /* Dynamic text color */
    margin-bottom: 2rem;
}

.brand-logo span {
    color: var(--primary-red);
}

.logo-img {
    height: 48px;
    /* Bigger logo */
    width: auto;
}

.login-wrapper {
    max-width: 400px;
    margin: auto;
    width: 100%;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-red);
    /* Changed to red */
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.75rem;
    background: var(--btn-social-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}

.social-btn:hover {
    background: var(--btn-social-hover);
    border-color: #555;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    /* Chunky inputs */
    /* Chunky inputs */
    background: var(--input-bg);
    /* Use specific input bg variable */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* Softer corners */
    color: var(--text-white);
    /* Dynamic text color */
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus {
    background: var(--input-bg-focus);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
    /* Subtle glow */
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.password-header label {
    margin-bottom: 0;
}

.forgot-password {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--text-white);
    text-decoration: underline;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    padding-right: 40px;
}

.eye-icon {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary-red);
    background: linear-gradient(135deg, var(--primary-red) 0%, #c02633 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 12px rgba(230, 57, 70, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--text-white);
    font-weight: 600;
    text-decoration: underline;
}

.legal-text {
    font-size: 0.75rem;
    color: #555;
    text-align: center;
}

.legal-text a {
    color: #777;
    text-decoration: underline;
}

/* Powered by Ploitz Effect */
.ploitz-effect-container {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 60%;
    max-width: 500px;
    opacity: 0.03;
    /* Very faint for watermark effect */
    z-index: 0;
    pointer-events: none;
    transform: rotate(-15deg);
    overflow: hidden;
    transition: opacity 0.5s ease;
}

[data-theme="dark"] .ploitz-effect-container {
    opacity: 0.05;
    /* Slightly more visible in dark mode */
    filter: invert(1);
    /* Invert if the logo is black, to make it white-ish */
}

.ploitz-watermark {
    width: 100%;
    height: auto;
    display: block;
    animation: floatWatermark 10s ease-in-out infinite;
}

@keyframes floatWatermark {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

/* RIGHT PANEL */
.right-panel {
    width: 50%;
    background-color: var(--bg-panel-right);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    position: relative;
    color: var(--text-white);
}

.docs-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.docs-btn:hover {
    color: var(--text-white);
    border-color: #666;
}

.quote-container {
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.quote-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.4) 0%, rgba(230, 57, 70, 0) 70%);
    z-index: -1;
    filter: blur(20px);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.95);
    }

    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.05);
    }

    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 1rem;
    font-family: serif;
}

.quote-text {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 2rem;
    min-height: 120px;
    /* Prevent layout jump */
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    /* Placeholder for image */
    background-image: url('https://placehold.co/40x40/333333/ffffff?text=NB');
    background-size: cover;
}

.author-info {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .right-panel {
        display: none;
    }

    .left-panel {
        width: 100%;
        padding: 2rem;
    }
}

/* 6-Digit OTP Matrix */
.otp-matrix {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 5px;
}

.otp-digit {
    width: 100%;
    aspect-ratio: 1;
    /* Makes them square */
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: white;
    outline: none;
    transition: all 0.2s ease;
}

.otp-digit:focus {
    background: var(--input-bg-focus);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

/* Store Buttons */
.store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(128, 128, 128, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-red);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 12px;
    /* Smooth rounded corners */
    color: white;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.store-btn:hover {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.notif-history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.store-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.store-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-text span:first-child {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

.store-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.quote-author-signature {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

/* Logged In View Headers */
#greeting-title {
    color: var(--primary-red) !important;
}

/* Portal Layout */
.portal-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 17.5rem;
    /* ~280px, scales with text accessibility */
    background-color: var(--primary-red);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    flex-shrink: 0;
    transition: width 0.3s ease;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 3rem;
}

.sidebar-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.sidebar-logo {
    height: 48px;
    width: auto;
    /* margin-bottom: 1rem; removed */
    /* align-self: flex-start; removed */
    /* Invert logo to white if needed or use white logo asset */
    filter: brightness(0) invert(1);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.sidebar-brand p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
    margin: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    /* Pushes footer down */
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background-color: white;
    color: var(--primary-red);
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
}

.logout-btn-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn-sidebar:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
    padding: 0;
    /* Theme background handles the rest via body/container override removal */
}

/* Override portal body styles inside layout */
.portal-layout .container {
    padding: 3rem;
    max-width: 1200px;
    /* Wider for dashboard */
    margin: 0 auto;
}

/* Portal Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    /* Or utilize theme background */
}

.header-left h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    /* Adapts to theme */
    margin-bottom: 0.2rem;
}

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    text-align: right;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary-red);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.notification-bell-wrapper:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .notification-bell-wrapper:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 110%;
    /* Just below the bell */
    right: 0;
    width: 360px;
    width: 360px;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    overflow: hidden;
    backdrop-filter: var(--backdrop-blur);
    cursor: default;
    /* Reset cursor */
}

.notification-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.notification-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dropdown);
}

.notification-dropdown-body {
    padding: 12px 16px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: background 0.2s;
}

.dropdown-notif-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .dropdown-notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-notif-item.unread {
    background: rgba(var(--primary-red-rgb), 0.05);
    /* varying bg based on read status if needed */
    /* border-left: 3px solid var(--primary-red); */
}

[data-theme="light"] .dropdown-notif-item.unread {
    background: #f0f7ff;
    /* Slight tint for unread in light mode */
}

[data-theme="dark"] .dropdown-notif-item.unread {
    background: rgba(255, 255, 255, 0.03);
}

/* Read Receipts Expansion */
.read-receipts-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: none;
    /* Hidden by default */
    animation: slideDown 0.2s ease-out;
}

.read-receipts-section.show {
    display: block;
}

.read-receipt-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.read-receipt-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: var(--input-bg);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-white);
}

.read-receipt-pfp {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.notif-item-pfp {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-item-content {
    flex: 1;
    min-width: 0;
    /* for truncation */
}

.notif-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.empty-notif-state {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Full Screen Overlays for Loading / Access Denied */
#loading,
#access-denied {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--bg-dark);
    /* Ensure it matches theme */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Force full screen overlay overrides */
#loading,
#access-denied {
    max-width: none !important;
    margin: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    /* Max z-index */
    background: var(--bg-dark);
}

/* Force CENTERED content for overlays */
#loading,
#access-denied {
    display: flex;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* User Menu Dropdown */
.user-profile {
    position: relative;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-profile:hover {
    background: rgba(128, 128, 128, 0.1);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 220px;
    background: var(--bg-panel-right);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    /* Hidden by default */
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.15s ease-out;
}

.profile-dropdown.show {
    display: flex;
}

.dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(128, 128, 128, 0.05);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: 0.7;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Submenu Arrow */
.arrow-right {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Nested Theme Menu */
.submenu-container {
    display: none;
    background: var(--bg-panel-right);
    border-top: 1px solid var(--border-color);
}

.submenu-container.show {
    display: block;
}

.theme-option {
    padding-left: 24px;
    /* Indent sub-items */
}

.theme-check {
    opacity: 0;
    color: var(--primary-red);
    font-weight: 700;
}

.theme-option.active .theme-check {
    opacity: 1;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User Profile (Clickable Trigger) */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
    user-select: none;
}

.user-profile:hover,
.user-profile.active {
    background-color: rgba(128, 128, 128, 0.1);
}

/* User Menu Dropdown */
.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 260px;
    background-color: var(--bg-menu-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: fadeInSlide 0.2s ease-out;
}

.profile-menu.show {
    display: flex;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-header {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-user-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
}

.menu-user-email {
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-all;
}

.menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 1rem;
    font-size: 0.95rem;
    color: var(--text-white);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

.menu-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: 0.7;
}

.menu-item.text-red {
    color: var(--primary-red);
}

.menu-item.text-red .menu-icon {
    fill: var(--primary-red);
    opacity: 1;
}

.menu-item.text-red:hover {
    background-color: rgba(230, 57, 70, 0.08);
    /* Light red hover */

}


/* Green Action Button */
.btn-green {
    display: inline-flex;
    align-items: center;
    background-color: #2a9d8f;
    /* Nice teal/green */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-green:hover {
    background-color: #21867a;
    transform: translateY(-1px);
}

.btn-green:active {
    transform: translateY(0);
}

/* User Data Table */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.user-table thead {
    background-color: var(--bg-panel-left);
    /* Slightly distinct header bg */
}

.user-table th {
    padding: 16px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.user-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
    vertical-align: middle;
}

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

.user-table tr:hover td {
    background-color: rgba(128, 128, 128, 0.05);
}

/* Badge styles for roles/status */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-admin {
    background-color: rgba(230, 57, 70, 0.15);
    color: var(--primary-red);
}

.badge-user {
    background-color: rgba(42, 157, 143, 0.15);
    color: #2a9d8f;
}

/* Action Menu Styles */
.user-table td:last-child {
    text-align: right;
    width: 60px;
    /* Fixed width for action column */
}

.action-wrapper {
    position: relative;
    display: inline-block;
}

.action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover,
.action-btn.active {
    background-color: rgba(128, 128, 128, 0.1);
    color: var(--text-white);
}

.action-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    width: 140px;
    background-color: var(--bg-menu-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 9999;
    max-height: 300px;
    /* Limit height */
    overflow-y: auto;
    /* Enable scrolling */
    width: 180px;
    /* Slightly wider */
    text-align: left;
}

.action-menu.show {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

/* Drop-up variation for bottom rows */
.action-menu.drop-up {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 4px;
    transform-origin: bottom right;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s;
    text-align: left;
}

.action-item:hover {
    background-color: rgba(128, 128, 128, 0.08);
}

.action-item.danger {
    color: var(--primary-red);
}

.action-item.danger:hover {
    background-color: rgba(230, 57, 70, 0.08);
}



@media (max-width: 900px) {

    /* Adjust Main Content to occupy full width */
    .main-content {
        width: 100%;
        padding-bottom: 80px;
        /* Space for bottom nav */
    }

    /* Transform Sidebar to Bottom Nav */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 0;
        background-color: var(--primary-red);
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        transition: none;
        /* No sliding */
    }

    /* Hide Sidebar Header & Footer */
    .sidebar-header,
    .sidebar-footer {
        display: none;
    }

    /* Adjust Nav Menu Layout */
    .nav-menu {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0.5rem 0;
    }

    /* Adjust Nav Items */
    .nav-item {
        flex-direction: column;
        justify-content: center;
        padding: 8px;
        gap: 4px;
        border-radius: 8px;
        font-size: 0.7rem;
        /* Tiny text if visible, or hidden */
    }

    /* Hide Nav Text on Mobile (Icon only approach as requested) */
    .nav-text {
        display: none;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
    }

    .nav-item.active {
        background-color: transparent;
        color: white;
        /* Keep white but maybe add an indicator or glow? */
    }

    .nav-item.active .nav-icon {
        fill: white;
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }

    /* Adjust Padding for smaller screens */
    .main-header {
        padding: 1rem 1.5rem;
    }

    .header-left h1 {
        font-size: 1.25rem;
    }

    .header-left p {
        display: none;
    }

    .portal-layout .container {
        padding: 1.5rem;
    }
}

/* === Changelog Filter Styles === */
.changelog-filters {
    background: var(--bg-panel-left) !important;
    border: 1px solid var(--border-color) !important;
    backdrop-filter: var(--backdrop-blur);
}

.glass-input {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    border-radius: 8px;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--input-bg-focus);
}

#changelog-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-panel-left);
    /* Match standard header */
    backdrop-filter: blur(10px);
    /* Ensure readability if semi-transparent */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


@media (max-width: 480px) {
    .header-left p {
        display: none;
    }

    .user-info {
        display: none;
        /* Hide name/role on tiny screens, just avatar */
    }

    .user-profile {
        gap: 0;
    }
}

/* 4K Large Display Optimization */
@media (min-width: 2500px) {
    :root {
        font-size: 20px;
        /* Scale base font size */
    }

    .portal-layout .container {
        max-width: 2400px;
        /* Allow content to spread wider */
        padding: 4rem;
    }

    .sidebar {
        width: 400px;
        padding: 3rem;
    }

    .sidebar-brand h2 {
        font-size: 1.8rem;
    }

    .nav-item {
        padding: 16px 24px;
        font-size: 1.2rem;
        gap: 16px;
    }

    .nav-icon {
        width: 28px;
        height: 28px;
    }

    .main-header {
        padding: 2rem 4rem;
    }

    .header-left h1 {
        font-size: 2.5rem;
    }

    .user-info .user-name {
        font-size: 1.2rem;
    }

    .profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Landing Sidebar Animation */
@media (min-width: 900px) {
    .sidebar {
        transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.6s ease;
    }

    .sidebar.landing-mode {
        width: 100vw;
        height: 100vh;
        /* Full viewport height */
        z-index: 9999;
        background: #c73c47;
        /* User requested red background */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        /* Ensure it stays fixed */
        left: 0;
        top: 0;
    }

    .sidebar.landing-mode .sidebar-header {
        position: absolute;
        top: 40px;
        left: 40px;
        margin-bottom: 0;
        transform: none;
        /* Reset scale */
        width: auto;
    }

    /* Hide text in landing mode */
    .sidebar.landing-mode .brand-text {
        display: none;
    }

    .sidebar.landing-mode .sidebar-logo {
        width: 60px;
        /* Slightly larger logo */
        height: auto;
        margin-bottom: 0;
    }

    .sidebar.landing-mode .nav-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns for desktop */
        gap: 30px;
        width: 100%;
        max-width: 1000px;
        padding: 0 20px;
        margin-top: 60px;
        /* Space from top logo */
    }

    .sidebar.landing-mode .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        aspect-ratio: 1 / 1;
        /* Square blocks */
        background: rgba(255, 255, 255, 0.1);
        /* White glass tint */
        border: 1px solid rgba(255, 255, 255, 0.2);
        /* White border */
        border-radius: 16px;
        padding: 20px;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
        color: #ffffff;
        /* FORCE WHITE TEXT */
    }

    /* Override active state to look same as others in landing mode */
    .sidebar.landing-mode .nav-item.active {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        box-shadow: none;
    }

    .sidebar.landing-mode .nav-item.active .nav-icon {
        fill: #ffffff;
        /* FORCE WHITE ICON */
    }

    .sidebar.landing-mode .nav-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        background: #ffffff;
        /* White background on hover */
        border-color: #ffffff;
        color: var(--primary-red);
        /* Text turns red */
    }

    .sidebar.landing-mode .nav-item:hover .nav-icon {
        fill: var(--primary-red);
        /* Icon turns red */
    }

    .sidebar.landing-mode .nav-icon {
        width: 48px;
        height: 48px;
        margin-right: 0;
        margin-bottom: 16px;
        fill: #ffffff;
        /* FORCE WHITE ICON */
    }

    .sidebar.landing-mode .nav-text {
        font-size: 1.2rem;
        font-weight: 600;
        display: block !important;
        /* Force text show */
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    /* Constraint height */
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-white);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--primary-red);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    /* Enable scroll */
    flex: 1;
    /* Take remaining space */
}

/* Modal Body Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

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

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: #d62d3a;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-danger {
    background: #c73c47;
    /* Primary Red */
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, transform 0.1s;
}

.btn-danger:hover {
    background: #a0232d;
    /* Darker red */
    transform: translateY(-1px);
}

.btn-danger:active {
    transform: translateY(0);
}

/* ==========================================
   Custom Notifications
   ========================================== */
:root {
    --success-green: #2ecc71;
    --warning-amber: #f1c40f;
    --error-red: #E63946;
}

#notification-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    /* Allow clicks through the container area */
}

.notification-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--bg-panel-right);
    /* Default background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: auto;
    /* Re-enable pointer events for the toasts */

    /* Animation */
    transform-origin: left bottom;
    animation: slideInLeft 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50px);
    }
}

.notification-toast.hide {
    animation: slideOutLeft 0.3s ease-in forwards;
}

/* Variants */
.notification-toast.success {
    border-left: 4px solid var(--success-green);
    background: linear-gradient(90deg, rgba(46, 204, 113, 0.1) 0%, transparent 100%), var(--bg-panel-right);
}

.notification-toast.warning {
    border-left: 4px solid var(--warning-amber);
    background: linear-gradient(90deg, rgba(241, 196, 15, 0.1) 0%, transparent 100%), var(--bg-panel-right);
}

.notification-toast.error {
    border-left: 4px solid var(--error-red);
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.1) 0%, transparent 100%), var(--bg-panel-right);
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.notification-toast.success .notification-icon {
    color: var(--success-green);
}

.notification-toast.warning .notification-icon {
    color: var(--warning-amber);
}

.notification-toast.error .notification-icon {
    color: var(--error-red);
}

.notification-message {
    flex: 1;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    transition: color 0.2s;
}

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

/* ==========================================
   Settings Section Styles
   ========================================== */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.settings-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.settings-pfp-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 200px;
}

.pfp-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid var(--border-color);
    transition: border-color 0.2s;
}

.pfp-wrapper:hover {
    border-color: var(--primary-red);
}

#settings-pfp-preview,
.pfp-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.pfp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
}

.pfp-wrapper:hover .pfp-overlay {
    opacity: 1;
}

.pfp-overlay span {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

.pfp-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.settings-form {
    flex: 1;
    max-width: 600px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.input-prefix-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.has-prefix {
    padding-left: 32px !important;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

/* Responsive Setting */
@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
        align-items: center;
    }

    .settings-form {
        width: 100%;
    }
}

/* ==========================================
   Custom Checkboxes
   ========================================== */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--input-bg);
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    /* Soft square */
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    /* The checkmark color */
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

input[type="checkbox"]:hover {
    border-color: var(--primary-red);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

/* Light mode specific adjustment if needed, but above variables handle it */

/* ==========================================
   Light Mode Visibility Fixes
   ========================================== */

/* Fix Label Color */
.form-group label {
    color: var(--text-white);
    /* Will appear dark in light mode due to theme var */
    font-weight: 500;
}

/* Fix Input Text Color - Safety Enforcement */
.form-group input,
.settings-form input {
    color: var(--text-white) !important;
}

/* Placeholder Text Color */
::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

/* Specific fix for checkbox labels which might be manually colored */
.form-group label.checkbox-label {
    color: var(--text-white);
}

/* Ensure modal content is visible */
.modal-content {
    color: var(--text-white);
    background: var(--bg-panel-right);
}

.modal-header h3 {
    color: var(--text-white);
}

.close-btn {
    color: var(--text-muted);
}

.close-btn:hover {
    color: var(--primary-red);
}

/* ==========================================
   Edit Modal Layout Adjustments
   ========================================== */
#edit-user-modal .settings-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

#edit-user-modal .settings-pfp-section {
    width: 100%;
}

#edit-user-modal .settings-form {
    width: 100%;
    max-width: 100%;
}

/* Force center for PFP in modal */
#edit-user-modal .settings-pfp-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#edit-user-modal .pfp-wrapper {
    margin: 0 auto;
    /* Extra safety */
}

/* Ensure image itself is centered */
#edit-pfp-preview {
    object-position: center;
}

/* ==========================================
   Current User Row Highlight
   ========================================== */
.current-user-row {
    background-color: rgba(230, 57, 70, 0.08);
    /* Subtle red tint */
}

/* Ensure hover state remains nice or overrides if needed */
.current-user-row:hover {
    background-color: rgba(230, 57, 70, 0.12);
}

/* ==========================================
   Filter Bar Styles
   ========================================== */
.user-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-panel-left);
    /* Slightly distinct background */
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.terminals-filter {
    display: flex;
    gap: 5px;
}

.filter-badge {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-badge:hover {
    border-color: var(--text-muted);
    color: var(--text-white);
}

.filter-badge.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.filter-select {
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    min-width: 140px;
}

/* Adjust search bar within filter container */
.user-filters .search-bar {
    position: relative;
    margin-left: auto;
    /* Push to right */
    max-width: 250px;
    margin-bottom: 0;
    /* Override previous margin */
}

@media (max-width: 900px) {
    .user-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-filters .search-bar {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================
   Filter Bar Refinements
   ========================================== */

/* Clean up container - remove boxy look ONLY for shifts */
.shifts-filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: transparent !important;
    border: none !important;
    padding: 0 0 1rem 0 !important;
}

.shifts-filters .search-bar {
    position: relative;
    width: 100% !important;
    max-width: 400px;
}

/* Terminal Filters Style */
.terminal-filter-wrap {
    display: flex;
    background-color: var(--input-bg);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
}

.terminal-filter-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.terminal-filter-btn:hover {
    color: var(--text-white);
}

.terminal-filter-btn.active {
    background: #ffffff;
    color: #121212 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Dark Mode Overrides */
[data-theme="dark"] .terminal-filter-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .terminal-filter-wrap {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Search Input Styling Refinements - Generalized */
.search-bar {
    position: relative;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

/* Align Selects nicely */
.filter-select {
    height: 40px;
    /* Match input height roughly */
}

/* Increase toolbar spacing */
.user-filters {
    padding: 15px 25px !important;
    /* Add breathing room around content */
}

/* ==========================================
   Settings Dropdown Styles
   ========================================== */
#settings-qiadat {
    width: 100%;
    padding: 12px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    /* Remove default arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%239CA3AF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
}

#settings-qiadat:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

#settings-qiadat option {
    background-color: var(--bg-panel);
    /* Ensure options are readable in dark mode */
    color: var(--text-white);
    padding: 10px;
}

#settings-qiadat-other {
    /* Shares default input styles but ensure it matches spacing */
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Save Button Animation
   ========================================== */
.save-btn-animated {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
    /* Ensure it is hidden from tab order */
}

.save-btn-animated.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

/* ==========================================
   Guest & Flight Management Styles
   ========================================== */

.guest-filters {
    padding: 20px !important;
    background: var(--bg-panel-left) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
}

.guest-filters .terminal-filter-wrap {
    margin-top: 15px;
}

.guest-filters .filter-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.flight-table .guest-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flight-table .country-flag {
    font-size: 1.4rem;
    line-height: 1;
}

.guest-info {
    display: flex;
    flex-direction: column;
}

.guest-main-name {
    font-weight: 600;
    color: var(--text-white);
}

.guest-sub-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Flight Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Specific Status Colors */
/* Specific Status Colors */
.status-landed {
    background: rgba(56, 189, 248, 0.15);
    /* Sky Blue */
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-arrived {
    background: rgba(34, 197, 94, 0.15);
    /* Green */
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-reached,
.status-transported {
    background: rgba(107, 114, 128, 0.15);
    /* Grey */
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.status-received {
    background: rgba(21, 128, 61, 0.15);
    /* Darker Green */
    color: #16a34a;
    border: 1px solid rgba(21, 128, 61, 0.3);
}

.status-scheduled {
    background: rgba(255, 255, 255, 0.05);
    /* White */
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-driver {
    background: rgba(168, 85, 247, 0.15);
    /* Purple */
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-delayed {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-enroute {
    background: rgba(147, 51, 234, 0.15);
    /* Purple */
    color: #a855f7;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-missing {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px dashed #ef4444;
    animation: status-pulse 2s infinite;
}

.status-dna {
    background: rgba(185, 28, 28, 0.15);
    /* Dark Red */
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.3);
}

/* Destination Colors */
.dest-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.dest-baitul-futuh {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Blue */
.dest-baitul-ehsan {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Indigo */
.dest-jamia {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Purple */
.dest-islamabad {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Yellow */
.dest-hadeeqatul {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Green */
.dest-holiday-inn {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Orange */
.dest-hotel {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Pink */
.dest-surrey {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

/* Teal */
/* Gold */
.dest-muhabbat {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Red */
.dest-masroor {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Cyan */
.dest-nasir {
    background: rgba(132, 204, 22, 0.15);
    color: #84cc16;
    border: 1px solid rgba(132, 204, 22, 0.3);
}

/* Lime */
.dest-nusrat {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Emerald */
.dest-ansarullah {
    background: rgba(217, 119, 6, 0.15);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

/* Amber */
.dest-other {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Gray */

@keyframes status-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Passenger Tag styling */
.passenger-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem;
    margin: 2px;
}

.vip-indicator {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Guest & Flight Management Styles */
.form-section-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-red);
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(230, 57, 70, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(230, 57, 70, 0.2), transparent);
}

.premium-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-white);
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.premium-textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
    outline: none;
}

/* Custom Premium Checkbox */
.premium-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.premium-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.premium-checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.premium-checkbox-label input:checked+.checkbox-custom {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.premium-checkbox-label input:checked+.checkbox-custom::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 7px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

#guest-airline-other {
    margin-top: 10px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkbox-text {
    display: flex;
    flex-direction: column;
}

.checkbox-title {
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.checkbox-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

#add-guest-modal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* Custom Driver Select with PFP */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.custom-select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.custom-select-trigger.active {
    border-color: var(--primary-red);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-options {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.custom-options.open {
    display: block;
}

.driver-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.driver-option:last-child {
    border-bottom: none;
}

.driver-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.driver-option.selected {
    background: rgba(230, 57, 70, 0.1);
    color: white;
}

.driver-pfp-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #333;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.driver-name {
    font-size: 0.9rem;
    color: var(--text-white);
}

.arrow {
    position: relative;
    height: 10px;
    width: 10px;
}

.arrow::after {
    content: '';
    position: absolute;
    border: solid var(--text-muted);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    top: -2px;
    right: 0;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.custom-select-trigger.active .arrow::after {
    transform: rotate(-135deg);
    top: 2px;
}

.flight-table .action-btn {
    padding: 6px;
    border-radius: 8px;
    background: var(--input-bg);
}

.flight-table .action-btn:hover {
    background: var(--border-color);
}

/* ==========================================
   Accessibility Features
   ========================================== */

/* Font Loading for Dyslexic mode */
@import url('https://cdn.jsdelivr.net/npm/open-dyslexic@1.0.3/open-dyslexic.css');

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked+.slider {
    background-color: var(--primary-red);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary-red);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Accessibility UI Grid */
.accessibility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.acc-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-panel-left);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.acc-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-white);
}

.acc-info p {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Modifier Classes Applied to Body */

/* Text Scaling - Target root to scale REM units */
html.acc-text-large {
    font-size: 115%;
}

html.acc-text-xl {
    font-size: 130%;
}

/* High Contrast */
body.acc-high-contrast {
    --bg-dark: #000000;
    --bg-panel: #000000;
    --bg-panel-left: #000000;
    --text-white: #ffffff;
    --text-muted: #ffffff;
    --border-color: #ffffff;
    --primary-red: #FFFF00;
    /* Yellow for high contrast visibility */
    --input-bg: #000000;
}

body.acc-high-contrast .sidebar {
    background: #000000;
    border-right: 2px solid #ffffff;
}

body.acc-high-contrast .nav-item.active {
    background: #FFFF00 !important;
    color: #000000 !important;
}

/* Dyslexic Font */
body.acc-dyslexic-font {
    font-family: 'OpenDyslexic', sans-serif !important;
}

body.acc-dyslexic-font * {
    font-family: 'OpenDyslexic', sans-serif !important;
}

/* Reduced Motion */
body.acc-reduced-motion * {
    transition: none !important;
    animation: none !important;
}

@media (max-width: 768px) {
    .accessibility-grid {
        grid-template-columns: 1fr;
    }
}

/* Make the portal content area scrollable while header stays fixed */
#portal-content.container {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    scroll-behavior: smooth;
    padding-bottom: 2rem;
}

/* ==========================================
   Advanced Accessibility Modes
   ========================================== */

/* 1. Color-Blind Modes (Using SVG Filters) */
body.acc-deuteranopia {
    filter: url('#deuteranopia-filter');
}

body.acc-protanopia {
    filter: url('#protanopia-filter');
}

body.acc-tritanopia {
    filter: url('#tritanopia-filter');
}

/* 2. Line Spacing */
body.acc-line-wide {
    line-height: 1.8 !important;
}

body.acc-line-extra {
    line-height: 2.2 !important;
}

body.acc-line-wide .acc-info p,
body.acc-line-extra .acc-info p {
    line-height: 1.4;
    /* Keep descriptions readable but not overly spaced */
}

/* 3. Focus Mode (Clutter Reduction) */
/* Elements marked with .non-essential or .decorative will be hidden */
body.acc-focus-mode .decorative,
body.acc-focus-mode .sidebar-brand p,
body.acc-focus-mode .header-left p,
body.acc-focus-mode .sidebar-brand .brand-text,
body.acc-focus-mode .nav-text {
    display: none !important;
}

body.acc-focus-mode .sidebar {
    width: 80px;
    /* Minimal sidebar */
    padding: 2rem 0;
    /* Vertical padding only */
    align-items: center;
}

body.acc-focus-mode .sidebar-brand {
    justify-content: center;
    width: 100%;
}

body.acc-focus-mode .nav-menu {
    align-items: center;
    width: 100%;
}

body.acc-focus-mode .nav-item {
    justify-content: center;
    padding: 0.75rem;
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

body.acc-focus-mode .nav-icon {
    margin-right: 0;
    width: 24px;
    height: 24px;
}

/* 4. Section Spacing */
body.acc-line-wide .portal-section,
body.acc-line-wide .settings-card {
    margin-top: 50px !important;
}

body.acc-line-extra .portal-section,
body.acc-line-extra .settings-card {
    margin-top: 80px !important;
}

/* Shift Management Additions */
.user-brief-info {
    border: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 100px;
    /* Force uniform size */
    width: auto !important;
    /* Override btn-primary 100% */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
    margin-top: 0 !important;
}

#shift-date,
#shift-start,
#shift-finish {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 10px;
    border-radius: 8px;
    width: 100%;
}

#shift-date:focus,
#shift-start:focus,
#shift-finish:focus {
    border-color: var(--primary-red);
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Notification Bell & Dropdown */
.notification-wrapper {
    position: relative;
    margin-right: 20px;
    cursor: pointer;
}

.notification-icon-container {
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.notification-icon-container:hover {
    background: rgba(255, 255, 255, 0.1);
}


.notification-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-muted);
    transition: fill 0.2s ease;
}

/* ==========================================
   Notification Control Center Styles
   ========================================== */

.notifications-dashboard {
    padding-top: 20px;
}

.notif-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.notif-action-card {
    background: var(--bg-panel-left);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.notif-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-red);
}

.notif-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.notif-icon-circle.in-app {
    background: rgba(66, 153, 225, 0.15);
    color: #4299e1;
}

.notif-icon-circle.push {
    background: rgba(236, 201, 75, 0.15);
    color: #ecc94b;
}

.notif-action-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.notif-action-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-text-only {
    background: none;
    border: none;
    color: var(--primary-red);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    margin-top: auto;
}

.notif-action-card:hover .btn-text-only {
    text-decoration: underline;
}

/* History Section */
.recent-history-section h3 {
    margin-bottom: 1rem;
    color: var(--text-white);
    font-size: 1.1rem;
}

/* History Card & Tags */
.notif-history-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-panel);
    /* Ensure contrast */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notif-history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Priority Highlights */
.notif-history-card {
    border-left: 4px solid transparent;
    /* Prepare for accent */
}

.notif-card-urgent {
    border-left-color: #f56565;
    background: linear-gradient(to right, rgba(245, 101, 101, 0.05), var(--bg-panel));
}

.notif-card-alert {
    border-left-color: #ecc94b;
    background: linear-gradient(to right, rgba(236, 201, 75, 0.05), var(--bg-panel));
}

.notif-card-info {
    border-left-color: #4299e1;
    background: linear-gradient(to right, rgba(66, 153, 225, 0.05), var(--bg-panel));
}

.notif-card-success {
    border-left-color: #48bb78;
    background: linear-gradient(to right, rgba(72, 187, 120, 0.05), var(--bg-panel));
}


.notif-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-card-content {
    flex: 1;
}

.notif-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.notif-recipient {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
}

.notif-meta-tags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.tag-normal {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.tag-urgent {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
}

.tag-info {
    background: rgba(66, 153, 225, 0.2);
    color: #4299e1;
}

.tag-alert {
    background: rgba(236, 201, 75, 0.2);
    color: #ecc94b;
}

.notif-time-row {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.notif-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}


/* ==========================================
   Onboarding Wizard Styles
   ========================================== */

/* Reuse modal overlay from general styles, but add specific card styling */
.onboarding-card {
    background: var(--bg-dark);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

/* Glass effect for onboarding card */
.onboarding-card {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .onboarding-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.onboarding-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-white);
}

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

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-red);
    width: 33%;
    /* Start at step 1 */
    transition: width 0.4s ease-in-out;
}

/* Steps Animation */
.onboarding-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* Hide sliding steps */
}

.onboarding-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.onboarding-step.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Buttons */
.onboarding-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.onboarding-footer button {
    flex: 1;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

/* Success Step Text */
#step-3 h3 {
    margin: 1rem 0 0.5rem;
    color: var(--text-white);
}

/* ==========================================
   Custom Multi-Select Dropdown
   ========================================== */

.custom-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #ffffff;
    /* Light Mode Default */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 5px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    /* Controlled by JS classes */
}

/* Dark Mode Override */
[data-theme="dark"] .custom-dropdown-list {
    background: #1A1A1A;
}

.custom-dropdown-list.show {
    display: block;
}

.custom-dropdown-list.hidden {
    display: none;
}

/* Scrollbar for dropdown */
.custom-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dropdown-item {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.avatar-tiny {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
}

.user-details {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.user-details .name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
}

.user-details .username {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Selected User Chips */
.selected-users-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(66, 153, 225, 0.15);
    /* Blue-ish tint */
    border: 1px solid rgba(66, 153, 225, 0.3);
    border-radius: 20px;
    color: var(--text-white);
    font-size: 0.85rem;
}

.chip-remove {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.chip-remove:hover {
    color: #fff;
}

/* ==========================================
   Statistics Dashboard Styles
   ========================================== */

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

.stats-controls {
    display: flex;
    gap: 15px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
    background: rgba(230, 57, 70, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--primary-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

/* Stats Cards Grid */
.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-panel-left);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

/* Icon Colors */
.users-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.flights-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.shifts-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.drivers-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.stat-content h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 20px;
}

.chart-container {
    background: var(--bg-panel-left);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.chart-header {
    margin-bottom: 15px;
}

.chart-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
}

.chart-body {
    flex: 1;
    position: relative;
    min-height: 0;
    /* Important for Chart.js resizing */
}

/* Chart Sizes */
.large-chart {
    grid-column: span 8;
}

.small-chart {
    grid-column: span 4;
}

.full-width-chart {
    grid-column: span 12;
}


.medium-chart {
    grid-column: span 6;
}

/* Responsive Charts */
@media (max-width: 1100px) {

    .large-chart,
    .medium-chart,
    .small-chart {
        grid-column: span 12;
    }
}

/* Audit Log Badges */
.badge-green {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-blue {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge-red {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-gray {
    background-color: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

/* ==========================================
   Header Notification Bell & Feed
   ========================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-wrapper {
    position: relative;
    cursor: pointer;
}

.notification-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-muted);
    transition: all 0.2s ease;
    background: transparent;
}

.notification-icon-btn:hover,
.notification-wrapper.active .notification-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--primary-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-color);
    /* Match background for cutout effect */
}

/* Dropdown Feed */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -10px;
    /* Align slightly right of bell */
    width: 360px;
    background: var(--bg-panel);
    /* Dark panel bg */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-dropdown-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.notif-dropdown-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
}

.text-link-sm {
    background: none;
    border: none;
    color: var(--primary-red);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
}

.text-link-sm:hover {
    text-decoration: underline;
}

.notif-dropdown-body {
    max-height: 400px;
    overflow-y: auto;
    /* Scrollbar styling matches theme */
}

.notif-dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.notif-dropdown-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.notif-dropdown-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

/* Feed Item Styles */
.notif-feed-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    transition: background 0.2s;
    cursor: pointer;
    position: relative;
}

.notif-feed-item:last-child {
    border-bottom: none;
}

.notif-feed-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-feed-item.unread {
    background: rgba(59, 130, 246, 0.05);
    /* Very subtle blue tint */
}

.notif-feed-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-red);
    /* Or blue */
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 2px;
    line-height: 1.3;
}

.notif-item-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}

.notif-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.notif-dot {
    width: 3px;
    height: 3px;
    background: currentColor;
    border-radius: 50%;
}

.notif-importance-high {
    color: var(--primary-red);
    font-weight: 600;
}

.notif-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   ONBOARDING WIZARD OVERLAY
   ========================================================================== */
.wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark); /* Opaque solid background */
    z-index: 9999;
    display: none; /* Toggled via JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInWizard 0.4s ease-out forwards;
}

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

.wizard-card {
    background: var(--bg-panel-right);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 62, 62, 0.1);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpWizard 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.wizard-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wizard-header h2 {
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.wizard-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.wizard-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    background: var(--primary-red);
    width: 0%;
    transition: width 0.4s ease-out;
}

.wizard-body {
    padding: 30px;
    min-height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.wizard-step {
    width: 100%;
    display: none; /* hidden by default, JS toggles */
    flex-direction: column;
    animation: fadeSlideIn 0.4s ease forwards;
}

.wizard-step.active {
    display: flex;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

.wizard-step label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-white);
    display: block;
    text-align: left;
}

.wizard-input, .wizard-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.wizard-input:focus, .wizard-select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.wizard-footer {
    padding: 20px 30px 30px;
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wizard-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wizard-success-step {
    text-align: center;
    align-items: center;
    justify-content: center;
}

.wizard-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.15); /* Soft green */
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPulse 1.5s infinite;
}

@keyframes successPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.wizard-success-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #fff, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}