﻿.btn.header-item.noti-icon:active,
.btn.header-item.noti-icon:focus,
.btn.header-item.noti-icon.active {
    outline: none;
    box-shadow: none;
    border: none;
}

.grecaptcha-badge {
    display: none !important;
}

.text-muted {
    color: gray !important;
}

.search-results {
    /* position: absolute; */
    width: 100%; /* Ensure it takes the width of its container */
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    /* background-color: #2a2d35; /* from tckrz */
    /* border: 1px solid rgba(255, 255, 255, 0.1); /* from tckrz */
    /* For Charts.aspx, let's use a slightly different background to match its theme if needed, or keep tckrz style */
    background-color: #0f1015;
    border: 1px solid var(--bs-secondary); /* Or rgba(255,255,255,0.1) */
}

.search-result-item {
    cursor: pointer;
    /* background-color: transparent; /* Ensure it inherits dropdown background */
    /* color: var(--bs-light); /* Ensure text is light on dark background */
}

    .search-result-item:hover {
        background-color: var(--bs-gray-700); /* Darker hover for dark theme */
    }

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #0a0a0f;
}

.search-results::-webkit-scrollbar-thumb {
    background: #232531;
    border-radius: 4px;
}

    .search-results::-webkit-scrollbar-thumb:hover {
        background: #3a3a45;
    }

#searchResults .list-group .search-result-item.selected {
    background-color: #007bff !important; /* A common Bootstrap primary blue, ensure it applies */
    color: #ffffff !important; /* Ensure parent text color is white */
}

    #searchResults .list-group .search-result-item.selected .ticker-symbol,
    #searchResults .list-group .search-result-item.selected .company-name {
        color: #ffffff !important; /* Ensure child text elements are also white */
    }

.ticker-symbol {
    font-weight: 500;
    color: var(--bs-light); /* Ensure light text */
}

.company-name {
    color: var(--bs-gray-400); /* Lighter secondary color for dark theme */
}

* {
    box-sizing: border-box;
}

body {
    background-color: #0a0a0f;
    color: #e0e6ed;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.navbar {
    background-color: #232531 !important;
    /*border-bottom: 1px solid #1a1a25;*/
    height: 70px;
    flex-shrink: 0;
}

.navbar-brand {
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: clamp(16px, 2.5vw, 20px);
    margin-right: 0;
}

.main-content {
    height: calc(100vh - 70px);
    background-color: #0a0a0f;
    overflow: hidden;
}

.main-layout {
    display: flex;
    height: 100%;
    width: 100%;
}

.main-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.chart-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    /*padding-bottom: 8px;*/
    min-height: 0;
}

.sidebar-container {
    width: 500px;
    min-width: 250px;
    max-width: 500px;
    position: relative;
    flex-shrink: 0;
    background-color: #0f1015;
}

