﻿/* --- 1. Variables & Base --- */
:root {
    --bf-yellow: #f8c200;
    --bf-black: #1a1a1a;
    --bf-dark-bg: #121212;
    --bf-panel-bg: #202020;
    --bf-item-bg: #2a2a2a;
    --bf-blue: #1e90ff;
    --bf-red: #ff5252;
    --drawer-width: 250px;
    --bf-grey: #2b2b2b;
    --bf-border: #3a3a3a;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    background: var(--bf-dark-bg);
    font-family: sans-serif;
}

/* --- 4. Trading Panel & Runner Rows --- */
.bf-trading-panel {
    background: var(--bf-panel-bg);
    padding: 20px;
    min-height: 100vh;
    animation: slideIn 0.4s ease;
}

.bf-runner-row {
    background: var(--bf-item-bg);
    border-bottom: 1px solid #444;
    padding: 12px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.bf-back {
    background: var(--bf-blue);
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

.bf-lay {
    background: var(--bf-red);
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

    .bf-back:hover, .bf-lay:hover {
        filter: brightness(1.2);
        transform: scale(1.02);
    }

/* --- 5. Custom Classes & Animations --- */
.magicangelhead {
    font-size: 26px;
    font-weight: 200;
    color: var(--bf-yellow);
}

.magicangelcom {
    font-size: 12px;
    color: white;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

/* Mobile Tweaks */
@media (max-width: 768px) {
    .bf-events-drawer, .bf-matches-drawer {
        width: 200px;
    }

    .bf-trading-panel {
        padding: 10px;
    }
}


/* Mobile-specific styling for the collapsed menu */
@media (max-width: 767px) {
    .bf-left-menu {
        background: #1a1a1a;
        z-index: 1050; /* Sits on top of content when open */
        border-bottom: 2px solid var(--bf-yellow);
    }

    /* Keep the main panel from moving too much */
    .bf-trading-panel {
        width: 100% !important;
        padding-top: 20px;
    }
}
/* --- 5. Custom Classes & Animations --- */
.magicangelhead {
    font-size: 26px;
    font-weight: 200;
    color: var(--bf-yellow);
}

.magicangelcom {
    font-size: 12px;
    color: white;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

/* Mobile Tweaks */
@media (max-width: 768px) {
    .bf-events-drawer, .bf-matches-drawer {
        width: 200px;
    }

    .bf-trading-panel {
        padding: 10px;
    }
}

/* Betfair Navbar */
.bf-navbar {
    background-color: #1a1a1a;
    border-bottom: 3px solid #f8c200;
    padding: 10px 15px;
}

.bf-brand {
    color: #f8c200 !important;
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.bf-link {
    color: #e0e0e0 !important;
    margin-right: 15px;
    transition: color 0.2s ease;
}

    .bf-link:hover {
        color: #f8c200 !important;
    }

.bf-logout-btn {
    background: transparent;
    border: 1px solid #f8c200;
    color: #f8c200;
    padding: 5px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .bf-logout-btn:hover {
        background: #f8c200;
        color: black;
    }

/* Mobile toggle */
.bf-toggler {
    border-color: #f8c200;
}

    .bf-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgb(248,194,0)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

/* Ensure the sidebar doesn't push content down on desktop */
@media (min-width: 768px) {
    .bf-left-menu {
        display: block !important; /*Always show on desktop */
        height: 100vh;
        position: sticky;
        top: 0;
    }
}

/* Mobile-specific styling for the collapsed menu */
@media (max-width: 767px) {
    .bf-left-menu {
        background: #1a1a1a;
        z-index: 1050; /* Sits on top of content when open */
        border-bottom: 2px solid var(--bf-yellow);
    }

    /*   Keep the main panel from moving too much */
    .bf-trading-panel {
        width: 100% !important;
        padding-top: 20px;
    }
}

.flash-yellow {
    background-color: #fff3b0 !important;
    transition: background-color 0.6s ease;
}


:root {
    --col-1-width: 180px;
    --col-2-width: 220px;
    --col-3-width: 240px;
    --bf-yellow: #f8c200;
}

/* Container */
.bf-sidebar-wrapper {
    background: #1a1a1a;
    margin-top:65px;
    min-height: 100vh;
    position: relative;
    overflow: visible !important; /* Critical to show absolute columns */
}

.bf-menu-columns {
    display: flex;
    position: relative;
}

/* Shared Header Styling */
.menu-header {
    color: var(--bf-yellow);
    padding: 15px 10px;
    font-size: 1rem;
    font-weight: bold;
    border-bottom: 1px solid #333;
}

/* Column 1 (Base) */
.bf-sports-column {
    width: var(--col-1-width);
    border-right: 1px solid #333;
}

/* Column 2 (Flyout) */
.submenu {
    position: absolute;
    top: 0;
    left: var(--col-1-width); /* Align to end of Column 1 */
    width: var(--col-2-width);
    background: #1a1a1a;
    height: 100vh;
    border-right: 1px solid #333;
    z-index: 10;
}

/* Column 3 (Flyout) */
.subsubmenu {
    position: absolute;
    top: 0;
    left: var(--col-2-width); /* Align to end of Column 2 */
    width: var(--col-3-width);
    background: #1a1a1a;
    height: 100vh;
    border-right: 1px solid #333;
    z-index: 20;
}

/* Link Styling */
.menu-link, .market-link {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    color: #e0e0e0 !important;
    text-decoration: none;
    border-bottom: 1px solid #222;
    transition: all 0.2s;
}

    .menu-link:hover, .open > .menu-link {
        background: #2a2a2a;
        color: var(--bf-yellow) !important;
    }

    .market-link:hover {
        background: var(--bf-yellow);
        color: black !important;
    }

/* Active indicator arrows */
.arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.open > .menu-link .arrow {
    transform: rotate(90deg);
    color: var(--bf-yellow);
}

/* --- Content Shifting Logic --- */

/* Base content margin (Sport column is 180px) */
.bf-main-content {
    margin-left: 180px;
    transition: margin-left 0.3s ease;
    padding: 20px;
}

/* When Sport is selected (Sport + Events = 180 + 220 = 400px) */
.sport-selected .bf-main-content {
    margin-left: 400px;
}

/* When Event is selected (Sport + Events + Markets = 180 + 220 + 240 = 640px) */
.event-selected .bf-main-content {
    margin-left: 640px;
}

/* Ensure the sidebar doesn't overlap */
.bf-sidebar-wrapper {
    position: absolute; /* Keeps it on the far left */
    z-index: 1000;
}
/* 1. Enable scrolling for each column */
.bf-sports-column,
.submenu,
.subsubmenu {
    height: 100vh; /* Column takes full screen height */
    overflow-y: auto; /* Show vertical scrollbar only if content overflows */
    overflow-x: hidden; /* Prevent horizontal shifting */
    scrollbar-width: thin; /* Firefox styling */
    scrollbar-color: #555 #1a1a1a; /* Firefox colors: thumb & track */
}

    /* 2. Custom Scrollbar Styling (Chrome, Safari, Edge) */
    /* Targets the specific scrollbar area */
    .bf-sports-column::-webkit-scrollbar,
    .submenu::-webkit-scrollbar,
    .subsubmenu::-webkit-scrollbar {
        width: 6px; /* Slim, professional width */
    }

    /* The background track */
    .bf-sports-column::-webkit-scrollbar-track,
    .submenu::-webkit-scrollbar-track,
    .subsubmenu::-webkit-scrollbar-track {
        background: #1a1a1a;
    }

    /* The draggable handle (thumb) */
    .bf-sports-column::-webkit-scrollbar-thumb,
    .submenu::-webkit-scrollbar-thumb,
    .subsubmenu::-webkit-scrollbar-thumb {
        background-color: #555;
        border-radius: 10px;
        border: 1px solid #1a1a1a; /* Creates a gap effect */
    }

        /* Highlight the thumb when hovering or in the active column */
        .bf-sports-column::-webkit-scrollbar-thumb:hover,
        .submenu::-webkit-scrollbar-thumb:hover,
        .subsubmenu::-webkit-scrollbar-thumb:hover {
            background-color: var(--bf-yellow); /* Changes to yellow when user interacts */
        }

/* --- 1. Variables & Layout Setup --- */
:root {
    --col-1-width: 180px;
    --col-2-width: 220px;
    --col-3-width: 240px;
    --bf-yellow: #f8c200;
}

/* Base Wrapper */
.bf-sidebar-wrapper {
    background: #1a1a1a;
    min-height: 100vh;
    position: fixed; /* Keeps sidebar locked to the left */
    top: 0;
    left: 0;
    z-index: 1000;
    overflow: visible !important;
}

.bf-menu-columns {
    display: flex;
    position: relative;
    height: 100vh;
}

/* --- 2. Column & Scrollbar Logic --- */
.bf-sports-column,
.submenu,
.subsubmenu {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #1a1a1a;
    border-right: 1px solid #333;
    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a1a;
}

    /* Custom Scrollbars (Chrome/Edge/Safari) */
    .bf-sports-column::-webkit-scrollbar,
    .submenu::-webkit-scrollbar,
    .subsubmenu::-webkit-scrollbar {
        width: 6px;
    }

    .bf-sports-column::-webkit-scrollbar-track,
    .submenu::-webkit-scrollbar-track,
    .subsubmenu::-webkit-scrollbar-track {
        background: #1a1a1a;
    }

    .bf-sports-column::-webkit-scrollbar-thumb,
    .submenu::-webkit-scrollbar-thumb,
    .subsubmenu::-webkit-scrollbar-thumb {
        background-color: #555;
        border-radius: 10px;
    }

/* --- 3. Flyout Positioning --- */
.bf-sports-column {
    width: var(--col-1-width);
}

.submenu {
    position: fixed; /* Changed to fixed to ensure it stays in column 2 */
    top: 0;
    left: var(--col-1-width);
    width: var(--col-2-width);
    z-index: 1010;
}

.subsubmenu {
    position: fixed; /* Changed to fixed to ensure it stays in column 3 */
    top: 0;
    left: calc(var(--col-1-width) + var(--col-2-width));
    width: var(--col-3-width);
    z-index: 1020;
}

/* --- 4. Main Content Shifting --- */
.bf-main-content {
    margin-left: var(--col-1-width);
    transition: margin-left 0.3s ease;
    padding: 20px;
    width: 100%;
}

.sport-selected .bf-main-content {
    margin-left: calc(var(--col-1-width) + var(--col-2-width));
}

.event-selected .bf-main-content {
    margin-left: calc(var(--col-1-width) + var(--col-2-width) + var(--col-3-width));
}

/* --- 5. UI Elements (Links/Headers) --- */
.menu-header {
    color: var(--bf-yellow);
    padding: 15px 10px;
    font-size: 1rem;
    font-weight: bold;
    border-bottom: 1px solid #333;
    margin: 0;
}

.menu-link, .market-link {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    color: #e0e0e0 !important;
    text-decoration: none;
    border-bottom: 1px solid #222;
}

    .menu-link:hover, .open > .menu-link {
        background: #2a2a2a;
        color: var(--bf-yellow) !important;
    }

    .market-link:hover {
        background: var(--bf-yellow);
        color: black !important;
    }

.arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.open > .menu-link .arrow {
    transform: rotate(90deg);
}

/* Column 2: EVENTS */
.submenu {
    position: fixed; /* Keeps it locked to the column 2 area */
    top: 0;
    left: var(--col-1-width);
    width: var(--col-2-width);
    background: #1a1a1a;
    height: 100vh;
    border-right: 1px solid #333;
    z-index: 1010; /* Lower than markets */
    padding: 0;
    list-style: none;
}

/* Column 3: MARKETS (The Fix) */
.subsubmenu {
    position: fixed; /* Ensures it ignores the relative position of its parent LI */
    top: 0;
    /* Calculated from the very left of the screen: Sport Width + Event Width */
    left: calc(var(--col-1-width) + var(--col-2-width));
    width: var(--col-3-width);
    background: #1a1a1a;
    height: 100vh;
    border-right: 1px solid #333;
    z-index: 1020; /* Higher to sit on top of others */
    padding: 0;
    list-style: none;
}

/* Important: Make sure parents don't hide the overflow */
.menu-item, .submenu-item {
    position: static; /* Prevents LIs from becoming 'anchors' for absolute children */
}


/* Betfair color palette */


/* Modal container */
#universalModal .modal-content {
    background: var(--bf-black);
    color: white;
    border-radius: 0; /* Betfair uses sharp edges */
    border: 1px solid var(--bf-border);
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

/* Header */
#universalModal .modal-header {
    background: var(--bf-grey);
    border-bottom: 1px solid var(--bf-border);
    padding: 12px 16px;
}

#universalModal .modal-title {
    font-weight: 600;
    font-size: 18px;
}

/* Icon spacing */
#modalIcon {
    font-size: 22px;
    margin-right: 8px;
}

/* Body */
#universalModal .modal-body {
    padding: 18px;
    font-size: 16px;
    color: #e6e6e6;
}

/* Footer */
#universalModal .modal-footer {
    background: var(--bf-grey);
    border-top: 1px solid var(--bf-border);
    padding: 12px 16px;
}

/* Betfair buttons */
.bf-btn {
    border-radius: 0;
    padding: 8px 18px;
    font-weight: 600;
    border: none;
}

.bf-btn-ok {
    background: var(--bf-yellow);
    color: black;
}

.bf-btn-cancel {
    background: #444;
    color: white;
}

.bf-btn:hover {
    opacity: 0.85;
}


.navbar {
    background-color: #333;
    font-family: Arial, sans-serif;
}

.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

    .nav-links li a {
        display: block;
        color: white;
        padding: 14px 20px;
        text-decoration: none;
    }

        .nav-links li a:hover {
            background-color: #111;
        }

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
}

    .dropdown-content li a {
        color: black;
        padding: 12px 16px;
        text-align: left;
    }

        .dropdown-content li a:hover {
            background-color: #ddd;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.welcome-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    user-select: none;
    pointer-events: none;
}

.welcome-text {
    font-size: 7rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.95);
    letter-spacing: 3px;
    /* This creates the gold outline */
    -webkit-text-stroke: 2px gold;
    /* Optional: fallback for older browsers */
    text-shadow: -1px -1px 0 gold, 1px -1px 0 gold, -1px 1px 0 gold, 1px 1px 0 gold;
}


