/* Default to dark theme */
:root {
    /* Colors - Dark Theme */
    --bg-color: #1a1a1a;
    --text-color: #e2e8f0;
    --accent: #FF5722;
    --accent-rgb: 255, 87, 34;
    --accent-hover: #E54D20;
    --accent-light: rgba(255, 87, 34, 0.15);
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
    --warning: #f59e0b;
    --experimental: #6f42c1;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --card-text: #ffffff;
    
    /* Spacing */
    --auth-container-padding: 1rem 1rem 2rem;  /* Further reduced top padding to 1rem */
    --auth-icon-margin: 1rem 0 1.25rem;      /* Reduced top margin to 1rem */
    
    /* Smooth transitions */
    --transition-speed: 0.2s;
}

/* Light theme overrides */
:root.light {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-text: #212529;
}

/* Auth pages container */
.auth-container {
    padding: var(--auth-container-padding);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Auth card */
.auth-card {
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
}

/* Auth icon */
.auth-icon {
    font-size: 3rem;
    color: var(--accent);
    margin: var(--auth-icon-margin);
    text-align: center;
}

body.light {
    --bg-color: #f8fafc; /* Very light gray */
    --text-color: #1e293b; /* Dark blue-gray */
    --accent: #E54D20;
    --accent-rgb: 229, 77, 32;
    --accent-hover: #CC4520;
    --accent-light: rgba(229, 77, 32, 0.1);
    --card-bg: #ffffff; /* White cards */
    --border-color: #e2e8f0; /* Light gray border */
    --shadow-color: rgba(0, 0, 0, 0.05);
}

/* Base styles */
:root {
    --header-height: 4.375rem; /* 70px */
}

body {
    font-family: 'Poppins', 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Bootstrap color overrides */
:root {
    --bs-primary: var(--accent);
    --bs-primary-rgb: var(--accent-rgb);
}

.text-primary {
    color: var(--accent) !important;
}

/* Ensure content doesn't hide behind fixed header */
main {
    flex: 1;
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* Optimize images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Optional accent for headings to feel more futuristic */
h1, h2, .navbar .logo, .email-logo {
    font-family: 'Orbitron', 'Poppins', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.5px;
}

/* Navbar Styles - Optimized */
.navbar {
    background: #000000;
    border-bottom: 2px solid var(--accent);
    padding: 0.5rem 0;
    min-height: 4.375rem; /* 70px */
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    will-change: transform;
    width: 100%;
}



.navbar-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    margin-right: 0 !important; /* Override Bootstrap's margin */
}

/* Ensure navbar takes full width */
.navbar > .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    padding: 0.5rem 0;
}
.nav-link {
    color: #ffffff !important;
    font-family: 'Orbitron', 'Poppins', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.4px;
    border-radius: 0.375rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-link:hover, .nav-link:focus {
    color: var(--accent) !important;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dropdown toggle specific styles */
.nav-item.dropdown > .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0.75rem !important;
    position: relative;
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: normal;
    line-height: 1.2;
}

/* Dropdown arrow */
.nav-item.dropdown > .nav-link::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    border: none;
    width: auto;
    height: auto;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.nav-item.dropdown.show > .nav-link::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Enhanced User Dropdown Menu Styles */
.user-dropdown-toggle {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.user-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 96, 34, 0.1);
    color: var(--accent);
}

.user-name {
    font-weight: 500;
    color: #ffffff;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease-in-out;
    display: inline-block;
    transform-origin: center center;
}

/* Mirror dropdown arrow when dropdown is open - rotate in place without moving */
.nav-item.dropdown.show .dropdown-arrow,
.user-dropdown-toggle[aria-expanded="true"] .dropdown-arrow,
.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(-180deg) !important;
}