.resize-handle {
    width: 3px;
    background: linear-gradient(180deg, #00ff88, #00d4ff);
    cursor: col-resize;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 10;
    opacity: 0.6;
    transition: all 0.2s ease;
}

    .resize-handle:hover {
        opacity: 1;
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    }

.sidebar {
    height: 100%;
    overflow-y: auto;
    position: relative;
    display: flex;
}

.tab-content-area {
    flex: 1;
    background-color: #0f1015;
    overflow-y: auto;
    min-width: 0;
}

.vertical-tabs {
    width: 50px;
    background-color: #1a1a25;
    border-left: 1px solid #2a2a35;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.vertical-tab-btn {
    width: 100%;
    height: 50px;
    background: none;
    border: none;
    color: #787b86;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 0;
}

    .vertical-tab-btn:hover {
        background-color: rgba(0, 255, 136, 0.05);
        color: #00ff88;
    }

        .vertical-tab-btn:hover::before {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            width: 3px;
            height: 100%;
            background: linear-gradient(180deg, #00ff88, #00d4ff);
            opacity: 0.7;
        }

    .vertical-tab-btn.active {
        background-color: rgba(0, 255, 136, 0.1);
        color: #00ff88;
    }

        .vertical-tab-btn.active::before {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            width: 3px;
            height: 100%;
            background: linear-gradient(180deg, #00ff88, #00d4ff);
        }

    .vertical-tab-btn i {
        font-size: 16px;
    }

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }

.watchlist-header {
    background-color: #1a1a25;
    padding: 12px 16px;
    border-bottom: 1px solid #2a2a35;
    font-weight: 500;
    font-size: clamp(11px, 2vw, 13px);
    color: #e0e6ed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 50px; /* Match the vertical tab button height */
    box-sizing: border-box; /* Include padding in height calculation */
}


.watchlist-item {
    padding: 8px 16px;
    border-bottom: 1px solid #1a1a25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
    cursor: pointer;
    font-size: clamp(11px, 2vw, 13px);
}

    .watchlist-item:hover {
        background-color: rgba(0, 255, 136, 0.05);
        border-left: 2px solid #00ff88;
        padding-left: 14px;
    }

    .watchlist-item.active {
        background-color: rgba(0, 255, 136, 0.1);
        border-left: 2px solid #00ff88;
        padding-left: 14px;
    }

.symbol-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.symbol-text {
    color: #e0e6ed;
    font-weight: 500;
    font-size: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-info {
    text-align: right;
    min-width: 60px;
    flex-shrink: 0;
}

.price {
    font-weight: 500;
    margin-bottom: 2px;
    font-size: inherit;
    color: #ffffff;
}

.change {
    font-size: clamp(10px, 1.8vw, 11px);
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.positive {
    color: #00ff88;
    text-shadow: 0 0 6px rgba(0, 255, 136, 0.3);
}

.negative {
    color: #ff3366;
    text-shadow: 0 0 6px rgba(255, 51, 102, 0.3);
}

/* Navbar responsive elements */
.navbar-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.search-form {
    /*flex: 1;*/
    max-width: 400px;
    min-width: 150px;
    position: relative;
}


.search-trigger {
    background: #1a1a25;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    padding: 12px 16px 12px 45px;
    font-size: clamp(12px, 2vw, 14px);
    border-radius: 2px; /* Match trading panel inputs */
    width: 300px;
    height: 40px;
    cursor: pointer;
}

    .search-trigger:focus {
        outline: none;
        border-color: #00ff88; /* Green outline like trading inputs */
    }

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 13px;
    z-index: 5;
    pointer-events: none;
}

.current-ticker-info {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
    flex-shrink: 0;
}

.ticker-name {
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 600;
    color: #e0e6ed;
}

.ticker-price {
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 600;
    color: #e0e6ed;
}

.ticker-change {
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 500;
}

/* Simulator responsive styles */
.simulator-content {
    padding: 0;
}

.simulator-toggle-row {
    padding: 12px;
    display: flex;
    gap: 8px;
}

.simulator-toggle-btn {
    flex: 1;
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #787b86;
    padding: 8px 12px;
    border-radius: 2px;
    font-size: clamp(10px, 2vw, 12px);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
}

    .simulator-toggle-btn.active {
        background-color: #1a1a25;
        color: #e0e6ed;
        border-color: #1a1a25;
    }

.simulator-row {
    padding: 12px 16px;
}

.simulator-label {
    font-size: clamp(10px, 2vw, 12px);
    color: #787b86;
    margin-bottom: 4px;
}

.simulator-value {
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    color: #ffffff;
    word-break: break-all;
}

    .simulator-value.small {
        font-size: clamp(10px, 2vw, 12px);
        margin-top: 2px;
    }

.chart-analyzer-row {
    /*padding: 12px 12px;*/
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 8px;
    border-bottom: none;
}

/*        .chart-analyzer-btn {
            width: 100%;
            background-color: #2a2a35;
            border: 1px solid #2a2a35;
            color: #e0e6ed;
            padding: 12px;
            border-radius: 2px;
            font-size: clamp(11px, 2vw, 13px);
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .chart-analyzer-btn:hover {
                background-color: #3a3a45;
                border-color: #3a3a45;
            }*/
/* Keyframes for the gradient animation */
@keyframes rainbow-chase {
    0% {
        background-position: 0% 50%;
    }

    100% {
        /* Moves the gradient's start position to the end, creating a loop */
        background-position: 400% 50%;
    }
}

/* --- Main Button Styles (Updated) --- */
.chart-analyzer-btn {
    /* Kept most original styles */
    min-height: 45px;
    width: 100%;
    color: #e0e6ed;
    padding: 12px; /* Reverted padding for rectangular shape */
    font-size: clamp(11px, 2vw, 13px); /* Reverted font-size */
    font-family: sans-serif; /* Added for better text rendering */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* --- Styles added for the effect --- */
    position: relative; /* Establishes positioning context for pseudo-elements */
    z-index: 1; /* Ensures button content is on top */
    background: transparent; /* Button itself has no background fill */
    border: none; /* The visual border is created by the pseudo-elements */
    border-radius: 2px; /* UPDATED: Changed to 2px as requested */
    /*overflow: hidden; */ /* Hides the parts of the pseudo-elements that go outside the border-radius */
    /*display: flex !important;
    flex-direction: column !important;
    align-items: center;*/ /* or flex-start for left-align */
    /*justify-content: center;*/
    display: block !important;
    text-align: center; /* or left */
}

    /* --- Inner Background Layer (creates the solid background and the "outline") --- */
    .chart-analyzer-btn::after {
        content: '';
        position: absolute;
        z-index: -1; /* Sits behind the button's text/icon */
        /* Inset by 1px to create the "border" thickness */
        inset: 1px;
        border-radius: inherit; /* Inherits the button's 2px radius */
        /* Original background color */
        background-color: #2a2a35;
        /* Transition for the background color change on hover */
        transition: background-color 0.2s ease;
    }

    /* --- Animated Gradient Layer (the rainbow) --- */
    .chart-analyzer-btn::before {
        content: '';
        position: absolute;
        z-index: -2; /* Sits behind the inner background layer */
        inset: 0;
        border-radius: inherit; /* Inherits the button's 2px radius */
        /* The rainbow gradient that will be animated */
        background: linear-gradient( 90deg, #60a5fa, #a78bfa, #f87171, #fb923c, #facc15, #4ade80, #60a5fa );
        /* Make the background much wider than the button to allow for movement */
        background-size: 400% 100%;
        /* Hidden by default */
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        /* Set animation that will be un-paused on hover */
        animation: rainbow-chase 4s linear infinite;
        animation-play-state: paused; /* Animation is paused by default */
    }

    /* --- HOVER STATES --- */

    /* --- HOVER & SCRIPT-INVOKED STATES --- */

    /* 1. Show the animated gradient on hover OR when the .force-hover class is present */
    .chart-analyzer-btn:hover::before,
    .chart-analyzer-btn.force-hover::before {
        opacity: 1;
        animation-play-state: running; /* Play the animation */
    }

    /* 2. Change the inner background color on hover OR when the .force-hover class is present */
    .chart-analyzer-btn:hover::after,
    .chart-analyzer-btn.force-hover::after {
        background-color: #000000; /* Your original hover color */
    }






.trade-buttons-row {
    padding: 4px 12px;
    display: flex;
    gap: 8px;
    border-bottom: none;
}

.btn-buy-large, .btn-sell-large, .btn-reverse, .btn-flat, .chart-analyzer-btn, .simulator-toggle-btn {
    border: none;
    color: white;
    font-weight: 600 !important;
    padding: 8px;
    border-radius: 2px;
    flex: 1;
    cursor: pointer;
    font-size: clamp(12px, 2.5vw, 14px) !important;
}

.btn-buy-large, .btn-reverse {
    background: #22c55e;
}

    .btn-buy-large:hover, .btn-reverse:hover {
        background: #16a34a;
    }

.btn-sell-large, .btn-flat {
    background: #ef4444;
}

    .btn-sell-large:hover, .btn-flat:hover {
        background: #dc2626;
    }

.quantity-row {
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1a1a25;
    flex-wrap: wrap;
}

.quantity-input {
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    padding: 8px 12px;
    border-radius: 2px;
    font-size: clamp(12px, 2.5vw, 14px);
    width: 80px;
    min-width: 60px;
}

    .quantity-input:focus {
        outline: none;
        border-color: #00ff88;
    }

.max-shares-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(10px, 2vw, 12px);
    color: #787b86;
    white-space: nowrap;
}

    .max-shares-checkbox input[type="checkbox"] {
        accent-color: #00ff88;
    }

.limit-orders-section {
    padding: 12px 12px;
}

.limit-orders-header {
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 600;
    color: #e0e6ed;
    margin-bottom: 12px;
}

.limit-orders-table-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: clamp(10px, 2vw, 12px);
    color: #787b86;
}

    .limit-orders-table-header span {
        flex: 1;
    }

.limit-order-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.order-type-select, .limit-input {
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    padding: 6px 8px;
    border-radius: 2px;
    font-size: clamp(10px, 2vw, 12px);
    flex: 1;
    min-width: 60px;
}

    .order-type-select:focus, .limit-input:focus {
        outline: none;
        border-color: #00ff88;
    }

.btn-add {
    background: #0ea5e9;
    border: none;
    color: white;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 2px;
    cursor: pointer;
    font-size: clamp(10px, 2vw, 12px);
    white-space: nowrap;
}

    .btn-add:hover {
        background: #0284c7;
    }

/* Custom scrollbars */
.tab-content-area::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.tab-content-area::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
    background: #0f1015;
}

.tab-content-area::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff88, #00d4ff);
    border-radius: 2px;
}

    .tab-content-area::-webkit-scrollbar-thumb:hover,
    .sidebar::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #00d4ff, #00ff88);
    }