.version-text {
    margin-top: 5px;
    font-size: 2.5rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.95); /* slightly brighter than watermark */
    letter-spacing: 2px;
    /* This creates the gold outline */
    -webkit-text-stroke: 2px gold;
    /* Optional: fallback for older browsers */
    text-shadow: -1px -1px 0 gold, 1px -1px 0 gold, -1px 1px 0 gold, 1px 1px 0 gold;
}


.flash {
    animation: flashAnim 0.8s ease-in-out;
}

@keyframes flashAnim {
    0% {
        background-color: #fff7a8;
    }

    100% {
        background-color: inherit;
    }
}

.bg-negative {
    background-color: red !important;
    color: black;
    font-size: 24px;
}

.bg-positive {
    background-color: green !important;
    color: black;
    font-size: 24px;
}

.bg-zero {
    background-color: white !important;
}
.percentage-btn {
    max-width:70px; font-size:12px;
}
.backLay-btn {
    max-width:200px; font-size:26px;
}
.backTotal-btn {
    max-width: 200px;
    font-size: 26px;
}
.accountName-btn {
    max-width:200px; font-size:20px;
}

/* topbarview css*/
/* Color Variables */
:root {
    --back-blue: #72bbef;
    --lay-pink: #faa9ba;
    --blank-white: white;
}

