*:root {
    --header-bg: #0b1120;
    --accent: #38bdf8;
    --bg-body: #f8fafc;
    --border: #e2e8f0;
    --navy: #0f172a;
    --green: #10b981;
}

html,
body {
    height: 100%;
    margin: 0;
}

    body.algobless-theme {
        background-color: var(--bg-body);
        font-family: 'Inter', -apple-system, sans-serif;
        color: var(--navy);
        overflow-y: auto !important;
        display: flex;
        flex-direction: column;
    }
.app-header {
    background: var(--header-bg);
    color: white;
    z-index: 1050;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-container {
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logout-link {
    color: #f87171;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.desktop-nav {
    margin-left: 40px;
    gap: 24px;
}

    .desktop-nav a {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 16px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

        .desktop-nav a.active, .desktop-nav a:hover {
            color: white;
        }

*:root {
    --header-bg: #0b1120;
    --accent: #38bdf8;
    --bg-body: #f8fafc;
    --border: #e2e8f0;
    --navy: #0f172a;
    --green: #10b981;
}

/* Ensure layout flow isn't choked */
html, body {
    height: auto !important;
    min-height: 100%;
    margin: 0;
}

    body.algobless-theme {
        background-color: var(--bg-body);
        font-family: 'Inter', -apple-system, sans-serif;
        color: var(--navy);
        display: flex;
        flex-direction: column;
    }

/* 1. HEADER STRUCTURAL FIXES */
.app-header {
    background: var(--header-bg) !important;
    color: #ffffff !important;
    z-index: 1050;
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.header-right {
    gap: 24px;
}

/* Fix Logo Alignment */
.navbar-brand-link img {
    height: 32px;
    display: block;
}

/* 2. DESKTOP NAVIGATION INTERFACE */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

    .desktop-nav a {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        text-decoration: none !important;
        color: #94a3b8 !important;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

        /* Active and Hover States */
        .desktop-nav a.active,
        .desktop-nav a:hover:not(.nav-disabled) {
            color: #ffffff !important;
            background: rgba(56, 189, 248, 0.1);
            border-radius: 8px;
        }

/* 3. DISABLED LINKS & COMING SOON BADGES */
.nav-disabled {
    color: #475569 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Auto-style the "Soon" spans inside your disabled navigation links */
.coming-soon-tag {
    font-size: 10px;
    text-transform: uppercase;
    background: #1e293b;
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: inline-block;
    line-height: 1;
}

/* Login link styling adjustments */
.user-meta .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

    .user-meta .nav-link:hover {
        color: var(--accent) !important;
    }

/* 4. MOBILE HAMBURGER TOGGLE */
.menu-toggle {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 22px;
    cursor: pointer;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .menu-toggle:focus {
        outline: none;
        box-shadow: none;
    }

/* 5. MOBILE DROPDOWN CONTAINER */
#mobileNav {
    background: #0f172a !important;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
}

    .mobile-nav-links a {
        color: #94a3b8 !important;
        text-decoration: none !important;
        font-weight: 500;
        font-size: 15px;
        padding: 10px 14px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: space-between; /* Keeps "Soon" badges perfectly aligned */
        transition: background 0.2s ease;
    }

        .mobile-nav-links a:hover:not(.nav-disabled) {
            color: #ffffff !important;
            background: rgba(255, 255, 255, 0.05);
        }

/* Fix background conflicts with the tailwind body landing block below it */
.app-container {
    position: relative;
    z-index: 1;
}

.sidebar-or-content-container {
    height: 100vh !important; /* Or a fixed height */
    overflow-y: auto !important;
     /* This enables the vertical scrollbar only when needed */
}

aside, .strategies-list {
    max-height: calc(100vh - 60px) !important; /* Subtract the height of your top navbar */

    overflow-y: auto !important;
}

/* If width is 0px, you won't see or be able to grab the bar */

::-webkit-scrollbar {
    width: 8px !important;
}

::-webkit-scrollbar-thumb {
    background: #333; /* Make sure this contrasts with your dark theme */

    border-radius: 10px !important;
}
 

/* ===== THEME VARIABLES ===== */
/*/

/* ===== HEADER STYLING ===== */
/*.topbar {
    background: var(--header-bg);
    color: white;
    padding: 0 20px;
    z-index: 1050;
}


.brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

    .brand .accent {
        color: var(--accent);
    }

*/
/* Coming Soon / Disabled State */
/*.nav-disabled {
    color: #94a3b8 !important;*/ /* Muted slate color */
    /*cursor: not-allowed !important;
    opacity: 0.7;
    filter: grayscale(1);*/ /* Desaturates the icon */
/*}*/

/* Optional: Small "Soon" Badge inside the link */
/*.coming-soon-tag {
    font-size: 9px;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;*/ /* Pushes badge to the right */
    /*font-weight: 800;
    border: 1px solid #e2e8f0;
}*/

/* Hover effect only for active/enabled links */
/*.desktop-nav a:not(.nav-disabled):hover {
    background: rgba(56, 189, 248, 0.1);*/ /* Light version of your --accent */
    /*border-radius: 8px;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
}

.mobile-nav-links {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #1e293b;
    border-top: 1px solid #334155;
}
*, ::after, ::before {
    box-sizing: border-box;
}
.header {
    display: block;
    unicode-bidi: isolate;
}
    .mobile-nav-links a {
        color: white;
        text-decoration: none;
        font-weight: 600;
    }*/

/* ===== APP LAYOUT ===== */
/*.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}*/

/* SIDEBAR */

/*.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.title-group {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1px;
}

.btn-add-sq {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-weight: 700;
}

.strategy-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

    .strategy-item:hover {
        background: #f1f5f9;
    }

    .strategy-item.active {
        background: var(--navy);
        color: white;
    }

.run-icon {
    color: var(--green);
    font-size: 18px;
}

.active .run-icon {
    color: white;
}*/

/* WORKSPACE */
/*.workspace {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: #f1f5f9;
}

.workspace-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.builder-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.builder-section {
    margin-bottom: 32px;
}
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
}*/

/* STICKY DOCK */
/*.action-dock {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-dock-primary {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-dock-secondary {
    background: #f1f5f9;
    color: var(--navy);
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 700;
}*/

/* MOBILE RESPONSIVENESS */
/*@media (max-width: 768px) {
  
    .mobile-trigger-bar {
        background: white;
        padding: 12px 15px;
        border-bottom: 1px solid var(--border);
    }

    .btn-select-strategy {
        width: 100%;
        background: var(--navy);
        color: white;
        border: none;
        padding: 10px;
        border-radius: 8px;
        font-weight: 600;
    }

    .action-dock {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .dock-buttons {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .btn-dock-primary, .btn-dock-secondary {
        flex: 1;
        padding: 10px;
        font-size: 13px;
    }
}*/