/* Mobile-specific styles */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0 0.5rem;
    }

    .main-content {
        height: calc(100vh - 60px);
    }

    .main-layout {
        flex-direction: column;
    }

    .sidebar-container {
        width: 100%;
        height: 40%;
        max-height: 50vh;
        min-height: 200px;
        max-width: none;
    }

    .main-panel {
        height: 60%;
        min-height: 50vh;
    }

    .resize-handle {
        width: 100%;
        height: 2px;
        top: 0;
        left: 0;
        cursor: row-resize;
    }

    .navbar-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .current-ticker-info {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .search-form {
        /*flex: 1;*/
        min-width: 120px;
    }


    .search-icon {
        left: 8px;
        font-size: 11px;
    }

    .simulator-toggle-btn i {
        /*display: none;*/
    }

    .chart-analyzer-btn i {
        margin-right: 0;
    }

    .quantity-row {
        justify-content: space-between;
    }

    .limit-order-row {
        gap: 4px;
    }

    .trade-buttons-row {
        gap: 4px;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar-container {
        width: 280px;
        min-width: 220px;
    }

    .current-ticker-info {
        gap: 12px;
    }

    .search-form {
        max-width: 300px;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    .sidebar-container {
        width: 420px;
        max-width: 420px;
    }

    .search-form {
        max-width: 500px;
    }
}

/* Ultra-wide screen optimizations */
@media (min-width: 1920px) {
    .sidebar-container {
        width: 420px;
        max-width: 420px;
    }
}

/* Animation for price flashing */
.price-flash-up {
    animation: price-flash-up 1s ease-out;
}

.price-flash-down {
    animation: price-flash-down 1s ease-out;
}

@keyframes price-flash-up {
    0% {
        background-color: rgba(0, 255, 136, 0.3);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes price-flash-down {
    0% {
        background-color: rgba(255, 51, 102, 0.3);
    }

    100% {
        background-color: transparent;
    }
}

/* Ensure chart container is responsive */
#newChart {
    width: 100%;
    height: 100%;
    background-color: #0a0a0f !important;
}

.sc-chart-container.dark-mode {
    background-color: #0a0a0f !important;
}

.sc-price-chart {
    border: 0px !important;
}
/* Modal responsive styles */
.modal-dialog {
    max-width: min(800px, 95vw);
    margin: 1rem auto;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    .modal-content {
        border-radius: 8px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .symbol-tabs {
        gap: 12px !important;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}


.hamburger-menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .hamburger-menu-btn:hover {
        background-color: rgba(0, 255, 136, 0.1);
        color: #00ff88;
    }

.hamburger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .hamburger-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.hamburger-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background-color: #0f1015;
    border-right: 1px solid #1a1a25;
    z-index: 1999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

    .hamburger-menu.active {
        left: 0;
    }

.hamburger-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #1a1a25;
}

.hamburger-logo {
    height: 45px;
}

.hamburger-close {
    background: none;
    border: none;
    color: #787b86;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

    .hamburger-close:hover {
        color: #e0e6ed;
    }

.hamburger-nav {
    /*padding: 20px 0;*/
}

.hamburger-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: #e0e6ed;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .hamburger-nav-item:hover {
        background-color: rgba(0, 255, 136, 0.05);
        border-left-color: #00ff88;
        color: #00ff88;
    }

    .hamburger-nav-item i {
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    .hamburger-nav-item span {
        font-size: 14px;
        font-weight: 500;
    }

/* Mobile adjustments */
@media (max-width: 768px) {
    .hamburger-menu {
        width: 280px;
        left: -280px;
    }
}




.footer-handle {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #232531, #2a2a35);
    border: 1px solid #3a3a45;
    border-bottom: none;
    border-radius: 0; /* Remove rounded corners */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 -3px 15px rgba(0, 255, 136, 0.15); /* More subtle pop at rest */
    backdrop-filter: blur(10px);
    box-shadow: 0 -3px 15px rgba(0, 255, 136, 0.25); /* Increased from 0.15 */
    border-color: rgba(0, 255, 136, 0.3); /* Add slight green tint to border */
}

    .footer-handle:hover {
        background: linear-gradient(135deg, #2a2a35, #333545);
        box-shadow: 0 -4px 20px rgba(0, 255, 136, 0.25);
        border-color: #4a4a55;
        transform: translateX(-50%) translateY(-1px); /* Slight lift on hover */
    }

.footer-handle-grip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #00ff88;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.footer-handle:hover .footer-handle-grip {
    color: #00ff88;
}

.footer-handle-grip i {
    font-size: 10px;
    transition: transform 0.3s ease;
    /* Default state should be down arrow when footer is closed */
}

.footer-handle.expanded .footer-handle-grip i {
    transform: rotate(180deg); /* Keep it as up arrow when expanded */
}

.footer-panel {
    position: fixed;
    bottom: -500px;
    left: 0;
    right: 0;
    height: 500px;
    background: linear-gradient(180deg, #0f1015, #1a1a25);
    border-top: 3px solid #2a2a35;
    z-index: 999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

    .footer-panel.expanded {
        bottom: 0;
    }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h6 {
    color: #e0e6ed;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section a {
    display: block;
    color: #787b86;
    text-decoration: none;
    padding: 0.25rem 0;
    font-size: 14px;
    transition: color 0.2s ease;
}

    .footer-section a:hover {
        color: #00ff88;
    }

    .footer-section a i {
        width: 16px;
        margin-right: 8px;
    }

.footer-bottom {
    /*border-top: 1px solid #2a2a35;*/
    padding: 1rem 2rem;
    text-align: center;
}

    .footer-bottom p {
        color: #787b86;
        font-size: 12px;
        margin: 0;
    }

/* Mobile adjustments */
@media (max-width: 768px) {
    .footer-panel {
        height: 250px;
        bottom: -250px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .footer-handle-grip span {
        display: none;
    }

    .footer-handle-grip {
        padding: 6px 12px;
    }
}




/* Modal search input */
.modal-search {
    background: #1a1a25;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    padding: 12px 16px 12px 45px;
    font-size: 14px;
    border-radius: 2px; /* Match trading panel inputs */
    width: 100%;
    height: 44px;
}

    .modal-search:focus {
        outline: none;
        border-color: #00ff88; /* Green outline like trading inputs */
    }


#tickerSearch:focus {
    outline: none;
    border-color: #00ff88 !important;
}



.simulator-toggle-btn {
    flex: 1;
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #787b86;
    padding: 8px 12px;
    border-radius: 2px;
    font-size: clamp(10px, 2vw, 12px);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 500;
}

    /* Default Start button active state */
    .simulator-toggle-btn.active {
        background-color: #0ea5e9;
        color: #ffffff;
        border-color: #0ea5e9;
    }

        .simulator-toggle-btn.active:hover {
            background-color: #0284c7;
            border-color: #0284c7;
        }

    /* Challenge button inactive state */
    .simulator-toggle-btn.challenge:not(.active) {
        background-color: #2a2a35;
        border: 1px solid #2a2a35;
        color: #0ea5e9; /* Blue text when inactive */
    }

        .simulator-toggle-btn.challenge:not(.active):hover {
            background-color: #0ea5e9; /* Blue background on hover */
            border-color: #0ea5e9;
            color: #ffffff; /* White text on hover */
        }

    /* Challenge button active state */
    .simulator-toggle-btn.challenge.active {
        background-color: #0ea5e9; /* Same blue as Start when active */
        border-color: #0ea5e9;
        color: #ffffff;
    }

        .simulator-toggle-btn.challenge.active:hover {
            background-color: #0284c7; /* Darker blue on hover when active */
            border-color: #0284c7;
        }

    /* Regular inactive button hover */
    .simulator-toggle-btn:hover:not(.active):not(.challenge) {
        background-color: #3a3a45;
        border-color: #3a3a45;
        color: #e0e6ed;
    }


    .simulator-toggle-btn.challenge i {
        color: #eab308 !important; /* Yellow bolt icon */
    }

    .simulator-toggle-btn.challenge.active:hover i,
    .simulator-toggle-btn.challenge:hover i {
        color: #ffffff !important; /* White bolt when hovering/active */
    }

.playback-controls-row {
    padding: 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #1a1a25;
    padding-top: 0px !important;
}

.playback-date-selector {
    flex: 2;
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    padding: 6px 8px;
    border-radius: 2px;
    font-size: clamp(10px, 2vw, 11px);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .playback-date-selector:focus {
        outline: none;
        border-color: #00ff88;
    }

    .playback-date-selector::-webkit-calendar-picker-indicator {
        filter: invert(1);
        opacity: 0.7;
    }

.playback-btn {
    flex: 1;
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #787b86;
    padding: 6px 8px;
    border-radius: 2px;
    font-size: clamp(10px, 2vw, 11px);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 30px;
}

    .playback-btn:hover {
        background-color: #3a3a45;
        border-color: #3a3a45;
        color: #e0e6ed;
    }

    .playback-btn.active {
    }

        .playback-btn.active:hover {
            background-color: #0284c7;
            border-color: #0284c7;
        }

.playback-speed {
    font-weight: 500;
    font-size: clamp(9px, 1.8vw, 12px);
    cursor: auto;
}

    .playback-speed:hover {
        background-color: #2a2a35;
        border: 1px solid #2a2a35;
        color: #787b86;
    }

.market-snapshot {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: auto;
}

.market-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.market-symbol {
    font-size: clamp(8px, 1.5vw, 10px);
    color: #787b86;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    margin-bottom: 2px;
}

.market-price {
    font-size: clamp(10px, 2vw, 12px);
    color: #e0e6ed;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 1px;
}

.market-change {
    font-size: clamp(8px, 1.5vw, 10px);
    font-weight: 500;
    line-height: 1;
}

.user-menu {
    margin-left: auto;
}

.user-icon-btn {
    background: none;
    border: none;
    color: #787b86;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .user-icon-btn:hover {
        color: #00ff88;
        background-color: rgba(0, 255, 136, 0.1);
    }

/* Mobile adjustments */
@media (max-width: 1200px) {
    .market-snapshot {
        gap: 12px;
    }

    .market-item {
        min-width: 70px;
    }
}

@media (max-width: 900px) {
    .market-snapshot {
        gap: 8px;
    }

    .market-item {
        min-width: 60px;
    }

    .market-symbol {
        font-size: 8px;
    }

    .market-price {
        font-size: 10px;
    }

    .market-change {
        font-size: 7px;
    }
}

@media (max-width: 768px) {
    .market-snapshot {
        display: none; /* Hide on mobile to save space */
    }
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto; /* Push this entire group to the right */
}

.market-snapshot {
    display: flex;
    gap: 16px;
    align-items: center;
    /* Remove margin-left: auto and margin-right */
}

.user-menu {
    /* Remove margin-left: auto */
}



.quantity-row {
    padding: 12px 12px;
    display: grid; /* Change from flex to grid */
    grid-template-columns: 1fr 1fr; /* Two equal columns like the buttons above */
    gap: 8px; /* Same gap as the button rows */
    align-items: center;
    border-bottom: 1px solid #1a1a25;
}

.quantity-input {
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    padding: 8px 12px;
    border-radius: 2px;
    font-size: clamp(12px, 2.5vw, 14px);
    width: 100%; /* Fill the first grid column */
}

    .quantity-input:focus {
        outline: none;
        border-color: #00ff88;
    }

.max-shares-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(10px, 2vw, 12px);
    color: #787b86;
    white-space: nowrap;
    justify-self: start; /* Align to start of second column */
}

    .max-shares-checkbox input[type="checkbox"] {
        accent-color: #00ff88;
    }

.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1070;
    /*pointer-events: none;*/
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.notification {
    border-radius: 4px;
    padding: 20px 40px;
    color: #fff;
    font-size: 16px;
    opacity: 0;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

    /* Trade notifications - wider for P&L info */
    .notification.profit,
    .notification.loss {
        min-width: 240px;
    }

    /* Achievement notification - widest for badge and description */
    .notification.achievement {
        min-width: 280px;
        padding: 15px 30px;
    }

    /* Action notification - most compact */
    .notification.action {
        /*padding: 12px 24px;*/
        min-width: 180px;
    }

    /* Trade notifications */
    .notification.profit {
        background: rgba(36, 171, 94, 0.05);
        border: 1px solid #24AB5E;
    }

    .notification.loss {
        background: rgba(255, 68, 68, 0.05);
        border: 1px solid #ff4444;
    }

    /* Achievement notification */
    .notification.achievement {
        background: rgba(255, 215, 0, 0.05);
        border: 1px solid #FFD700;
        padding: 15px 30px;
    }

    /* Action notification */
    .notification.action {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .notification .value {
        font-size: 24px;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .notification.profit .value {
        color: #24AB5E;
    }

    .notification.loss .value {
        color: #ff4444;
    }

    .notification.action .value {
        color: #fff;
    }

/* Badge specific styles */
.badge-image {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.achievement-title {
    color: #FFD700;
    font-size: 20px;
    font-weight: 600;
}

.achievement-desc {
    font-size: 14px;
    opacity: 0.9;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    20% {
        opacity: 1;
        transform: translateY(0);
    }

    80% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

/*.show-notification {
    animation: slideDown 4s forwards ease-out;
}

*/

.notification {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .notification.show-notification {
        opacity: 1;
        transform: translateY(0);
    }







.footer-stats-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

    .footer-stats-row .col-6,
    .footer-stats-row .col-md-3 {
        flex: none;
        width: auto;
    }

.stat-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.03), rgba(0, 212, 255, 0.03));
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 6px;
    padding: 18px 20px;
    text-align: center;
    position: relative;
    width: 240px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(180deg, #00ff88, #00d4ff);
        border-radius: 3px 0 0 3px;
        box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .stat-card {
        width: 180px;
        height: 90px;
        padding: 14px 16px;
    }

    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .footer-stats-row {
        gap: 2px;
    }
}


.simul8or-text {
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    font-weight: 700;
}

.footer-panel::-webkit-scrollbar {
    width: 6px;
}

.footer-panel::-webkit-scrollbar-track {
    background: #0f1015;
    border-radius: 3px;
}

.footer-panel::-webkit-scrollbar-thumb {
    background: #3a3a45;
    border-radius: 3px;
    border: 1px solid #4a4a55;
}

    .footer-panel::-webkit-scrollbar-thumb:hover {
        background: #4a4a55;
        border-color: #5a5a65;
    }

/* For Firefox */
.footer-panel {
    scrollbar-width: thin;
    scrollbar-color: #3a3a45 #0f1015;
}



.footer-bottom {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.footer-bottom-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 45px;
}

.footer-copyright {
    color: #787b86;
    font-size: 12px;
    margin: 0;
}

.footer-bottom-right {
    flex: 1;
}

    .footer-bottom-right p {
        color: #787b86;
        font-size: 14px;
        margin: 0;
        line-height: 1.6;
    }

/* Style the simul8or text with green gradient */
.footer-bottom .simul8or-text {
    /*background: linear-gradient(45deg, #00ff88, #00d4ff);*/
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Make specific terms stand out */
.footer-bottom strong {
    color: #e0e6ed;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom-left {
        align-items: center;
    }
}



.footer-bottom {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1200px; /* Add max-width */
    margin: 0 auto; /* Center it */
}


/* Add this to your existing CSS in the <style> section */

/* Scroll text container - positioned at the bottom of footer content */
.scroll-text-container {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to top, rgba(26, 26, 37, 0.9), transparent);
    margin-bottom: 30px;
}

.scroll-text {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    transform: scaleY(0);
    transform-origin: bottom;
    color: #000;
    white-space: nowrap;
    transition: all 0.1s ease-out;
    text-transform: uppercase;
    font-family: 'Arial Black', Arial, sans-serif;
    opacity: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .scroll-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .scroll-text {
        font-size: 1.8rem;
    }
}




/* Contact Modal - Using Your Existing Theme */
#contactModal .modal-content {
    background: #0f1015; /* Match your footer background */
    border: 1px solid #2a2a35; /* Match your existing borders */
    border-radius: 8px; /* Match your existing border-radius */
}

#contactModal .modal-header {
    background: #1a1a25; /* Match your sidebar background */
    border-bottom: 1px solid #2a2a35;
    border-radius: 8px 8px 0 0;
}

#contactModal .modal-title {
    color: #e0e6ed; /* Your existing text color */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

    #contactModal .modal-title i {
        background: linear-gradient(45deg, #00ff88, #00d4ff); /* Your signature gradient */
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

#contactModal .btn-close {
    background: none;
    border: none;
    color: #787b86; /* Your muted text color */
    font-size: 20px;
    opacity: 0.7;
}

    #contactModal .btn-close:hover {
        color: #e0e6ed;
        opacity: 1;
    }

/* Use your existing form control styles */
#contactModal .form-control,
#contactModal .form-select {
    background-color: #2a2a35; /* Match your existing inputs */
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    border-radius: 2px; /* Match your trading panel inputs */
}

    #contactModal .form-control:focus,
    #contactModal .form-select:focus {
        outline: none;
        border-color: #00ff88; /* Your signature green */
        background-color: #2a2a35;
        color: #e0e6ed;
    }

#contactModal .form-label {
    color: #e0e6ed;
    font-weight: 500;
}

/* Use your existing button style */
#contactModal .btn-submit {
    background: linear-gradient(135deg, #00ff88, #00d4ff); /* Your gradient */
    border: none;
    color: #000; /* Black text on gradient like your other buttons */
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 2px; /* Match your other buttons */
    width: 100%;
    transition: all 0.3s ease;
}

    #contactModal .btn-submit:hover {
        background: linear-gradient(135deg, #00d4ff, #00ff88);
        transform: translateY(-1px);
    }

#contactModal .success-message {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    display: none;
}

    #contactModal .success-message i {
        color: #00ff88;
        font-size: 3rem;
        margin-bottom: 16px;
    }

    #contactModal .success-message h5 {
        color: #00ff88;
        margin-bottom: 8px;
    }

#contactModal .form-control:focus,
#contactModal .form-select:focus {
    outline: none;
    border-color: #00ff88; /* Your signature green */
    background-color: #2a2a35;
    color: #e0e6ed;
    box-shadow: none; /* Remove Bootstrap's blue box-shadow */
}