/* Desktop dropdown - make it appear as part of the toggle, not a floating window */
@media (min-width: 1400px) {
    /* Make the dropdown parent position relative so menu attaches to it */
    .nav-item.dropdown {
        position: relative;
    }
    
    /* Override Bootstrap's dropdown positioning to appear directly below toggle */
    .user-dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        margin-top: 0 !important;
        padding: 0 !important;
        min-width: 220px !important;
        border: none !important;
        border-radius: 0 0 0.5rem 0.5rem;
        background-color: var(--card-bg);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }
    
    /* Dropdown slide animation - triggered when Bootstrap adds .show */
    .nav-item.dropdown.show .user-dropdown-menu {
        animation: dropdownSlideIn 0.2s ease-out;
    }
    
    @keyframes dropdownSlideIn {
        0% {
            opacity: 0;
            transform: translateY(-8px) scaleY(0.95);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scaleY(1);
        }
    }
    
    /* Ensure dropdown toggle has proper flex layout */
    .user-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: auto;
    }
    
    .user-avatar {
        flex-shrink: 0;
    }
    
    .user-name {
        flex: 1;
        text-align: left;
    }
    
    .dropdown-arrow {
        margin-left: auto !important;
        margin-right: 0 !important;
        flex-shrink: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide the username/status header in dropdown - show only buttons */
.dropdown-header.user-info {
    display: none !important;
}

body.light .dropdown-header.user-info {
    background: #000000;
}

.user-avatar-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 96, 34, 0.1);
    color: var(--accent);
}

.user-details {
    flex: 1;
}

.user-display-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.user-status {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.user-dropdown-menu .dropdown-item {
    padding: 0.35rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    color: var(--text-color) !important;
}

/* Remove spacing from dropdown divider */
.user-dropdown-menu .dropdown-divider {
    margin: 0;
    border-color: rgba(255, 255, 255, 0.1);
}

.user-dropdown-menu .dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent) !important;
    padding-left: 1.25rem;
    transform: translateX(2px);
    text-decoration: none;
}

.user-dropdown-menu .dropdown-item:hover i {
    color: var(--accent) !important;
    opacity: 1;
}

.user-dropdown-menu .dropdown-item.logout-item:hover {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger) !important;
}

.user-dropdown-menu .dropdown-item.logout-item:hover i {
    color: var(--danger) !important;
}

/* Mobile User Row - Inline layout */
.mobile-user-row {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    margin: 0 0 0.5rem;
    min-height: 3.5rem;
    gap: 0.75rem;
}

.mobile-user-actions-inline {
    flex-shrink: 0;
    gap: 0.25rem !important;
    margin-left: 0.5rem !important;
}

.mobile-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.2s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: transparent;
}

.mobile-icon-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    color: #ffffff;
}

.mobile-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
    background-color: var(--accent);
}

.mobile-icon-btn:hover i {
    color: white;
}

/* Settings button - keep icon orange on hover */
.mobile-user-actions-inline .mobile-icon-btn:first-child:hover i {
    color: var(--accent);
}

.mobile-icon-btn:active {
    transform: translateY(0);
}

/* Settings button - active state matches hover */
.mobile-user-actions-inline .mobile-icon-btn:first-child:active {
    background-color: var(--accent);
    border-color: var(--accent);
}

.mobile-user-actions-inline .mobile-icon-btn:first-child:active i {
    color: var(--accent);
}

/* Sign Out button - active state matches hover */
.mobile-icon-btn.logout-btn:active {
    background-color: var(--danger);
    border-color: var(--danger);
}

.mobile-icon-btn.logout-btn:active i {
    color: white;
}

/* Theme button - active state matches hover */
#theme-toggle-mobile.mobile-icon-btn:active {
    background-color: var(--accent);
    border-color: var(--accent);
}

#theme-toggle-mobile.mobile-icon-btn:active i {
    color: white !important;
}

.mobile-icon-btn.logout-btn {
    border-color: var(--danger);
}

.mobile-icon-btn.logout-btn i {
    color: var(--danger);
}

.mobile-icon-btn.logout-btn:hover {
    background-color: var(--danger);
    border-color: var(--danger);
}