/* Button Colors */
.btn-back {
    background-color: var(--back-blue) !important;
    color: #000;
    font-weight: 600;
}

.btn-lay {
    background-color: var(--lay-pink) !important;
    color: #000;
    font-weight: 600;
}
.btn-blank {
    background-color: var(--lay-white) !important;
    color: #000;
    font-weight: 600;
}

/* The Grid Wrapper */
.betting-grid {
    display: grid;
    /* This creates 12 columns on desktop, but allows them to shrink */
    grid-template-columns: repeat(12, 1fr);
    gap: 5px;
    min-width: 800px; /* Prevents columns from becoming too thin */
}

/* Container for mobile horizontal scroll */
.betting-container {
    overflow-x: auto; /* Adds a scrollbar on mobile so the ladder stays intact */
    padding-bottom: 15px;
}

/* Make inputs look better in the dark theme */
.bet-column input {
    background-color: white;
    border: 1px solid #444;
    color: #fff;
    font-size: 0.10rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .btn {
        font-size: 0.85rem;
        padding: 8px 4px;
    }
}

/* session trading left side left side*/
/* Styling for the dark inputs within the card */
.card .form-control:focus {
    background-color: #2b2b2b;
    border-color: #72bbef;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(114, 187, 239, 0.25);
}

/* Style for the labels to make them more "Pro" */
.text-muted.small.fw-bold {
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.7rem;
}