#contactModal .btn-submit {
    background: #0ea5e9; /* Blue background like your Start button */
    border: none;
    color: #ffffff; /* White text */
    font-weight: 500; /* Less bold than 600 */
    padding: 8px 16px; /* Smaller padding like your Start button */
    border-radius: 2px;
    width: 100%;
    font-size: 14px; /* Smaller font size */
    transition: all 0.2s ease;
}

    #contactModal .btn-submit:hover {
        background: #0284c7; /* Darker blue on hover */
        transform: none; /* Remove the translateY effect */
    }

    #contactModal .btn-submit:disabled {
        background: #2a2a35;
        color: #787b86;
        cursor: not-allowed;
    }

#newChart > div > div > div.sc-chart-controls-overlay > button.sc-overlay-button.sc-maximize-button {
    display: none !important;
}


/* Add these styles to your existing CSS */
#disclaimerModal .modal-content {
    background: #0f1015;
    border: 1px solid #2a2a35;
    border-radius: 8px;
}

#disclaimerModal .modal-header {
    background: #1a1a25;
    border-bottom: 1px solid #2a2a35;
    border-radius: 8px 8px 0 0;
}

#disclaimerModal .modal-title {
    color: #e0e6ed;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

    #disclaimerModal .modal-title i {
        color: #ffc107;
    }