.mobile-icon-btn.logout-btn:hover i {
    color: white;
}

#theme-toggle-mobile.mobile-icon-btn {
    border-color: var(--accent);
}

#theme-toggle-mobile.mobile-icon-btn i {
    color: var(--accent);
}

#theme-toggle-mobile.mobile-icon-btn:hover,
#theme-toggle-mobile.mobile-icon-btn:active,
#theme-toggle-mobile.mobile-icon-btn:focus,
#theme-toggle-mobile.mobile-icon-btn:focus-visible {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

#theme-toggle-mobile.mobile-icon-btn:hover i,
#theme-toggle-mobile.mobile-icon-btn:active i,
#theme-toggle-mobile.mobile-icon-btn:focus i,
#theme-toggle-mobile.mobile-icon-btn:focus-visible i {
    color: #ffffff !important;
}

.user-avatar-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 96, 34, 0.1);
    color: var(--accent);
    font-size: 1.25rem;
}

.user-mobile-info {
    display: flex;
    flex-direction: column;
}

.user-mobile-name {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.2;
}

.user-mobile-status {
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 400;
}

.mobile-user-actions {
    gap: 0.35rem !important;
}

.mobile-menu-item {
    border-radius: 0.375rem;
    border-width: 1px;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.6rem 0.75rem !important;
    font-size: 0.9rem;
}

.mobile-menu-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-menu-item i {
    width: 18px;
    text-align: center;
    opacity: 0.8;
}

.mobile-menu-item:hover i {
    opacity: 1;
}

/* Logout button styling - grey normally, red on hover */
.logout-link {
    color: #6c757d !important;
}

.logout-btn {
    color: #6c757d !important;
    border-color: #6c757d !important;
}

.logout-btn:hover {
    background-color: var(--danger) !important;
    color: #ffffff !important;
    border-color: var(--danger) !important;
}

/* Fix for mobile tap targets */
@media (max-width: 1399.98px) {
    .dropdown-item {
        padding: 0.75rem 1.5rem;
    }
    
    .dropdown-item i {
        width: 24px;
    }
}

/* User greeting in navbar */
.user-greeting {
    color: #ffffff !important;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem !important;
    margin: 0;
    border-radius: 0.375rem;
}

.user-greeting:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown menu */
.dropdown-menu {
    background-color: #2d2d2d;
    border: none;
}

.dropdown-item {
    color: #ffffff;
    padding: 0.5rem 1.5rem;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--accent);
    color: #ffffff;
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: 0.5rem 0;
}