/* Ensure the card is responsive */
@media (max-width: 576px) {
    .card {
        max-width: 100% !important; /* Take full width on small phones */
        margin-bottom: 1rem;
    }
}

/* Container for the 12-column grid to allow scrolling on small areas */
.ladder-scroll-container {
    overflow-x: auto;
    background: #fff; /* Matches your white background in the image */
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.betting-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(60px, 1fr)); /* Force 12 columns */
    gap: 4px;
}

.bet-column .btn {
    font-size: 0.75rem;
    padding: 4px 2px;
    font-weight: bold;
}

/* Match the specific colors from your image */
.btn-back {
    background-color: #72bbef !important;
    color: #000;
    border: 1px solid #5aa8e0;
}

.btn-lay {
    background-color: #faa9ba !important;
    color: #000;
    border: 1px solid #e895a6;
}

/* Keep sidebar labels small like in the screenshot */
.small.text-muted {
    font-size: 0.65rem;
}
/* Color Scheme */
.btn-back, .label-back, .input-back {
    background-color: #72bbef !important;
    color: #000 !important;
}

.btn-lay, .label-lay, .input-lay {
    background-color: #faa9ba !important;
    color: #000 !important;
}

/* Grid Layout */
.ladder-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}

.betting-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(65px, 1fr));
    gap: 4px;
}