#disclaimerModal .btn-close {
    background: none;
    border: none;
    color: #787b86;
    font-size: 20px;
    opacity: 0.7;
}

    #disclaimerModal .btn-close:hover {
        color: #e0e6ed;
        opacity: 1;
    }

#disclaimerModal .disclaimer-content h6 {
    color: #e0e6ed;
    font-weight: 600;
    margin-bottom: 12px;
}

#disclaimerModal .disclaimer-content p {
    color: #9ca3af;
    line-height: 1.6;
}

#disclaimerModal .btn-secondary {
    background: #0ea5e9;
    border: none;
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

    #disclaimerModal .btn-secondary:hover {
        background: #0284c7;
    }

/* Ensure the modal scrolls properly on smaller screens */
@media (max-width: 768px) {
    #disclaimerModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    #disclaimerModal .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }
}



/* Login Modal Fixes */
#loginModal .modal-dialog {
    max-width: 550px; /* Much narrower than default */
    margin: 1rem auto;
}

#loginModal .modal-content {
    background: #0f1015;
    border: 1px solid #2a2a35;
    border-radius: 8px;
}

#loginModal .modal-header {
    background: #0f1015; /* Match modal content background instead of darker */
    border-bottom: none; /* Remove border since there's no visible header content */
    border-radius: 8px 8px 0 0;
    padding: 15px 20px 0 20px; /* Reduce bottom padding since no title */
    justify-content: flex-end; /* Push close button to right */
}