/* Mobile menu styles - aligned with navbar, tucked under navbar border */
@media (max-width: 1399.98px) {
    .navbar-collapse {
        background-color: #1a1a1a;
        margin: 0 -1rem 0;
        padding: 0.5rem 1rem 0.75rem;
        border-radius: 0 0 0.5rem 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 1040;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Create orange border overlay on top of dropdown */
    .navbar-collapse::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--accent);
        z-index: 1;
    }
    
    /* Center align mobile nav items */
    .navbar-nav {
        text-align: center;
        padding: 0.25rem 0;
        width: 100%;
    }
    
    /* Style mobile nav items */
    .nav-item {
        margin: 0.25rem 0;
        width: 100%;
    }
    
    /* Style mobile buttons - compact inline layout */
    .navbar-nav .btn {
        display: inline-block;
        width: auto;
        margin: 0.25rem;
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Mobile auth buttons - centered compact layout */
    .mobile-auth-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .mobile-auth-btn {
        min-width: 100px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        font-weight: 500;
        border-radius: 0.375rem;
        transition: all 0.2s ease;
    }
    
    /* Mobile auth divider */
    .mobile-auth-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 0.35rem -1rem;
    }
    
    /* Mobile theme button in auth buttons row */
    .mobile-theme-btn {
        min-width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 1.1rem;
        border-radius: 0.375rem;
        transition: all 0.2s ease;
    }
    
    .mobile-theme-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile user divider */
    .mobile-user-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 0.35rem -1rem;
    }
    
    /* Dropdown menu in mobile */
    .dropdown-menu {
        background-color: #252525;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0.25rem 0;
        width: 100%;
    }
    
    .dropdown-item {
        color: #ffffff;
        padding: 0.75rem 1.5rem;
        text-align: center;
        border-radius: 0;
    }
    
    .dropdown-item:hover, 
    .dropdown-item:focus {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Hide dropdown arrow in mobile */
    .dropdown-toggle::after {
        display: none;
    }
    
    /* Active state for dropdown */
    .show > .dropdown-menu {
        display: block !important;
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .navbar-nav {
        margin-bottom: 1rem;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .dropdown-menu {
        background-color: rgba(37, 37, 37, 0.95);
        border: none !important;
        margin: 0.5rem 0 0 1rem;
        border-radius: 0.5rem;
        padding: 0.5rem 0;
    }
    
    /* Mobile user action buttons */
    .mobile-user-actions {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        flex-wrap: wrap;
    }
    
    .mobile-action-btn {
        min-width: 110px;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        font-weight: 500;
        border-radius: 0.375rem;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-action-btn.logout-btn {
        border-color: var(--danger) !important;
        color: var(--danger) !important;
    }
    
    .mobile-action-btn.logout-btn:hover {
        background-color: var(--danger) !important;
        color: white !important;
    }
    
    .mobile-action-btn i {
        width: 16px;
        text-align: center;
    }
    
    /* Mobile theme toggle button */
    #theme-toggle-mobile {
        font-size: 1.25rem;
        transition: transform 0.2s ease;
        padding: 0.5rem;
    }
    
    #theme-toggle-mobile:active {
        transform: scale(0.95);
    }
    
    /* Mobile user info */
    .user-greeting {
        padding: 0.75rem 1rem;
        margin: 0 -1rem 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0.5rem;
    }
    
    /* Ensure user icon is white in mobile menu */
    .navbar-collapse .fa-user-circle {
        color: #ffffff !important;
    }
    
    /* Mobile logout button */
    .btn-outline-danger {
        border-color: var(--danger) !important;
        color: var(--danger) !important;
        transition: all 0.2s ease !important;
    }
    
    .btn-outline-danger:hover {
        background-color: var(--danger) !important;
        color: white !important;
    }
    
    .user-greeting {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        color: var(--text-color);
    }
    
    .user-greeting .username {
        font-weight: 500;
        margin-left: 0.5rem;
    }
}

/* Desktop styles */
@media (min-width: 1400px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        flex-grow: 0 !important; /* Prevent nav from expanding */
    }
    
    /* Center navigation links */
    .navbar-nav.mx-auto {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
    }
    
    /* Right-aligned items */
    .navbar-nav.ms-lg-auto {
        margin-left: auto !important;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        white-space: nowrap;
        position: relative;
    }
    
    /* Add hover effect for nav items */
    .nav-item:not(.dropdown) > .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: width 0.3s ease, left 0.3s ease;
    }
    
    .nav-item:not(.dropdown) > .nav-link:hover::after,
    .nav-item:not(.dropdown) > .nav-link.active::after {
        width: 100%;
        left: 0;
    }
    
    /* Style for dropdown toggle without line animation */
    .nav-item.dropdown > .nav-link::after {
        display: none;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
    }
    
    .dropdown-menu {
        margin-top: 0.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Remove Bootstrap's default blue focus/hover ring on buttons */
.btn:focus,
.btn:focus-visible,
.btn-check:focus + .btn,
.btn-check:focus-visible + .btn {
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure btn-outline-primary (if used anywhere) also removes blue focus */
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Override any remaining Bootstrap hover/focus blue borders on buttons */
.btn:hover,
.btn:active,
.btn:focus-visible {
    border-color: var(--accent) !important;
}

/* Status refresh buttons: make icon dark on hover for visibility */
.btn-outline-secondary[style*="border-color: var(--accent)"]:hover i,
.btn-outline-secondary[style*="border-color:var(--accent)"]:hover i {
    color: #ffffff !important;
}

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-1px);
}