.summary-row {
    display: flex;
    align-items: center;
}

    .summary-row > div {
        flex: 0 0 50px;
        text-align: center;
        border-radius: 4px 0 0 4px;
    }

    .summary-row > input {
        border-radius: 0 4px 4px 0;
        border-left: none;
    }

/* Styling */
.ladder-input {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    font-size: 0.75rem;
}

.trading-terminal .card {
    border-radius: 4px;
}

.trading-terminal .form-control-sm {
    height: 28px;
    font-size: 0.8rem;
}
/* Color Scheme */
.btn-back, .label-back, .input-back {
    background-color: #72bbef !important;
    color: #000 !important;
}

.btn-lay, .label-lay, .input-lay {
    background-color: #faa9ba !important;
    color: #000 !important;
}

/* Grid Layout */
.ladder-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}

.betting-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(65px, 1fr));
    gap: 4px;
}

.summary-row {
    display: flex;
    align-items: center;
}

    .summary-row > div {
        flex: 0 0 50px;
        text-align: center;
        border-radius: 4px 0 0 4px;
    }

    .summary-row > input {
        border-radius: 0 4px 4px 0;
        border-left: none;
    }

/* Styling */
.ladder-input {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    font-size: 0.75rem;
}

.trading-terminal .card {
    border-radius: 4px;
}