/* Login Modal - Close Button Fix */
#loginModal .btn-close {
    background: none;
    border: none;
    color: #787b86;
    font-size: 20px;
    opacity: 1;
    margin: 0;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    #loginModal .btn-close:hover {
        color: #e0e6ed;
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Override Bootstrap's close button styling for login modal */
    #loginModal .btn-close::before {
        content: "×";
        font-size: 24px;
        line-height: 1;
        color: inherit;
    }


#loginModal .modal-body {
    color: #e0e6ed;
    padding: 0 20px 20px 20px; /* No top padding since header has no bottom padding */
}

#loginModal h4 {
    color: #e0e6ed;
    font-weight: 600;
}

#loginModal .text-muted {
    color: #9ca3af !important;
}

#loginModal .btn-light {
    background: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    transition: all 0.2s ease;
}

    #loginModal .btn-light:hover {
        background: #3a3a45;
        border-color: #3a3a45;
        color: #e0e6ed;
    }

#loginModal .fab {
    margin-right: 8px;
}

#loginModal a {
    color: #00ff88;
    text-decoration: none;
}

    #loginModal a:hover {
        color: #00d4ff;
    }


/* Logout Modal - Match Login Modal Style */
#logoutModal .modal-dialog {
    max-width: 400px; /* Same as welcome modal */
    margin: 1rem auto;
}