/* Delete Account Modal Styles */
.modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

body.light .modal .btn-close {
    filter: none;
}

.delete-warning {
    background-color: var(--card-bg);
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: 0.375rem;
}

/* Readonly input styling */
.modal input[readonly] {
    background-color: var(--bg-color) !important;
    color: var(--card-text) !important;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Form input styling for dark mode */
:root:not(.light) .form-control,
:root:not(.light) .form-control.form-control-lg,
:root:not(.light) input.form-control,
:root:not(.light) input.form-control.form-control-lg,
:root:not(.light) textarea.form-control {
    background-color: var(--bg-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
    transition: background-color var(--transition-speed) ease, 
                border-color var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

/* Input focus states */
:root:not(.light) .form-control:focus,
:root:not(.light) .form-control.form-control-lg:focus {
    background-color: var(--bg-color) !important;
    border-color: var(--accent) !important;
    color: var(--text-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 96, 34, 0.25) !important;
}

/* Placeholder text in dark mode */
:root:not(.light) .form-control::placeholder {
    color: #a0aec0;
    opacity: 1;
}

/* Dark mode autofill tweaks */
:root:not(.light) input:-webkit-autofill,
:root:not(.light) input:-webkit-autofill:hover,
:root:not(.light) input:-webkit-autofill:focus,
:root:not(.light) textarea:-webkit-autofill,
:root:not(.light) textarea:-webkit-autofill:hover,
:root:not(.light) textarea:-webkit-autofill:focus,
:root:not(.light) select:-webkit-autofill,
:root:not(.light) select:-webkit-autofill:hover,
:root:not(.light) select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-color) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-color) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Readonly inputs in dark mode */
:root:not(.light) .form-control[readonly] {
    background-color: #2d3748 !important;
    color: #ffffff !important;
}

/* Experimental badge */
.badge.bg-experimental {
    background-color: var(--experimental) !important;
    color: white !important;
    border-color: var(--experimental) !important;
}

/* Experimental text */
.text-experimental {
    color: var(--experimental) !important;
}

.btn-danger {
    background-color: var(--danger) !important;
    color: white !important;
    border-color: var(--danger) !important;
}

.btn-danger:hover {
    background-color: var(--danger-hover) !important;
    transform: translateY(-1px);
    color: white !important;
    border-color: var(--danger-hover) !important;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
}

/* Global link styling to ensure orange theme across all pages */
a {
    color: var(--accent) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--accent-hover) !important;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Navigation Links */
.nav-links a {
    text-decoration: none;
    color: #ffffff; /* Force white text for nav links */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0.75rem;
    font-size: 0.975rem;
    line-height: 1.4;
    font-family: 'Orbitron', 'Poppins', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.4px;
}

.nav-links a:hover {
    color: #ffffff !important; /* Keep white on hover for nav links */
    background-color: var(--accent-light);
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-light:hover {
    color: #000000; /* Black text on hover for better contrast */
    background-color: #ffffff; /* White background on hover */
}

/* Ensure nav buttons have visible text */
.btn-outline-light {
    color: #ffffff; /* White text for outline buttons in nav */
    border-color: #ffffff; /* White border */
}

/* Fix login button text visibility */
.btn-primary {
    color: #ffffff !important; /* Force white text on primary buttons */
}

.btn-outline-primary {
    color: var(--accent);
}

.btn-outline-primary:hover {
    color: #ffffff; /* White text on hover for better contrast */
}

/* User greeting in navbar */
.user-greeting {
    margin: 0 15px;
    color: var(--accent);
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
}

/* Make navbar buttons larger */
.navbar .btn {
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0.5rem 0.85rem;
}

.user-greeting:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: var(--bg-color);
    border: none !important;
    border-radius: 4px;
    padding: 0.5rem 0;
}

.dropdown-item {
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: rgba(30, 144, 255, 0.1);
    color: var(--accent);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.dropdown-divider {
    border-top: 1px solid var(--accent);
    opacity: 0.2;
    margin: 0.5rem 0;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}

.user-greeting .user-link {
    color: var(--accent);
    text-decoration: none;
    margin-left: 5px;
    font-weight: bold;
    transition: color 0.2s;
}

.user-greeting .user-link:hover {
    color: white;
    text-decoration: underline;
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    transition: color 0.2s ease-in-out;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo-link:hover .logo {
    color: var(--accent-hover);
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced card hover effects */
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced alert styling to match help page - simplified approach */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-info {
    background-color: rgba(255, 96, 34, 0.12);
    color: inherit;
    border-left: 4px solid var(--accent);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: inherit;
    border-left: 4px solid #ffc107;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.15);
    color: inherit;
    border-left: 4px solid #198754;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: inherit;
    border-left: 4px solid #dc3545;
}

/* Simple icon styling */
.alert i {
    margin-right: 0.5rem;
}

/* For alerts with d-flex structure (like help page) */
.alert .d-flex {
    align-items: center;
}

.alert .alert-heading {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Enhanced form control hover effects */
.form-control:hover {
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 0.1rem rgba(255, 87, 34, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
    outline: none;
}

input, button {
    display: block;
    margin: 10px auto;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--text-color);
    border-radius: 4px;
    transition: 0.3s;
}

/* Enhanced input field hover effects */
input:hover {
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bootstrap overrides to prevent blue buttons - more specific overrides */
.btn-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.btn-outline-secondary {
    background-color: transparent !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.btn-outline-light {
    background-color: transparent !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 96, 34, 0.3);
    outline: none !important;
}

/* Only apply orange background to specific button types that should have it */
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--accent);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 96, 34, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-secondary:hover {
    background: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-primary:hover {
    background: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-light:hover {
    background: #ffffff !important;
    color: var(--accent) !important;
    border-color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Generic button hover without orange background */
button:hover:not(.btn-primary):not(.btn-outline-primary):not(.btn-outline-secondary):not([type="submit"]):not([type="button"]) {
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 96, 34, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button.danger, .btn.danger {
    border-color: var(--danger);
    color: var(--danger);
}

button.danger:hover, .btn.danger:hover {
    background: var(--danger);
    color: white;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn:hover, .btn:focus {
    background: var(--accent);
    color: black;
    text-decoration: none !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 96, 34, 0.3);
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 2px 6px rgba(255, 96, 34, 0.2);
}

#theme-toggle {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    margin-left: auto;
}

#theme-toggle:hover {
    background: var(--accent);
    color: black;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 96, 34, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.requirements {
    margin-top: 30px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-message h2 {
    color: #ffffff; /* White text for welcome message in dark mode */
}

.form-check {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.form-check-input {
    margin-right: 0.5rem;
    margin-top: 0.2em;
    position: relative;
}

.form-check-label {
    margin-bottom: 0;
    line-height: 1.5;
}

/* Ensure text is visible in light mode */
body.light .welcome-message h2 {
    color: var(--accent); /* Use accent color in light mode for better visibility */
}

.requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.requirements li:before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* TOS Page */
.tos-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.7;
}

.tos-container h1 {
    color: var(--accent);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.tos-container h2 {
    color: var(--text-color);
    margin: 2.5rem 0 1.2rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-left: 4px solid var(--accent);
    padding: 0.3rem 0 0.3rem 1rem;
    background-color: var(--accent-light);
    border-radius: 0 4px 4px 0;
}

.tos-container h2 i {
    margin-right: 0.6rem;
    color: var(--accent);
}

.tos-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.tos-content > .card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tos-content p {
    margin-bottom: 1.8rem;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.8;
}

.tos-content .intro {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tos-content ol {
    counter-reset: item;
    padding-left: 0;
    margin: 1.5rem 0 2rem;
}

.tos-content ol > li {
    margin-bottom: 1.2rem;
    position: relative;
    padding: 0.5rem 0 0.5rem 2.5rem;
    border-bottom: 1px dashed var(--border-color);
    list-style-type: none;
}

.tos-content ol > li:last-child {
    border-bottom: none;
}

.tos-content ol > li:before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    background: var(--accent-light);
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.tos-content a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    border-bottom: 1px dashed var(--accent);
    padding-bottom: 1px;
}

.tos-content a:hover {
    color: var(--accent-hover);
    text-decoration: none;
    border-bottom-style: solid;
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Make Discord link more prominent */
.tos-content a[href*="discord"] {
    color: #7289DA;
    border-bottom-color: #7289DA;
}

.tos-content a[href*="discord"]:hover {
    color: #5b6eae;
}

.tos-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 1rem;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.tos-actions .btn {
    min-width: 180px;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    padding: 0.5rem 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tos-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .tos-container h1 {
        font-size: 1.75rem;
    }
    
    .tos-container h2 {
        font-size: 1.3rem;
    }
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
    max-width: 400px;
    width: calc(100% - 40px);
    pointer-events: none;
}

/* Mobile flash message fixes */
@media (max-width: 576px) {
    .flash-container {
        top: 70px;
        right: 0;
        left: 0;
        max-width: 100%;
        width: 100%;
        padding: 0 12px;
    }
    
    .flash-message {
        font-size: 0.875rem;
    }
    
    .flash-content {
        padding: 12px;
        flex-wrap: nowrap;
    }
    
    .flash-text {
        font-size: 0.8125rem;
        padding-right: 4px;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .flash-icon {
        font-size: 1rem;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    .flash-close {
        font-size: 1.125rem;
        padding: 0.125rem;
        flex-shrink: 0;
    }
}

/* Base flash message styles */
.flash-message {
    position: relative;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, margin-bottom 0.3s ease-out;
    color: white;
}

/* Show animation */
.flash-message.show {
    transform: translateX(0);
    opacity: 1;
}

/* Hide animation */
.flash-message.hide {
    transform: translateX(100%);
    opacity: 0;
    margin-bottom: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color);
}

/* Card styling - dark grey in dark mode, white in light mode */
:root {
    --card-bg: #2d2d2d; /* Dark grey for cards in dark mode */
    --card-text: #ffffff; /* White text for dark mode */
}

body.light {
    --card-bg: #ffffff; /* White for cards in light mode */
    --card-text: #1a1a1a; /* Dark text for light mode */
    --border-color: #e2e8f0; /* Lighter border for light mode */
}

.card {
    color: var(--card-text);
    background: var(--card-bg);
}

.flash-content {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    position: relative;
    min-height: 50px;
}

.flash-icon {
    font-size: 1.25rem;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.flash-text {
    flex: 1;
    padding-right: 8px;
    font-size: 0.9375rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    min-height: 24px;
}

.flash-success {
    background-color: var(--success);
    border-left: 4px solid #047857;
}

.flash-error {
    background-color: var(--danger);
    border-left: 4px solid #dc2626;
}

.flash-warning {
    background-color: var(--warning);
    border-left: 4px solid #d97706;
    color: #1f2937;
}

.flash-info {
    background-color: var(--accent);
    border-left: 4px solid var(--accent-hover);
}

/* Animations */
@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        height: 0;
    }
}

.flash-message.hide {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from { 
        opacity: 1;
        transform: translateX(0);
        max-height: 200px;
        margin-bottom: 12px;
    }
    to { 
        opacity: 0;
        transform: translateX(20px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
    }
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    font-weight: bold;
    opacity: 0.8;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: opacity 0.2s;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 0.95;
    }
}