.trading-terminal .form-control-sm {
    height: 28px;
    font-size: 0.8rem;
}
/* backbarview as bottom*/
/* Color Palette */
.back-bg {
    background-color: #72bbef !important;
    color: #000;
    font-weight: bold;
}

.lay-bg {
    background-color: #faa9ba !important;
    color: #000;
    font-weight: bold;
}

/* Custom Header Box Styling */
.header-box {
    font-size: 0.7rem;
    padding: 4px 6px;
    text-align: center;
    border-radius: 2px;
    font-weight: 600;
}

/* Compact Inputs */
.trading-terminal .form-control-sm {
    height: 24px;
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Text alignment for currency symbols */
.input-with-symbol {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}

/* This is the key to responsiveness */
.ladder-grid {
    display: grid;
    /* Divide row: 20% | 20% | 20% | 20% | 20% */
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    width: 100%;
}

/* Headers */
.header-box {
    font-size: clamp(10px, 1.5vw, 12px); /* Text shrinks on mobile */
    padding: 6px 2px;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Row Boxes */
.btn-ladder, .sess-box {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(11px, 2vw, 14px);
    border-radius: 4px;
    border: 1px solid #333;
}

.sess-box {
    background-color: white;
    color: black;
    border: 1px solid #000;
}

.btn-dark-outline {
    background-color: #1a1a1a;
    border-color: #444;
}

/* Colors */
.back-bg {
    background-color: #72bbef !important;
    color: #000;
    font-size:12px;
}

.lay-bg {
    background-color: #faa9ba !important;
    color: #000;
    font-size:12px;
}

.sess-bg {
    background-color: white;
    color: black;
    font-size:12px;
}

.sess-box-footer {
    background: white;
    color: #000;
}
.total-box {
    height: 28px;
    background: #222;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 2px;
}

.total-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #aaa;
    font-weight: bold;
    letter-spacing: 1px;
}
/* ----------------------- Flex setup*/

/* Main Horizontal Container */
/*.trading-footer-row {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: flex-start;
    background-color: #e0e0e0;
    padding: 10px;
    overflow-x: auto;*/ /* Adds scroll on mobile instead of stacking */
/*}*/
/* Width control for sections */
/*.footer-col-ladder {
    flex: 0 0 30%;
}*/

/* Grid Alignments */
/*.ladder-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
}*/
/* Box Styling */
/*.header-box {
    font-size: 0.10rem;
    padding: 4px;
    text-align: center;
    font-weight: bold;
    border-radius: 2px;
}*/

/* ---------------- first column ended - 2nd started*/

/* Optional: Make the total row stay at the bottom of the container */
/*.footer-col-ladder-RunStake {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 0 0 30%;
}*/

/* Layout Alignment */
/*.ladder-grid-RunStake {
    display: grid;*/
/*     1st column is flexible, last two are fixed width */
    /*grid-template-columns: 1fr 40px 40px;
    gap: 2px;
    align-items: center;
}

.header-box-RunStake {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.10rem;
    border-radius: 2px;
}*/
/* ---------------- 2nd done 3rd started ------------*/
/* Session Optional: Make the total row stay at the bottom of the container */
/*.footer-col-ladder-Session {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 0 0 30%;
}*/

/* Layout Alignment */
/*.ladder-grid-Session {
    display: grid;*/
    /*     1st column is flexible, last two are fixed width */
    /*grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    align-items: center;
}

.header-box-Session {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.10rem;
    border-radius: 2px;
}*/

/* Compact Inputs */
/*.form-control-footer {
    height: 22px;
    background: #fff;
    color: #000;
    text-align: center;
    font-size: 0.75rem;
    border: 1px solid #333;
    width: 100%;
    padding: 0;
}*/
/*
.total-label {
    font-size: 0.65rem;
    font-weight: bold;
    color: #aaa;
}
.btn-footer, .sess-box-footer, .label-box, .form-control-footer {
    height: 24px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    background: transparent;
    color: white;
    margin: 0;
}

.form-control-footer {
    background: #fff;
    color: #000;
    text-align: center;
    width: 100%;
}



.dark-outline {
    border: 1px solid #444;
}

.back-bg {
    background-color: #72bbef !important;
    color: #000 !important;
}

.lay-bg {
    background-color: #faa9ba !important;
    color: #000 !important;
}


*/
/* Fixed wide section for ladder */
/*.footer-col-stats {
    flex: 1;
    min-width: 250px;
}*/
/* Flexible sections for stats */

/*

.stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2px;
}*/

/* ----------------------- Flex setup */








/* Main Horizontal Container */
.trading-footer-row {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: flex-start;
    background-color: white;
    padding: 10px;
    overflow-x: auto;
}

/* 1st Column: 30% */
.footer-col-ladder {
    flex: 0 0 30%;
    min-width: 0; /* Allows the column to shrink below content size */
}

/* 2nd Column: 20% */
.footer-col-ladder-RunStake {
    flex: 0 0 20%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}



/* 3rd Column: 30% */
.footer-col-ladder-Session {
    flex: 0 0 30%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}


/* 4th Column: 20% (Make sure you have this div in your HTML) */
/*.footer-col-branding {
    flex: 0 0 20%;
    min-width: 0;
}*/

/* IMPORTANT: Update the grid to use minmax to prevent it from forcing a width */
.ladder-grid {
    display: grid;
    /* This ensures columns are exactly equal and can shrink */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
}


.ladder-grid-RunStake {
    display: grid;
    grid-template-columns: 1fr 40px 40px;
    gap: 2px;
    align-items: center;
}

.ladder-grid-Session {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    align-items: center;
}

/* --- Box & Text Styling --- */

.header-box,
.header-box-RunStake,
.header-box-Session {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem; /* Updated from 0.10rem for readability */
    font-weight: bold;
    border-radius: 2px;
}

.form-control-footer {
    height: 22px;
    background: #fff;
    color: #000;
    text-align: center;
    font-size: 0.75rem;
    border: 1px solid #333;
    width: 100%;
    padding: 0;
}
/* top mobile bet sesion*/
/* Reuse our theme colors */
.btn-back {
    background-color: #72bbef !important;
    color: #000 !important;
    border: none;
}

.btn-lay {
    background-color: #faa9ba !important;
    color: #000 !important;
    border: none;
}

    .btn-back:hover, .btn-lay:hover {
        filter: brightness(1.1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

/* Modern styling for the switches */
.form-check-input {
    cursor: pointer;
    width: 2.5em !important;
    height: 1.25em !important;
}

    .form-check-input:checked {
        background-color: #28a745;
        border-color: #28a745;
    }

/* Typography for the "Modern" feel */
.fs-4 {
    font-size: 1.5rem !important;
    letter-spacing: 1px;
}

.text-muted {
    color: #a0a0a0 !important;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}
/* ------- ladder grid for tradingadmin ---------*/
.trading-ladder-row {
    display: flex;
    gap: 10px;
    width: 100%;
    background-color: white;
    padding: 15px;
    overflow-x: auto;
}

.header-trading-box {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px; /* Updated from 0.10rem for readability */
    font-weight: bold;
    border-radius: 2px;
}
/* 1st Column: 30% */
.trading-col-ladder {
    flex: 0 0 30%;
    min-width: 0;
}

.trading-ladder-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
}

.back-bg-tr {
    background-color: #72bbef !important;
    color: #000 !important;
    border: none;
    font-size: 18px;
}

.lay-bg-tr {
    background-color: #faa9ba !important;
    color: #000 !important;
    border: none;
    font-size: 18px;
}

.sess-bg-tr {
    background-color: white;
    color: black;
    font-size: 18px;
    align-items: center;
    justify-content: center;
}