#logoutModal .modal-content {
    background: #0f1015;
    border: 1px solid #2a2a35;
    border-radius: 8px;
}

#logoutModal .modal-header {
    background: #0f1015; /* Match modal content background */
    border-bottom: none; /* Remove border */
    border-radius: 8px 8px 0 0;
    padding: 15px 20px 0 20px; /* Reduce bottom padding */
    justify-content: space-between; /* Space between title and close button */
}

#logoutModal .modal-title {
    color: #e0e6ed;
    font-weight: 600;
    margin: 0; /* Remove default margin */
}

#logoutModal .btn-close {
    background: none;
    border: none;
    color: #787b86;
    font-size: 20px;
    opacity: 1;
    margin: 0;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    #logoutModal .btn-close:hover {
        color: #e0e6ed;
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Override Bootstrap's close button styling */
    #logoutModal .btn-close::before {
        content: "×";
        font-size: 24px;
        line-height: 1;
        color: inherit;
    }

#logoutModal .modal-body {
    color: #e0e6ed;
    padding: 20px; /* Consistent padding */
    text-align: center; /* Center the text like login modal */
    font-size: 16px; /* Match login modal text size */
}

#logoutModal .modal-footer {
    border-top: none; /* Remove border to match login modal */
    padding: 0 20px 20px 20px; /* Match login modal padding pattern */
    justify-content: center; /* Center the buttons */
    gap: 12px; /* Add gap between buttons */
}

#logoutModal .btn-secondary {
    background: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 2px;
    transition: all 0.2s ease;
    min-width: 80px; /* Ensure consistent button width */
}

    #logoutModal .btn-secondary:hover {
        background: #3a3a45;
        border-color: #3a3a45;
        color: #e0e6ed;
    }

#logoutModal .btn-danger {
    background: #ef4444;
    border: 1px solid #ef4444;
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 2px;
    transition: all 0.2s ease;
    min-width: 80px; /* Ensure consistent button width */
}

    #logoutModal .btn-danger:hover {
        background: #dc2626;
        border-color: #dc2626;
        color: #ffffff;
    }

/* Mobile responsiveness - match other modals */
@media (max-width: 768px) {
    #logoutModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    #logoutModal .modal-body {
        padding: 15px;
    }

    #logoutModal .modal-footer {
        padding: 0 15px 15px 15px;
        flex-direction: column; /* Stack buttons on mobile */
    }

    #logoutModal .btn-secondary,
    #logoutModal .btn-danger {
        width: 100%; /* Full width on mobile */
        margin-bottom: 8px;
    }

    #logoutModal .btn-danger {
        margin-bottom: 0; /* Remove margin from last button */
    }
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    #loginModal .modal-dialog,
    #welcomeModal .modal-dialog,
    #logoutModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    #settingsModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }
}


.noavsel {
    border: 2px solid #4CAF50;
    border-radius: 50%;
    padding: 4px;
    box-sizing: border-box;
}


.avatar-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.avatar-scroll-wrapper {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.avatar-options-row {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    padding: 10px 0;
}

.avatar-option {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 84px;
    height: 84px;
}

.avatar-option-sm {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 60px;
    height: 60px;
}

    .avatar-option-sm img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }



.avatar-option-xs {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

    .avatar-option-xs img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .avatar-option-xs.selected {
        border-color: #4CAF50;
    }


.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-option:hover {
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: #4CAF50;
}



/* Settings Modal - Match Login/Contact Modal Style */
#settingsModal .modal-dialog {
    max-width: 550px; /* Same as login modal */
    margin: 1rem auto;
}

#settingsModal .modal-content {
    background: #0f1015;
    border: 1px solid #2a2a35;
    border-radius: 8px;
}

#settingsModal .modal-header {
    background: #0f1015; /* Match modal content background */
    border-bottom: none; /* Remove border like login modal */
    border-radius: 8px 8px 0 0;
    padding: 15px 20px 0 20px; /* Reduce bottom padding */
    justify-content: space-between; /* Space between title and close button */
}

#settingsModal .modal-title {
    color: #e0e6ed;
    font-weight: 600;
    margin: 0; /* Remove default margin */
    display: flex;
    align-items: center;
    gap: 12px;
}

    #settingsModal .modal-title i {
        background: linear-gradient(45deg, #00ff88, #00d4ff); /* Your signature gradient */
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

#settingsModal .btn-close {
    background: none;
    border: none;
    color: #787b86;
    font-size: 20px;
    opacity: 1;
    margin: 0;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    #settingsModal .btn-close:hover {
        color: #e0e6ed;
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Override Bootstrap's close button styling for settings modal */
    #settingsModal .btn-close::before {
        content: "×";
        font-size: 24px;
        line-height: 1;
        color: inherit;
    }

#settingsModal .modal-body {
    color: #e0e6ed;
    padding: 20px; /* Consistent padding like login modal */
}

/* Form styling to match contact modal */
#settingsModal .form-control,
#settingsModal .form-select {
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    border-radius: 2px;
    transition: all 0.2s ease;
}

    #settingsModal .form-control:focus,
    #settingsModal .form-select:focus {
        outline: none;
        border-color: #00ff88; /* Your signature green */
        background-color: #2a2a35;
        color: #e0e6ed;
        box-shadow: none; /* Remove Bootstrap's blue box-shadow */
    }

#settingsModal .form-label {
    color: #e0e6ed;
    font-weight: 500;
    margin-bottom: 8px;
}

#settingsModal .form-check-label {
    color: #e0e6ed;
    font-weight: 500;
}

#settingsModal .form-check-input {
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    accent-color: #00ff88;
}

    #settingsModal .form-check-input:checked {
        background-color: #00ff88;
        border-color: #00ff88;
    }

    #settingsModal .form-check-input:focus {
        border-color: #00ff88;
        box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
    }

/* Avatar scroll container styling */
#settingsModal .avatar-scroll-container {
    background: rgba(42, 42, 53, 0.3);
    border: 1px solid #2a2a35;
    border-radius: 4px;
    padding: 10px;
}

#settingsModal .scroll-button {
    background: #2a2a35;
    border: 1px solid #2a2a35;
    color: #787b86;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    #settingsModal .scroll-button:hover {
        background: #3a3a45;
        border-color: #3a3a45;
        color: #e0e6ed;
    }

    #settingsModal .scroll-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Modal footer styling to match other modals */
#settingsModal .modal-footer {
    border-top: none; /* Remove border to match login modal */
    padding: 0 20px 20px 20px; /* Match login modal padding pattern */
    justify-content: center; /* Center the buttons */
    gap: 12px; /* Add gap between buttons */
}

#settingsModal .btn-secondary {
    background: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 2px;
    transition: all 0.2s ease;
    min-width: 100px; /* Ensure consistent button width */
}

    #settingsModal .btn-secondary:hover {
        background: #3a3a45;
        border-color: #3a3a45;
        color: #e0e6ed;
    }

#settingsModal .btn-primary {
    background: #0ea5e9; /* Blue background like your other primary buttons */
    border: none;
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 2px;
    transition: all 0.2s ease;
    min-width: 100px; /* Ensure consistent button width */
}

    #settingsModal .btn-primary:hover {
        background: #0284c7; /* Darker blue on hover */
    }

#settingsModal .btn-soft-info {
    background: #0ea5e9;
    border: 1px solid #0ea5e9;
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 2px;
    transition: all 0.2s ease;
    min-width: 150px; /* Wider for longer text */
}

    #settingsModal .btn-soft-info:hover {
        background: #0284c7;
        border-color: #0284c7;
        color: #ffffff;
    }

/* Links styling */
#settingsModal a {
    color: #00ff88;
    text-decoration: none;
    transition: color 0.2s ease;
}

    #settingsModal a:hover {
        color: #00d4ff;
    }

/* Mobile responsiveness - match other modals */
@media (max-width: 768px) {
    #settingsModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    #settingsModal .modal-body {
        padding: 15px;
    }

    #settingsModal .modal-footer {
        padding: 0 15px 15px 15px;
        flex-direction: column; /* Stack buttons on mobile */
    }

    #settingsModal .btn-secondary,
    #settingsModal .btn-primary,
    #settingsModal .btn-soft-info {
        width: 100%; /* Full width on mobile */
        margin-bottom: 8px;
    }

    #settingsModal .btn-primary,
    #settingsModal .btn-soft-info {
        margin-bottom: 0; /* Remove margin from last button */
    }

    #settingsModal .avatar-scroll-container {
        padding: 8px;
    }

    #settingsModal .scroll-button {
        width: 28px;
        height: 28px;
    }
}


body > nav > div > div > div.navbar-right > div.dropdown.d-inline-block > button,
.dropdown-item:focus,
.dropdown-item:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Also target any links within dropdown items */
body > nav > div > div > div.navbar-right > div.dropdown.d-inline-block > button,
.dropdown-menu a:focus,
.dropdown-menu a:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}



.modal-search-custom {
    max-width: 450px; /* Makes it narrower */
    margin-top: 10%; /* Positions it lower on the page */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-search-custom {
        margin-top: 10%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}


.line1 {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.line2 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 24px;
}

.upgrade-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    padding: 18px 36px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

    .upgrade-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }
