/* ========================= Color Palette ======================== */
:root {

    /* Colors */
    --dark-bg: #262B2F;
    --dark-darker-bg: #3e4041;
    --dark_medium-bg: #5c5f61;
    --medium-bg: #5c5f61;
    --light-bg: #76797B;
    --lighter-bg: #d3d3d3;
    --lightest-bg: #f0f0f0;
    --accent-green-dark: #69952F;
    --accent-green-light: #8CCA2B;
    --accent-green-darker: #546f32;
    --accent-green-lighter: #94e314;
    --accent-yellow-dark: #D4C409;
    --accent-yellow-light: #F7E71C;
    --accent-yellow-darker: #B7B413;
    --accent-yellow-lighter: #FFF43A;
    --accent-orange-dark: #E06500;
    --accent-orange-light: #FF8F00;
    --accent-orange-darker: #B84D00;
    --accent-orange-lighter: #FFA800;
    --accent-red-dark: #FF0000;
    --accent-red-light: #FF4D4D;
    --accent-red-darker: #CC0000;
    --accent-red-lighter: #FF6666;
    --accent-yellow: rgb(224, 221, 0);
    --accent-red-dark: #FF0000;
    --text-color: #FFFFFF;
    --text-muted: #76797bff;
    --dark-blue: #042F53;
    --blue: #0854A0;
    --light-blue: #0C8DE4;

    /* Base colors for gradients */
    --base-red: rgb(196, 30, 30);
    --base-green: rgb(127, 189, 40);
    --base-yellow: rgb(187, 184, 37);

    --bullish-bg: rgba(127, 189, 40);
    --bearish-bg: rgba(196, 30, 30);
    --neutral-bg: rgba(187, 184, 37);

    --bullish_hover: rgba(127, 189, 40, 0.5);
    --bearish_hover: rgba(196, 30, 30, 0.5);
    --neutral_hover: rgba(187, 184, 37, 0.5);


    --table-header-color: #666666;

    /*------------ AlgoTrader Colors ------------*/

    /* AlgoTrader Colors */
    --algoTrader-darkGray: #262b2f;
    --algoTrader-mediumGray: #515559ff;
    --algoTrader-lightGray: #76797bff;
    --algoTrader-veryLightGray: #a9a2a2;
    --algoTrader-darkGreen: #69952fff;
    --algoTrader-lightGreen: #8cca2bff;
    --algoTrader-yellow: rgb(224, 221, 0);
    --algoTrader-orange: rgb(224, 101, 0);

    /*------------ Button Colors ------------*/

    /* Execute Button */
    --btn-execute-bg: var(--base-yellow);
    --btn-execute-border: var(--base-yellow);
    --btn-execute-hover-bg: var(--accent-yellow-light);
    --btn-execute-hover-border: var(--accent-yellow-light);

    /* Primary Button Colors (Greens) */
    --btn-primary-bg: var(--algoTrader-darkGreen); /* Dark Green */
    --btn-primary-border: var(--algoTrader-darkGreen);
    --btn-primary-hover-bg: var(--algoTrader-lightGreen); /* Light Green */
    --btn-primary-hover-border: var(--algoTrader-lightGreen);

    /* Secondary Button Colors (Grays) */
    --btn-secondary-bg: var(--algoTrader-mediumGray); /* Medium Gray */
    --btn-secondary-border: var(--algoTrader-mediumGray);
    --btn-secondary-hover-bg: var(--algoTrader-lightGray); /* Light Gray */
    --btn-secondary-hover-border: var(--algoTrader-lightGray);

    /* Success Button Colors (Lighter Greens) */
    --btn-success-bg: var(--algoTrader-lightGreen); /* Light Green */
    --btn-success-border: var(--algoTrader-lightGreen);
    --btn-success-hover-bg: #a7e03d; /* Slightly Lighter Green */
    --btn-success-hover-border: #a7e03d;

    /* Danger Button Colors (Reds) */
    --btn-danger-bg: #d32f2f; /* Red */
    --btn-danger-border: #d32f2f;
    --btn-danger-hover-bg: #ef5350; /* Light Red */
    --btn-danger-hover-border: #ef5350;

    /* Warning Button Colors (Oranges) */
    --btn-warning-bg: var(--algoTrader-orange); /* Orange */
    --btn-warning-border: var(--algoTrader-orange);
    --btn-warning-hover-bg: #ff8c42; /* Light Orange */
    --btn-warning-hover-border: #ff8c42;

    /* Info Button Colors (Yellows) */
    --btn-info-bg: var(--algoTrader-yellow); /* Yellow */
    --btn-info-border: var(--algoTrader-yellow);
    --btn-info-hover-bg: #f5f52d; /* Light Yellow */
    --btn-info-hover-border: #f5f52d;

    /* Disabled Button Colors */
    --btn-disabled-bg: var(--lighter-bg); /* Light Gray */
    --btn-disabled-border: var(--lighter-bg); /* Medium Gray */
    --btn-disabled-text: var(--algoTrader-mediumGray); /* Medium Gray */

    /* Bullish Button Colors */
    --btn-bullish-bg: var(--bullish-bg);
    --btn-bullish-border: var(--bullish-bg);
    --btn-bullish-hover-bg: var(--bullish_hover);
    --btn-bullish-hover-border: var(--bullish_hover);


    /* Bearish Button Colors */
    --btn-bearish-bg: var(--bearish-bg);
    --btn-bearish-border: var(--bearish-bg);
    --btn-bearish-hover-bg: var(--bearish_hover);
    --btn-bearish-hover-border: var(--bearish_hover);

    /* Neutral Button Colors */
    --btn-neutral-bg: var(--neutral-bg);
    --btn-neutral-border: var(--neutral-bg);
    --btn-neutral-hover-bg: var(--neutral_hover);
    --btn-neutral-hover-border: var(--neutral_hover);

    /* Text Color for Normal Buttons */
    --btn-text-color: #ffffff; /* White */

    /* Font */
    --heading-font: 'Mulish', sans-serif;
    --text-font: 'Roboto Mono', monospace;
    
    /* Cryptocurrency Colors */
    --crypto-btc-color: rgb(247, 147, 26);
    --crypto-eth-color: rgb(98, 126, 234);
    --crypto-usdt-color: rgb(38, 161, 123);
    --crypto-xrp-color: rgb(0, 122, 255);
    --crypto-bnb-color: rgb(243, 186, 47);
    --crypto-sol-color: rgb(0, 255, 163);
    --crypto-ada-color: rgb(0, 51, 173);
    --crypto-doge-color: rgb(195, 159, 26);
    --crypto-others-color: rgb(128, 128, 128);

    /* Progress bar customization */
    --csj9-green: #8CCA2B;
    --csj9-green-hover: #7ab526;

    /* Gradient opacity */
    --gradient-opacity: 1;
}


/* ==============================================  */
/*                                                 */            
/*        STYLING FOR GENERAL COMPONENTS          */
/*                                                 */
/* ==============================================  */




/*---------------------------------------*/
/* Page Styles                       */
/*-----------------------------------*/
body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--text-font);
    font-size: 12px;
    font-weight: 300;
    height: 100%;
    margin: 0;
    padding: 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--lighter-bg);
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}


/*---------------------------------------*/
/* Titles                                 */
/*---------------------------------------*/

h1, h2, h3, h4, h5, h6, h7 {
    font-family: var(--heading-font);
    font-weight: 800;
    line-height: 1.2em;
}

h1 { font-size: 65px; }
h2 { font-size: 52px; }
h3 { 
    font-size: 45px; 
    padding-top: 0px;
    padding-bottom: 0px;
}

h3 span {
    font-size: 40px;
}
h4 { font-size: 38px; }
h5 {
    font-size: 32px;
    padding-left: 13px;
   }
h6 {
    font-size: 18px;
    font-weight:500;
    color: var(--algoTrader-lightGray)
}
h7 {
    font-size: 16px;
    font-weight: 400;
    color: var(--algoTrader-lightGray)
}

.card-title-center {
    text-align: center;
}

.bot-details-title {
    margin-top: 60px !important;
    margin-bottom: 60px !important;
}

.dashboard-title {
    padding-top: 50px;
    padding-bottom: 50px;
}

.subtitle {
    font-size: 18px; 
    color: var(--text-color-secondary); 
    margin-top: 0;
    padding-bottom: 50px;
}

.section-title {
    color: var(--dark_medium-bg);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dark_medium-bg);
}

/* Responsive Titles */

@media (max-width: 768px) {
    h3 {
        font-size: 40px;
        padding-top: 30px;
        margin-bottom: 0px;
    }
    
    h3 span {
        font-size: 28px;
    }

    h5 {
        font-size: 25px;
        padding-left: 5px
    }

    h6 {
        font-size: 18px;
        font-weight: 400;
    }
    h7 {
        font-size: 16px;
        font-weight: 200;
    }
    
    .subtitle {
        font-size: 16px;
        padding-bottom: 30px;
    }

}

@media (max-width: 576px) {
    h3 {
        font-size: 35px;
        padding-top: 20px;
        padding-bottom: 0px;
    }
    
    h3 span {   
        font-size: 24px;
        display: block;
        margin-top: 10px;
    }

    h5 {
        font-size: 20px;
        padding-left: 0px;
    }

    h6 {
        font-size: 16px;
        font-weight: 200;
    }
    h7 {
        font-size: 14px;
        font-weight: 100;
    }

    .subtitle {
        font-size: 14px;
        padding-bottom: 20px;
    }

}

/*---------------------------------------*/
/* Special Titles                        */
/*---------------------------------------*/
.page-title {
    padding-top: 30px;
    padding-bottom: 10px;
}




/*----------------------------------*/
/* Explanatory Texts                */
/*----------------------------------*/

.description-text {
    color: var(--text-color);
    font-size: 0.85rem !important;
    padding-top: 0rem;
    padding-bottom: 1rem;
    padding-left: 0.5rem;
    padding-right: 1rem;

}

.text-muted{
    color:var(--algoTrader-veryLightGray) !important;
}

.text-muted-small{
    color:var(--algoTrader-veryLightGray) !important;
    font-size: 0.8rem !important;
}

.text-muted-dark{
    color:var(--dark-darker-bg) !important;
}

@media (max-width: 768px) {
.description-text {
    font-size: 0.75rem !important;
    }

}

@media (max-width: 576px) {
    .description-text {
    font-size: 0.7rem !important;
    }

}


/*---------------------------------------*/
/* Links                                */
/*---------------------------------------*/

.settings-link {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.settings-link:hover {
    color: var(--text-color);
}

.settings-link i {
    font-size: 0.8rem;
}



/*---------------------------------------*/
/* Badges                                */
/*---------------------------------------*/

.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    font-weight:100;
}
.bg-bullish {
    background-color: var(--bullish-bg) !important;
}

.bg-bearish {
    background-color: var(--bearish-bg) !important;
}

.bg-neutral {
    background-color: var(--neutral-bg) !important;
}

.bg-info {
    background-color: var(--algoTrader-lightGray) !important;
}

.bg-important {
    background-color: var(--algoTrader-yellow) !important;
    color: var(--algoTrader-darkGray);
}

.bg-active-viable {
    background-color: var(--algoTrader-lightGreen) !important;
}

.bg-inactive-not-viable {
    background-color: var(--algoTrader-orange) !important;
}

.bg-inactive-viable {
    background-color: var(--algoTrader-yellow) !important;
    color: var(--algoTrader-lightGray)
}

.bg-enter {
    background-color: var(--algoTrader-lightGreen) !important;
}

.bg-exit {
    background-color: var(--algoTrader-orange) !important;
}       

.bg-wait {
    background-color: var(--algoTrader-yellow) !important;
    color: var(--algoTrader-lightGray)
}

@media (max-width: 768px) {

    .badge {
        font-size: 0.7rem;
        padding: 0.4em 0.8em;
    }


}

@media (max-width: 576px) {

    .badge {
        font-size: 0.65rem;
        padding: 0.4em 0.8em;
    }

}

/*---------------------------------------*/
/* Buttons                               */
/*---------------------------------------*/

/* Base Styles for All Buttons Except Link Buttons */
.btn:not(.btn-link) {
    font-size: 12px;
    color: var(--btn-text-color);
    box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.3); 
    transition: box-shadow 0.2s, transform 0.2s, background-color 0.2s, border-color 0.2s; /* Smooth transition */
}

.btn:hover {
    box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.5); 
}

.btn:active {
    box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.1); 
    transform: translateY(2px)!important; /* Simulate button push */
}

/* Primary Button */
.btn-primary {
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-border);
}

.btn-primary:active {
    background-color: var(--btn-primary-hover-bg)!important;
    border-color: var(--btn-primary-hover-border)!important;
    
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--btn-secondary-bg);
    border-color: var(--btn-secondary-border);
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover-bg);
    border-color: var(--btn-secondary-hover-border);
}

.btn-secondary:active {
    background-color: var(--btn-secondary-hover-bg)!important;
    border-color: var(--btn-secondary-hover-border)!important;
}

/* Success Button */
.btn-success {
    background-color: var(--btn-success-bg);
    border-color: var(--btn-success-border);
    color: var(--dark_medium-bg) !important;
}

.btn-success:hover {
    background-color: var(--btn-success-hover-bg);
    border-color: var(--btn-success-hover-border);
    color: var(--dark_medium-bg) !important;
}

.btn-success:active {
    background-color: var(--btn-success-hover-bg)!important;
    border-color: var(--btn-success-hover-border)!important;
    color: var(--dark_medium-bg) !important;
}


/* Execute Button */
.btn-execute {
    background-color: var(--btn-execute-bg);
    border-color: var(--btn-execute-border);
    color: var(--dark-bg) !important;
}

.btn-execute:hover {
    background-color: var(--btn-execute-hover-bg);
    border-color: var(--btn-execute-hover-border);
    color: var(--dark-bg);
}

.btn-execute:active {
    background-color: var(--btn-execute-hover-bg)!important;
    border-color: var(--btn-execute-hover-border)!important;
    color: var(--dark-bg);
}


/* Danger Button */
.btn-danger {
    background-color: var(--btn-danger-bg);
    border-color: var(--btn-danger-border);
}

.btn-danger:hover {
    background-color: var(--btn-danger-hover-bg);
    border-color: var(--btn-danger-hover-border);
}

.btn-danger:active {
    background-color: var(--btn-danger-hover-bg)!important;
    border-color: var(--btn-danger-hover-border)!important;
}

/* Warning Button */
.btn-warning {
    background-color: var(--btn-warning-bg);
    border-color: var(--btn-warning-border);
}

.btn-warning:hover {
    background-color: var(--btn-warning-hover-bg);
    border-color: var(--btn-warning-hover-border);
}

.btn-warning:active {
    background-color: var(--btn-warning-hover-bg)!important;
    border-color: var(--btn-warning-hover-border)!important;
}

/* Info Button */
.btn-info {
    background-color: var(--btn-info-bg);
    border-color: var(--btn-info-border);
    color: var(--dark_medium-bg)!important;
}

.btn-info:hover {
    background-color: var(--btn-info-hover-bg);
    border-color: var(--btn-info-hover-border);
    color: var(--dark_medium-bg)!important;
}

.btn-info:active {
    background-color: var(--btn-info-hover-bg)!important;
    border-color: var(--btn-info-hover-border)!important;
    color: var(--dark_medium-bg)!important;
}

/* Green2 Button */
.btn-green2 {
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);

}

.btn-green2:hover {
    background-color: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-border);

}

.btn-green2:active {
    background-color: var(--btn-primary-hover-bg)!important;
    border-color: var(--btn-primary-hover-border)!important;

}

/* Disabled Button Styles */
.btn:disabled {
    background-color: var(--btn-disabled-bg);
    border-color: var(--btn-disabled-border);
    color: var(--btn-disabled-text);
    cursor: not-allowed;
    box-shadow: none; /* Remove shadow on disabled */
    transform: none; /* No transform on disabled */
}

/* Spacing between primary and secondary buttons */
.btn-primary + .btn-secondary {
    margin-left: 10px;
}

/* Additional styles for link buttons */
.btn-link {
    color: var(--algoTrader-darkGreen);
    text-decoration: none;
    font-size: 12px;
    padding-top: 10px;
    display: inline-block;
}

/* Hover state for link buttons */
.btn-link:hover {
    color: var(--algoTrader-lightGreen);
    text-decoration: underline;
}

/* Aligning button in flex containers */
.col-auto.align-self-end {
    display: flex;
    align-items: center;
}

/* Bullish Button */
.btn-bullish {
    background-color: var(--btn-bullish-bg);
    border-color: var(--btn-bullish-border);
    font-size:10px !important;
}

.btn-bullish:hover {
    background-color: var(--btn-bullish-hover-bg);
    border-color: var(--btn-bullish-hover-border);
}

.btn-bullish:active {
    background-color: var(--btn-bullish-hover-bg)!important;
    border-color: var(--btn-bullish-hover-border)!important;
}

/* Bearish Button */
.btn-bearish {
    background-color: var(--btn-bearish-bg);
    border-color: var(--btn-bearish-border);
    font-size:10px !important;
}

.btn-bearish:hover {
    background-color: var(--btn-bearish-hover-bg);
    border-color: var(--btn-bearish-hover-border);
}

.btn-bearish:active {
    background-color: var(--btn-bearish-hover-bg)!important;
    border-color: var(--btn-bearish-hover-border)!important;
}

/* Neutral Button */
.btn-neutral {
    background-color: var(--btn-neutral-bg);
    border-color: var(--btn-neutral-border);
}

.btn-neutral:hover {
    background-color: var(--btn-neutral-hover-bg);
    border-color: var(--btn-neutral-hover-border);
}

.btn-neutral:active {
    background-color: var(--btn-neutral-hover-bg)!important;
    border-color: var(--btn-neutral-hover-border)!important;
}

@media (max-width: 768px) {



}

@media (max-width: 576px) {


}

/*---------------------------------------*/
/* Dropdown Styles                       */
/*---------------------------------------*/

.dropdown-menu {
    background-color: var(--algoTrader-lightGray);
}

.dropdown-item {
    color: var(--text-color);
    font-size: 0.7rem;
}

/*---------------------------------------*/
/* Toggle Icon Styles           */
/*---------------------------------------*/
/* Section toggle icon styles */
.section-toggle-icon {
    transition: transform 0.3s ease;
    color: var(--algoTrader-yellow);
    font-size: 0.8em;
}

.collapsed .section-toggle-icon {
    transform: rotate(-90deg);
}

/* Hover effect for collapsible headers */
.ai-section-subtitle[data-bs-toggle="collapse"]:hover {
    color: var(--algoTrader-yellow);
}

/* Smooth collapse animation */
.collapse {
    transition: all 0.3s ease;
}






/*---------------------------------------*/
/* Card Styles                          */
/*---------------------------------------*/

.card {
    box-shadow: 5px 5px 20px 5px rgba(0,0,0,0.4);
    transition: 0.3s;
    border-color: var(--dark-bg);
    background-color: var(--dark-darker-bg);
    border-radius: 1rem;
}

.card:hover {
    box-shadow: 5px 5px 30px 9px rgba(0,0,0,0.2);
}

.card-header {
    color: white;
    font-size: 24px;
    text-align: center;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 30px;
    padding-bottom: 15px;
    border-width: 0px;
}

.card-header-subtitle {
    font-size: 15px;
    padding-bottom: 30px;
    color: var(--algoTrader-yellow)
}

.card-body {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 15px;
    padding-bottom: 30px;
    color: white;
    border-width: 0px;
}

.card-description {
    font-size: 12px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    color: var(--algoTrader-veryLightGray);
}


@media (max-width: 768px) {

    .card-header {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 30px;
        padding-bottom: 15px;

    }
    
    .card-body {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 15px;
        padding-bottom: 20px;

    }

    .card-header.flex-column {
        text-align: center;
    }
    
    .card-header .btn {
        width: 40% !important;
        margin-top: 0.5rem;
    }


}




@media (max-width: 576px) {

    .card-header {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 30px;
        padding-bottom: 15px;

    }
    
    .card-body {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 15px;
        padding-bottom: 10px;

    }
}

/*---------------------------------------*/
/* Container Card Styles                        */
/*---------------------------------------*/

.container-card {
    box-shadow: 5px 5px 20px 5px rgba(0,0,0,0.4);
    transition: 0.3s;
    border-color: var(--light-bg);
    background-color: var(--light-bg);
    border-radius: 0.8rem 0.8rem 0.8rem 0.8rem;
    max-width: 650px;
    min-width: 500px;
    margin-left: 1rem;
    margin-right: 1rem;
}

.container-card:hover {
    box-shadow: 5px 5px 30px 9px rgba(0,0,0,0.2);
}

.container-card-header-center {
    color: white;
    font-size: 24px;
    padding-left: 0px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-width: 0px;
    border-radius: 0.8rem 0.8rem 0px 0px;
    background-color: var(--dark_medium-bg);
    text-align: center;
}

.container-card-header-left {
    color: white;
    font-size: 24px;
    text-align: left;
    padding-left: 30px;
    padding-top: 30px;
    padding-bottom: 0px;
    border-width: 0px;
    border-radius: 0.8rem 0.8rem 0px 0px;
    display: flex;  /* Add this */
    align-items: center;  /* Add this */

}

.container-card-header-subtitle {
    font-size: 15px;
}

.container-card-body {
    color: white;
    border-width: 0px;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 20px;
    padding-bottom: 30px;
    
}

/* to be deleted */
.container-fluid.py-5{
    background-color: var(--light-bg);
}

.bg-light.rounded-3 {
    background-color: var(--light-bg) !important; /* Light grey background */
    border-radius: 0.75rem !important; /* Rounded corners */
}


/* Responsive adjustments */
@media (max-width: 768px) {

    .container-card {
        max-width: 450px;
        min-width: 400px;
    }


    .container-card-header-center {
        font-size: 24px;
        padding-top: 20px;
    }

    .container-card-body {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 10px;
        padding-bottom: 20px;
    }


}

@media (max-width: 576px) {

    .container-card {
        max-width: 350px;
        min-width: 300px;
    }


    .container-card-header-center {
        font-size: 24px;
        padding-top: 20px;
    }

    .container-card-body {
        
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 0px;
        padding-bottom: 10px;
    }


}




 



/*---------------------------------------*/
/* AI Opinion Container Styles           */
/*---------------------------------------*/

.container-ai-opinion {
    box-shadow: 5px 5px 20px 5px rgba(0,0,0,0.4);
    transition: 0.3s;
    border-color: var(--light-bg);
    border-radius: 0.8rem 0.8rem 0.8rem 0.8rem;
    width: 100%;  /* Add this */
    max-width: 350px;  /* Add this */
    margin: 0 auto;  /* Add this */
    margin-bottom: 20px;
    height: fit-content;
}

.container-ai-opinion-header-center {
    color: white;
    font-size: 24px;
    padding-left: 0px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-width: 0px;
    border-radius: 0.8rem 0.8rem 0px 0px;
    background-color: var(--dark_medium-bg);
    text-align: center;
}

.header-text-ai-opinion {
    color: white;
}

.container-body-ai-opinion {
    color: white;
    border-width: 0px;
    padding-left: 10px;
    padding-right: 10px;    
    padding-top: 20px;

    
}

.ai-bg-consider-investing {
    background-color:#262626;

}

.ai-bg-consider-avoiding {
    background-color:#262626;
}

.ai-bg-consider-waiting {
    background-color:#262626;
}


.header-text-ai-opinion-investing {
    color: var(--bullish-bg);
}

.header-text-ai-opinion-avoiding {
    color: var(--bearish-bg);
}

.header-text-ai-opinion-waiting {
    color: var(--neutral-bg);
}

/* Reason Column */
.reason-column {
    width: 35%;
    min-width: 250px !important;
    max-width: 400px;
    word-wrap: break-word !important;
    white-space: normal !important;
    text-align: left !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .container-ai-opinion {
        max-width: 300px;

        }

    .reason-column {
        width: 30%;
        min-width: 150px;
    }

}

@media (max-width: 576px) {
    .container-ai-opinion {
        max-width: 300px;

        }
}


/*---------------------------------------*/
/* List Groups                          */
/*---------------------------------------*/

.list-group {
    margin-top: 20px; /* Add space above the list group */
}

.list-group-item {
    background-color: white; /* White background for list items */
    color: var(--algoTrader-darkGray); /* Bootstrap primary color for text */
    border: 1px solid #ddd; /* Light grey border for list items */
    margin-bottom: 10px; /* Space between list items */
    border-radius: 5px; /* Rounded corners for list items */
    text-decoration: none; /* Remove underline from links */
    padding: 10px 15px; /* Padding inside list items */
    transition: background-color 0.2s ease-in-out; /* Smooth background color transition */
}

.list-group-item:hover, .list-group-item:focus {
    background-color: var(--accent-green-dark); /* Light blue background on hover/focus */
    color: white; /* Darker blue text on hover/focus */
    text-decoration: none; /* Ensure no underline on hover/focus */
    border-color: var(--accent-green-dark)
}

/*---------------------------------------*/
/* Direction based format                */
/*---------------------------------------*/

.long_format {
    background-color: var(--base-green)!important;
    color: black!important;
}

.short_format {
    background-color: var(--base-red)!important;
    color: white!important;
}

.neutral_format {
    background-color: var(--base-yellow)!important;
    color: black!important;
}


/*---------------------------------------*/
/* Table Gradient Styles                 */
/*---------------------------------------*/

/* Positive gradient (green) */
.gradient-positive-bg {
    background: linear-gradient(to left, 
        rgba(127, 189, 40, 0) 0%,
        rgba(127, 189, 40, var(--gradient-opacity)) 100%
    );
}

/* Negative gradient (red) */
.gradient-negative-bg {
    background: linear-gradient(to left,
        rgba(196, 30, 30, 0) 0%,
        rgba(196, 30, 30, var(--gradient-opacity)) 100%
    );
}


/*---------------------------------------*/
/* General Table                          */
/*---------------------------------------*/

/* Responsive table styles */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    max-height: 70vh;
}


table.table th,
table.table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

table.table th {
    background-color: var(--table-header-color);
    color: var(--text-color);
    font-weight: 100;
}

table.table tbody tr:hover td {
    background-color: var(--lighter-bg);
}

/*---------------------------------------*/
/* Vertical Table                       */
/*---------------------------------------*/
.vertical-table {
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.75rem; 
}

.vertical-table th,
.vertical-table td {
    padding: 8px 10px; 
    border-bottom: 1px solid rgba(128, 128, 128, 0.5); 
    white-space: nowrap; 
}

.vertical-table th {
    background-color: var(--table-header-color); 
    color: var(--text-color); 
    font-weight: normal; 
    text-align: right;
    width: 30%;
}

.vertical-table td {
    background-color: white; 
    color: var(--algoTrader-darkGray); 
    font-weight: lighter; 
    text-align: left;
    width: 70%;
}

.vertical-table td:hover {
    background-color: var(--lightest-bg);
}

.vertical-table td ul {
    list-style: none; /* Remove default list style */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

.vertical-table td ul li {
    padding: 2px 0; /* Padding for list items */
}

/*---------------------------------------*/
/* Vertical Lines for Tables           */
/*-------------------------------------*/
.vertical-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table Styles with Vertical Lines */
.table-vertical-lines {
    border-collapse: separate;
    border-spacing: 0;
    letter-spacing: -0.02em;
    font-size: 0.75rem;
}

.table-vertical-lines th {
    border-right: 1px solid var(--light-bg);
    padding: 4px 6px;
    white-space: normal;
}

.table-vertical-lines td {
    border-right: 0px solid var(--lighter-bg);
    padding: 4px 6px;
    white-space: normal;
    border-bottom: 0px solid var(--light-bg);
}

.table-vertical-lines th:last-child,
.table-vertical-lines td:last-child {
    border-right: none;
}

.table-vertical-lines thead th {
    border-bottom: 0px solid var(--light-bg);
}

.table-vertical-lines tbody tr:last-child td {
    border-bottom: none !important;
}

/* Total Row */
.table-vertical-lines tr.totals-row {
    border-top: 2px solid var(--light-bg);
    border-right: 1px solid var(--light-bg) !important;
}

.table-vertical-lines tr.totals-row td {
    color: var(--text-color);
    font-weight: 500;
    background-color: var(--algoTrader-lightGray);
    border-right: 1px solid var(--light-bg) !important;
}

.table-vertical-lines tr.totals-row td strong {
    color: var(--lightest-bg);
    font-weight: 500;

}

.table-vertical-lines tr.totals-row td:not(:first-child):not(:last-child) {
    color: var(--lightest-bg);
    background-color: var(--algoTrader-lightGray);
}

/* Specific column width controls */
.table-vertical-lines th.col-actions,
.table-vertical-lines td.col-actions {
    min-width: 100px;
    max-width: 120px;
}

.table-vertical-lines th.col-name,
.table-vertical-lines td.col-name {
    min-width: 30px;
    max-width: 150px;
}

.table-vertical-lines th.col-numeric,
.table-vertical-lines td.col-numeric {
    min-width: 30px;
    max-width: 90px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-vertical-lines {

        /* Further reduce font size on mobile */
        font-size: 0.7rem;
    }
    
    .table-vertical-lines th,
    .table-vertical-lines td {
        /* Minimal padding on mobile */
        padding: 4px 6px;
    }
    
    /* Hide less important columns on mobile */
    .table-vertical-lines .hide-mobile {
        display: none;
    }
}


/*---------------------------------------*/
/* Table Success and Danger              */
/*---------------------------------------*/

.table-success {
    background-color: rgba(25, 135, 84, 0.1) !important;  /* Light green */
}

.table-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;  /* Light red */
}


/*---------------------------------------*/
/* Sticky Columns                       */
/*---------------------------------------*/

.sticky-columns .table-responsive {
    position: relative;
    overflow: auto;
    max-height: 70vh;  /* Fixed height to enable vertical scrolling */
}

.sticky-columns thead th {
    position: sticky;
    top: 0;
    z-index: 3;  /* Increased to stay above sticky columns */
}

.sticky-columns th:first-child,
.sticky-columns td:first-child,
.sticky-columns th:nth-child(2),
.sticky-columns td:nth-child(2) {
    position: sticky;
    z-index: 1;
}

.sticky-columns th:first-child,
.sticky-columns td:first-child {
    left: 0;
    width: 15px !important;
}

.sticky-columns th:nth-child(2),
.sticky-columns td:nth-child(2) {
    left: 15px;  /* Must match the width of first column */
    border-right: 0px solid var(--light-bg) !important;
}

/* Ensure sticky headers are above sticky columns */
.sticky-columns thead th:first-child,
.sticky-columns thead th:nth-child(2) {
    z-index: 4;  /* Highest z-index to stay above everything */
}

@media (max-width: 768px) {

    .sticky-columns th:first-child,
    .sticky-columns td:first-child {
        width: 15px !important;
    }
    
    .sticky-columns th:nth-child(2),
    .sticky-columns td:nth-child(2) {
        left: 15px;  /* Must match the width of first column */
    }
}


/*----------------------------------*/
/* Form Styles                      */
/*----------------------------------*/
.form-control {
    background-color: white;
    color: var(--dark-bg);
    border: 1px solid var(--light-bg);
    font-size: 12px; 
    max-width: 300px;
}

.form-select {
    background-color: #f8f9fa; /* Light grey background */
    border: 1px solid #ced4da; /* Grey border */
    border-radius: 0.25rem; /* Rounded corners */
    font-size: 12px;
    max-width: 300px;
}

.form-control:focus {
    box-shadow: 0 0 0.4rem 0.3rem rgba(187, 184, 37, 0.3) !important;
    border: 1px solid rgba(187, 184, 37, 1);
}

#available_capital[disabled] {
    opacity: 0.75; /* Slightly fade the element to indicate it's not interactive */
    background-color: #e9ecef; /* Ensure background color indicates read-only status */
    cursor: not-allowed; /* Change cursor to indicate the element is not interactive */
}

#lastPrice[disabled] {
    opacity: 0.75; /* Slightly fade the element to indicate it's not interactive */
    background-color: #e9ecef; /* Ensure background color indicates read-only status */
    cursor: not-allowed; /* Change cursor to indicate the element is not interactive */
}

.form-control:disabled {
    opacity: 0.75; /* Slightly fade the element to indicate it's not interactive */
    background-color: #e9ecef; /* Ensure background color indicates read-only status */
    cursor: not-allowed; /* Change cursor to indicate the element is not interactive */
}

.form-label {
    color: var(--text-color); /* Dark grey for text */
    font-size: 12px;
    padding-top: 0.8rem;
    padding-right: 0.5rem;
}



.label-right {
    text-align: right;
}


@media (max-width: 576px) {
    .label-right {
        text-align: left;
    }

    .form-control {
        max-width: 100%;
    }


}

@media (max-width: 768px) {
    .label-right {
        text-align: left;
    }
}






/*---------------------------------------*/
/* Icons                               */
/*---------------------------------------*/

/* Active Status Icon (Green) */
.icon-active {
    color: var(--algoTrader-darkGreen); /* Dark Green */
    font-size: 1rem;

}

/* Inactive Status Icon (Gray) */
.icon-inactive {
    color: var(--base-red); /* Medium Gray */
    font-size: 1.1rem; 
}

/* Terminated Status Icon (Red) */
.icon-terminated {
    color: #d32f2f; /* Red */
}


/*---------------------------------------*/
/* Coin Logo Icons                       */
/*---------------------------------------*/

.coin-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;

}

@media (max-width: 768px) {
    .coin-logo {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 576px) {
    .coin-logo {
        width: 18px;
        height: 18px;
    }
}





/*----------------------------------*/
/* Alerts                           */
/*----------------------------------*/

/* General alert styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

/* Info alert */
.alert-info {
    color: var(--algoTrader-darkGray);
    background-color: var(--algoTrader-yellow);
    border-color: var(--algoTrader-yellow);
}

/* Success alert */
.alert-success {
    background-color: var(--algoTrader-lightGreen);
    border-color: var(--algoTrader-lightGreen);
}

/* Warning alert */
.alert-warning {

    background-color: var(--accent-yellow-light);
    border-color: var(--accent-yellow-light);
}

/* Danger alert */
.alert-danger {

    background-color: var(--accent-red-light);
    border-color: var(--accent-red-light);
}

/* Alert link styles */
.alert a {
    color: inherit;
    font-weight: bold;
    text-decoration: underline;
}

.alert a:hover {
    text-decoration: none;
}


/*----------------------------------------------------*/
/*                 Loading Indicator                 */
/*----------------------------------------------------*/

.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--algoTrader-lightGreen);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

/* Loading State Styles */
.spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em !important;
    color: var(--base-green) !important;
    border-right-color: transparent !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*----------------------------------*/
/* Custom styles for SweetAlert2    */
/*----------------------------------*/

.swal2-popup {
    background-color: var(--dark-bg) !important; /* Change the background color of the alert */
    color: white !important; /* Change the font color of the texts */
}

.swal2-title {
    font-size: 24px !important; /* Change the font size of the title */
}

.swal2-content {
    font-size: 14px !important; /* Change the font size of the content */
}

.swal2-confirm {
    background-color: var(--medium-bg) !important; /* Change the background color of the OK button */
    color: white !important; /* Ensure the text color is readable */
    font-size: 16px !important; /* Change the font size of the button */
}

.swal2-icon {
    font-size: 10px !important; /* Change the icon size */
}


/*----------------------------------*/
/* Progress Bar Styles              */
/*----------------------------------*/

/* Progress bar customization */
.progress-bar.bg-success {
    background-color: var(--csj9-green) !important;  /* Using CSJ9's green color variable */
    /* Or you can use a specific color like: */
    /* background-color: #8CCA2B !important; */
}

/* Optional: Add hover effect */
.progress-bar.bg-success:hover {
    background-color: var(--csj9-green-hover) !important;
    /* Or a slightly darker shade: */
    /* background-color: #7ab526 !important; */
}

/* Progress bar color variants */
.progress-bar.score-high {
    background-color: var(--algoTrader-lightGreen) !important;
}

.progress-bar.score-medium {
    background-color: var(--algoTrader-yellow) !important;  /* Orange */
}

.progress-bar.score-low {
    background-color: var(--algoTrader-orange) !important;  /* Light red */
}



/* ===================================================================================================  */
/*                                                                                                      */            
/*        STYLING FOR SPECIFIC COMPONENTS                                                               */
/*                                                                                                      */
/* ===================================================================================================  */


/* Login Card Styles */
/*----------------------------------*/

.login-content {
    position: relative;
    z-index: 1;
    padding-top: 50px;
}


.login-card {
    background-color: var(--light-bg);
    border: none;
    box-shadow: 5px 5px 20px 5px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 380px; 
    min-width: 300px;
    margin: 2rem auto;
}

.login-card .card-header {
    background-color: var(--dark_medium-bg);
    color: white;
    text-align: center;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 1rem 1rem 0 0;
}

.login-card .card-body {
    padding: 1.5rem;
}

.login-card .form-group {
    margin-bottom: 1.5rem;
}

.login-card .form-control {
    border-radius: 5px;
    border: 1px solid var(--light-bg);
    padding: 0.75rem;
    font-size: 0.75rem;
}

.login-card .btn-primary {
    background-color: var(--btn-success-bg);
    border: none;
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.login-card .btn-primary:hover {
    background-color: var(--btn-success-hover-bg);
}

.login-card .btn-link {
    color: var(--algoTrader-yellow);
    text-decoration: none;
    font-size: 0.75rem;
}

.login-card .btn-link:hover {
    color: var(--algoTrader-lightGreen);
    text-decoration: underline;
}

/* Container adjustments for login/signup */
.home-container .container {
    padding: 1rem;    /* Consistent padding */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 56px); /* Account for navbar height */
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-card {
        margin: 1.5rem 1rem;  /* Add horizontal margin on mobile */
        width: calc(100% - 2rem);  /* Account for margins */
    }

    .home-container .container {
        padding: 0;  /* Remove container padding on mobile */
    }

    .login-card .card-body {
        padding: 1.5rem;  /* Slightly reduce padding on mobile */
    }
}


/*----------------------------------*/
/* Navbar Styling                   */
/*----------------------------------*/


.navbar {
    background-color: var(--dark-bg) !important;
    z-index: 1000;
}

/* Logo and Brand */
.navbar-logo {
    height: 30px;
    width: auto;
    margin-right: 5px;
}

.navbar-brand {
    display: flex;
    align-items: flex-end;
    margin-left: 20px;
    color: var(--text-color) !important;
}

.brand-text {
    font-size: 23px;
    line-height: 0.85;
}

/* Navigation Links */
.nav-link {
    color: var(--text-color) !important;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--algoTrader-lightGreen) !important;
    text-decoration: underline;
}

.navbar-nav .nav-link.active {
    color: var(--accent-yellow) !important;
}

/* Nav Menu Styling */
.nav-menu {
    padding-left: 10px;
    padding-right: 10px;
}

.nav-menu a {
    color: var(--algoTrader-lightGreen);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.nav-menu a:hover {
    color: var(--algoTrader-yellow);
    text-decoration: underline;
}

/* Style the separator */
.nav-menu span,  /* If you use <span>|</span> */
.nav-menu {
    color: var(--text-color); /* This will style the | character */
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 56px;
        right: -100%;
        width: 250px;
        height: auto;
        padding: 1rem;
        background-color: var(--dark-darker-bg);
        border-left: 1px solid var(--accent-green-dark);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease-in-out;
        z-index: 1000;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-nav .nav-item {
        margin: 0.5rem 0;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.1rem 1rem;
        display: block;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        margin-right: 1rem;
        transition: transform 0.3s ease;
    }

    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }

    .navbar-toggler[aria-expanded="true"] {
        transform: rotate(90deg);
    }
}

/* Backdrop */
.navbar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.navbar-backdrop.show {
    opacity: 1;
    visibility: visible;
}


/* User Info in Navbar */
.navbar-logged-in-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    padding: 0.5rem 1rem;
}

.navbar-logged-in-indicator .navbar-text {
    color: var(--algoTrader-lightGray);
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar-logged-in-indicator .fas.fa-user {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Remove button styling from logout */
.logout-form {
    margin: 0;
    padding: 0;
}

.logout-form .nav-link {
    padding: 0.5rem 0;
    color: var(--text-color) !important;
    text-decoration: none;
}

.logout-form .nav-link:hover {
    color: var(--algoTrader-lightGreen) !important;
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .navbar-logged-in-indicator {
        flex-direction: column;
        align-items: center;
        border-top: 1px solid var(--algoTrader-lightGray);
        margin-top: 1rem;
        padding-top: 1rem;
        width: 100%;
    }

    .navbar-logged-in-indicator .navbar-text {
        margin-bottom: 0.5rem;
    }

    .logout-form {
        width: 100%;
        text-align: center;
    }
}


/*----------------------------------*/
/* Bots List in Dashboard           */
/*----------------------------------*/

/* Bot name link styling */
.bot-link {
    color: var(--blue);
    transition: color 0.3s ease;
}

.bot-link:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

/* Optional: if you want to make it stand out a bit more */
.bot-link:active {
    color: var(--base-yellow);
    opacity: 0.8;
}

.bot-link:focus {
    outline: none;
    text-decoration: underline;
}



/*----------------------------------*/
/* Account Totals Styling */
/*----------------------------------*/
.account-totals {
    font-size: 0.70rem;
    margin-bottom: 1rem;
}

/* Desktop Table Styling */
.totals-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 1rem 0;
}

.totals-table td {
    padding: 0.5rem;
    white-space: nowrap;
}

/* Mobile Grid Styling */
.totals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.3rem;
}

/* Common Styles */
.total-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
}

.total-item .label {
    color: var(--text-muted);
    white-space: nowrap;
    color: gray;
}

.total-item .value {
    color: var(--text-color);
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .totals-grid {
        gap: 0.1rem;  /* Reduced gap between items */
    }
    
    .total-item {
        gap: 0.25rem;  /* Reduced gap between label and value */
        padding: 0.15rem;  /* Reduced padding */
    }
}

@media (max-width: 576px) {
    .totals-grid {
        grid-template-columns: 1fr;
        gap: 0.15rem;  /* Even smaller gap for mobile */
    }
    
    .account-totals {
        font-size: 0.6rem;
    }
    
    .total-item {
        gap: 0.15rem;  /* Smaller gap for mobile */
        padding: 0.1rem;  /* Minimal padding for mobile */
    }
}

/* Dark theme adjustments if needed */
[data-bs-theme="dark"] .total-item .value {
    color: var(--bs-light);
}


/*-----------------------------------*/
/* Risk Level Indicator             */
/*-----------------------------------*/

.col-5 i.fas {
    color: var(--algoTrader-lightGray);
}

.risk-setting-label {
    font-size: 0.8rem;
}

.risk-level-indicator {
    display: inline-block;
}

.risk-setting-row {
    padding: 1px 0;
}

.risk-settings-container {
    padding: 1px 0;
    max-width: 450px;
    min-width: 320px;
    overflow-x: auto;
}

.risk-bar-container {
    height: 8px;
    background-color: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    margin: 0;
    cursor: help;
    padding: 0;
}

.risk-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    background: linear-gradient(to right, 
        #FFC107 0%, 
        #FFC107 25%, 
        #ff9800 25%, 
        #ff9800 50%, 
        #ff5722 50%, 
        #ff5722 75%,
        #F44336 75%, 
        #F44336 100%
    );
}

@media (max-width: 768px) {
    .risk-setting-label {
        font-size: 0.7rem;

    }

}

@media (max-width: 576px) {
    .risk-setting-label {
        font-size: 0.65rem;

    }

}



/*-----------------------------------*/
/* Performance Table                 */
/*-----------------------------------*/

/* Performance Table Styles */
.performance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.performance-table th,
.performance-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.5);
    white-space: nowrap;
}

.performance-table thead th {
    background-color: var(--table-header-color);
    color: var(--text-color);
    font-weight: normal;
    text-align: center;
}

.performance-table tbody th {
    background-color: var(--table-header-color);
    color: var(--text-color);
    font-weight: normal;
    text-align: right;
    width: 30%; /* Match the width of the first column in vertical-table */
}

.performance-table td {
    background-color: white;
    color: var(--algoTrader-darkGray);
    font-weight: lighter;
    text-align: center;
    width: 35%; /* Distribute remaining width equally between data columns */
}

.performance-table td:hover {
    background-color: var(--lightest-bg);
}

/* Responsive table styles */
.performance-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/*----------------------------------*/
/* Data Table                       */
/*----------------------------------*/

.data-table {
    width: 100%; /* Full width */
    border-collapse: collapse; /* Collapse borders */
    margin-top: 20px; /* Margin top for spacing */
    margin-bottom: 20px; /* Margin top for spacing */
    box-shadow: 10px 10px 20px rgb(0 0 0);
    font-size: 0.75rem; /* Reduced font size */
}

.data-table th, .data-table td {
    padding: 8px 10px; /* Reduced padding for cells */
    border-bottom: 1px solid gray; /* Add gray line to bottom border */
    white-space: nowrap; /* Prevent text wrapping */
}

.data-table th {
    background-color: var(--table-header-color); 
    color: var(--text-color); 
    font-weight: normal; 
    text-align:center;
}

.data-table td {
    background-color: white; 
    color: var(--algoTrader-darkGray); 
    font-weight: lighter; 
    text-align:center;
}

.data-table td:hover {
    background-color: var(--lightest-bg);
}

.data-table td ul {
    list-style: none; /* Remove default list style */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

.data-table td ul li {
    padding: 2px 0; /* Padding for list items */
}



/*----------------------------------*/
/* Sub Data Table                   */
/*----------------------------------*/

.sub-data-table {
    width: 100%; /* Full width */
    border-collapse: collapse; /* Collapse borders */
    margin-top: 20px; /* Margin top for spacing */
    margin-bottom: 20px; /* Margin top for spacing */

}

.sub-data-table th, .sub-data-table td {
    padding: 12px 15px; /* Padding for cells */
    border-bottom: 1px solid gray; /* Add gray line to bottom border */
}

.sub-data-table th {
    background-color: var(--medium-bg); 
    color: var(--text-color); 
    font-weight: normal; 
    text-align:center;
}

.sub-data-table td {
    background-color: var(--lightest-bg); 
    color: black; 
    font-weight: normal; 
    text-align:center;
}

.sub-data-table td:hover {
    background-color: var(--lighter-bg);
}

.sub-data-table td ul {
    list-style: none; /* Remove default list style */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

.sub-data-table td ul li {
    padding: 2px 0; /* Padding for list items */
}




/*----------------------------------*/
/* Range Selectors                  */
/*----------------------------------*/

input[type=range] {
    -webkit-appearance: none; /* Override default CSS styles */
    appearance: none;
    width: 100%; /* Full width */
    height: 5px; /* Specified height of the track */
    background: #d3d3d3; /* Background color of the track */
    outline: none; /* Remove outline */
    opacity: 0.7; /* Set transparency (optional) */
    -webkit-transition: .2s; /* 0.2 seconds transition on hover */
    transition: opacity .2s;
}

/* Styling for the thumb (the draggable circle) */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    width: 15px; /* Width and height of the thumb */
    height: 15px;
    background: var(--accent-green-light); /* Thumb background */
    cursor: pointer; /* Cursor on hover */
    border-radius: 50%; /* Circular shape */
}

input[type=range]::-moz-range-thumb {
    width: 25px; /* Width and height of the thumb */
    height: 25px;
    background: #4CAF50; /* Thumb background */
    cursor: pointer; /* Cursor on hover */
    border-radius: 50%; /* Circular shape */
}

/* Styling for the thumb in IE and Edge */
input[type=range]::-ms-thumb {
    width: 25px; /* Width and height of the thumb */
    height: 25px;
    background: #4CAF50; /* Thumb background */
    cursor: pointer; /* Cursor on hover */
    border-radius: 50%; /* Circular shape */
}

/* Optional: styling for the track on hover */
input[type=range]:hover {
    opacity: 1; /* Fully opaque on hover */
}

/* Styling when disabled                */
input[type=range]:disabled{
    opacity: .2;
}

/* Styling for the perentage indicator */
.range-value-container {
    text-align: right;
}


/*-----------------------------------*/
/* Home Page Styles                  */
/*-----------------------------------*/

/* Background Container */
.home-container {
    position: fixed;  /* Change from relative to fixed */
    top: 56px;       /* Height of navbar */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
    transform: scaleX(-1);  /* Flip the image horizontally */
    z-index: -1;
    margin: 0;
    padding: 0;
}

/* Adjust container for login/signup pages */
.home-container .container {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;  /* Override Bootstrap's max-width */
}

/* Keep login/signup cards centered */
.home-container .login-card {
    margin: auto;
    max-width: 350px;  /* Or whatever max-width you prefer */
}

/* Remove default body margin when home-container is present */
body:has(.home-container) {
    margin: 0;
    padding: 0;
    overflow: hidden;
}



/* Home Page Specific Styles               */
/*-----------------------------------------*/

/* Centered Text Styling */
.home-centered-text {
    position: absolute;
    top: 15%;
    right: 5% !important;
    transform: translateY(-50%);
    color: var(--algoTrader-darkGray);
    font-family: var(--text-font);
    text-align: right;
    z-index: 1;
    width: auto;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.home-centered-text h1 {
    font-size: 45px;
    font-weight: 400;
    font-family: var(--text-font);
    margin-bottom: 0.5rem;
    width: auto;
}

.home-text {
    background-color: var(--algoTrader-yellow);
    padding: 5px 15px;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.home-subtext {
    font-size: 18px;
    font-weight: 300;
    font-family: var(--heading-font);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    color: var(--algoTrader-yellow);
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
}

/* Added styles for TradingView widget */
.tradingview-widget-container {
    position: fixed;  /* Changed from absolute to fixed */
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    margin: 0;      /* Reset margin */
    padding: 0;     /* Reset padding */
}

.tradingview-widget-copyright {
    display: none;  /* Hide the TradingView copyright if desired */
}

/* Adjust main container to prevent widget overlap */
.container.mt-4 {
    margin-bottom: 400px;  /* Adjust this value based on your widget height */
    padding-bottom: 0;     /* Remove bottom padding */
}

/* Ensure body and html can't create extra space */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}



/* Responsive adjustments */
@media (max-width: 1200px) {
    .home-centered-text {
        right: 8%;
        top: 15%;
    }
    .home-subtext {
        left: 8%;
        bottom: 12%;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .home-centered-text {
        right: 5%;
        top: 13%;


    }
    
    .home-centered-text h1 {
        font-size: 35px;

    }
    .home-subtext {
        left: 5%;
        bottom: 10%;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .home-centered-text {
        right: 3%;
        top: 14%

    }
    
    .home-centered-text h1 {
        font-size: 25px;
    }
    .home-subtext {
        left: 3%;
        font-size: 12px;
    }
}

/*-----------------------------------------*/
/* Bot Details Table Specific Styles       */
/*-----------------------------------------*/


/* Common styles for both loading states */
#botsLoadingState {
    display: none;  /* Initially hidden */
}

#balancesLoadingState {
    display: none;  /* Initially hidden */
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 100%;
}

#botsLoadingState.show {
    display: inline-flex !important;
    align-items: center;
}

/* Specific positioning for bots loading state */
#botsLoadingState.show {
    display: inline-flex !important;
    align-items: center;
    margin-left: 12px;
}

/* Specific positioning for balances loading state */
#balancesLoadingState.show {
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Common text styles for both loading states */
#botsLoadingState .small,
#balancesLoadingState .small {
    font-size: 0.75rem;
    color: #999;
    font-weight: 300;
    margin-left: 0.5rem;
}

/* Table container positioning */
#botsTableContainer {
    position: relative;
}


.bot-details-table .form-control,
.bot-details-table .form-select {
    width: auto;
    min-width: 100px;
    max-width: 250px;
    display: inline-block;
    font-size: 12px;
    height: auto;
    padding: 0.375rem 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    white-space: nowrap;
    padding-right: 30px; /* Make room for the dropdown arrow */
}

/* Bot name specific width */
.bot-details-table #bot_name {
    max-width: 250px;
}

/* Strategy select specific styling */
.bot-details-table #strategy {
    min-width: 270px; 
}

/* Number inputs in bot details */
.bot-details-table input[type="number"] {
    appearance: textfield;
}

/* Remove spinner arrows for number inputs */
.bot-details-table input[type="number"]::-webkit-outer-spin-button,
.bot-details-table input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Direction indicator in bot details */
.bot-details-table .direction-display {
    width: 100%;
    max-width: 100px;
    display: inline-block;
    padding: 2px 8px;
    text-align: left;
    border-radius: 4px;
}

/* Status display in bot details */
.bot-details-table .status-display {
    width: auto;
    min-width: 100px;
    max-width: 100px;
    display: inline-block;
    padding: 2px 8px;
    text-align: left;
    border-radius: 4px;
}

/* Status display in bot details */
.bot-details-table .status-display {
    width: auto;
    min-width: 100px;
    max-width: 250px;
    display: inline-block;
    padding: 2px 8px;
    text-align: left;
    border-radius: 4px;
}

/* Table cell alignment */
.bot-details-table td {
    text-align: left;
    vertical-align: middle;
}

.bot-details-table th {
    text-align: right;
    vertical-align: middle;
    padding-right: 15px;
}

/* No orders message styling */
.no-orders-message {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--dark-bg);
    border-radius: 8px;
    margin: 1rem 0;
}

/* No orders message text styling */
.no-orders-message p {
    color: #8a8d93;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-orders-message i {
    color: var(--base-yellow);
    font-size: 1.2rem;
}

/* No positions message styling */
.no-positions-message {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--dark-bg);
    border-radius: 8px;
    margin: 1rem 0;
}

/* No positions message text styling */
.no-positions-message p {
    color: #8a8d93;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* No positions message icon styling */
.no-positions-message i {
    color: var(--base-yellow);
    font-size: 1.2rem;
}

/* No trades message styling */
.no-trades-message {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--dark-bg);
    border-radius: 8px;
    margin: 1rem 0;
}

/* No trades message text styling */
.no-trades-message p {
    color: #8a8d93;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* No trades message icon styling */
.no-trades-message i {
    color: var(--base-yellow);
    font-size: 1.2rem;
}

/*-----------------------------------------*/
/* Snapshot Table Styles (market_analysis) */
/*-----------------------------------------*/
.snapshot_table {
    width: 100%;
}

.snapshot_table th {
    max-width: 150px;
    text-align: right;
}

.snapshot_table td:nth-child(2) {
    text-align: left;
}

.continuous-line-symbol {
    display: inline-flex;
    margin-right: -4px; 
}


/*---------------------------------------*/
/* Price Change Table  (market_analysis) */
/*---------------------------------------*/
#price-change-table {
    width: 100%;
    table-layout: fixed;
}

#price-change-table th, #price-change-table td {
    width: 10%;
    color: white; /* Make text color white */
}

#price-change-table th {
    text-align: center;
}

#price-change-table td {
    text-align: center;
}

/* Trend Direction Table  (market_analysis) */
/*------------------------------------------*/
.trend_direction_table {
    min-width: 800px;
    width: 100%;
}


/* Ticker Info Table Styles  (market_analysis) */
/*---------------------------------------------*/
.ticker_info_table {
    max-width: 700px;
    min-width: 500px;

}

.ticker_info_table th:nth-child(1) {
    max-width: 160px ;
    text-align: right;
}

.ticker_info_table td:nth-child(2) {
    text-align: left;
    white-space: normal; /* Allow text to wrap */
    word-break: break-word; /* Allow long words to break and wrap */
}

/*-------------------------------------------------*/
/* Bot Stats Table Styles (market_analysis)        */
/*-------------------------------------------------*/
.bot_stats_table {
    max-width: 400px;
    min-width: 100px;

}

.bot_stats_table th, .bot_stats_table td {
    text-align: center;
}



/*----------------------------------------------------*/
/* Dashboard Container Styles  (market_analysis)      */  
/*----------------------------------------------------*/
.dashboard-container {
    background-color: var(--light-bg);
    padding: 2vw; /* Use viewport width for responsive padding */
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-container-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    text-align: left;
    margin-bottom: 20px;
}

/* Chart Container Styles (Home Page)   */
/*------------------------------------------*/
.chart-container {
    width: 100%;
}


/* Chart Styles (market_analysis)   */
/*----------------------------------*/

.chart-inner {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;  /* Changed from overflow-x: auto */
}

.chart-canvas {
    position: relative;
    height: 400px;
    max-width: 100%;
    min-width: 300px;
    width: 100%;
    max-height: 400px;
    box-sizing: border-box;
}

.chart-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 20px;
}

.chart-axis-title {
    font-size: 10px;
    font-weight: bold;
    color: var(--text-color);
}

.chart-grid-zero {
    stroke: rgba(255, 0, 0, 1);
    stroke-width: 2;
}

.chart-grid-lines {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
}

/* Trading Grid Chart (create-bot.html)   */
/*----------------------------------------*/

/* Adjustments for mobile devices */
@media (max-width: 768px) {
    body {
        width: 100%;
        padding: 0;
        margin: 0;
    }
}

/*  Adjustments for mobile devices in landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        width: 100%;
        overflow-x: hidden;
    }

}

/* Media query for smaller screens */
@media (max-width: 1200px) {
    .data-table {
        font-size: 0.75rem; /* Further reduce font size on smaller screens */
    }

    .data-table th, .data-table td {
        padding: 6px 8px; /* Further reduce padding on smaller screens */
    }
}





/* Trading Charts Styles            */
/* trading > trading_charts.html    */
/*----------------------------------*/
.trading-charts-container {
    background-color: var(--dark-darker-bg);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.trading-section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-bg);
}

.trading-section-title {
    background-color: var(--dark_medium-bg);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.trading-section-title span {
    color: var(--algoTrader-yellow);
    font-size: 1.1rem;
    font-weight: 600;
}

.timeframe-list {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 1rem;
}

.timeframe-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease;
}

.timeframe-item:hover {
    transform: translateY(-2px);
}

.timeframe-label {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
}

.btn-execute {
    min-width: 140px;
}

.charts-description {
    padding: 1.5rem 0;
    margin: 1rem 0 2rem 0;
    border-top: 1px solid var(--light-bg);
}

.description-text {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 900px; /* Limit text width for better readability */
}

.description-text strong {
    color: var(--algoTrader-yellow);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .timeframe-list {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .timeframe-item {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .timeframe-item {
        flex: 0 0 100%;
    }
    
    .trading-charts-container {
        padding: 1rem;
    }
}

/* Portfolio Header Styling */
/*----------------------------------*/
.container-card-header-left {
    padding-top: 30px;
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
}

.container-card-header-left h5 {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.portfolio-stats {
    font-size: 0.8rem;
    gap: 1rem;
}

.portfolio-stats > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-card-header-left {
        padding-top: 20px;
        padding-bottom: 10px;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap;
    }

    .portfolio-stats {
        font-size: 0.7rem;
        width: 100%;
        margin-top: 0.5rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .portfolio-stats > div {
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .container-card-header-left h5 {
        font-size: 1.5rem;
    }

    .portfolio-stats {
        font-size: 0.65rem;
        gap: 0.25rem;
    }
}

/* Overview Card Styling */
.overview-card {
    margin-bottom: 2rem;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.welcome-text {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.motto-text {
    color: var(--algoTrader-lightGray);
    font-size: 0.9rem;
}


@media (max-width: 576px) {
    
    .welcome-text {
        font-size: 1.5rem;
        color: var(--text-color);
        margin-bottom: 0.25rem;
    }
    
    .motto-text {
        color: var(--algoTrader-lightGray);
        font-size: 0.8rem;
    }
}

/*----------------------------------*/
/* Portfolio Overview               */
/*----------------------------------*/
.portfolio-overview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portfolio-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.value-item .label {
    font-size: 0.8rem;
    color: var(--algoTrader-lightGray);
}

.value-item .value {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.value-item .change {
    font-size: 0.9rem;
}

.change.positive {
    color: var(--base-green);
}

.change.negative {
    color: var(--accent-red-light);
}

#portfolioChangeValue {
    font-size: 1.1rem;
}

/* Portfolio Chart */
/*----------------------------------*/

.portfolio-chart {
    background-color: var(--dark-bg);
    border-radius: 0.5rem;
    padding: 1rem;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.chart-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure chart canvas stays within bounds */
.chart-container canvas {
    max-width: 100% !important;
    width: 100% !important;
}

@media (min-width: 992px) {
    .portfolio-overview {
        flex-direction: row;
        align-items: flex-start;
    }

    .portfolio-summary {
        width: 300px;
        flex-shrink: 0;
    }

    .portfolio-chart {
        flex-grow: 1;
    }
}

@media (max-width: 576px) {
    .portfolio-chart {
        padding: 0.75rem;
    }
    
    .chart-container {
        height: 250px;
    }
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--algoTrader-lightGray);
    -webkit-transition: .4s;
    transition: .4s;
    border: 1px solid var(--base-border);
}

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

input:checked + .slider {
    background-color: var(--algoTrader-darkGreen);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    background-color: white;
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

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

/* Hover effects */
.switch:hover .slider {
    border-color: var(--base-green);
}

.switch:hover .slider:before {
    background-color: var(--algoTrader-lightGreen);
}

.value-type-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-type-label {
    color: var(--algoTrader-lightGray);
    font-size: 0.8rem;
    user-select: none;
}

/* Chart Controls Layout */
.chart-controls {
    width: 100%;
    padding: 0 1rem;
}

/* Coin Selector Styles */
#portfolioCoinSelector {
    width: 100%;
    max-width: 300px;
    min-width: 120px; /* Ensure minimum width */
    flex: 1; /* Allow dropdown to be flexible */
}

/* Value Type Container - Fixed width */
.value-type-container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px; /* Fixed minimum width */
    flex: 0 0 auto; /* Prevent container from shrinking */
}

@media (max-width: 576px) {
    #portfolioCoinSelector {
        max-width: calc(100% - 160px); /* Account for toggle width + padding */
        margin-left: -1rem;
    }
    
    .chart-controls {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .value-type-container {
        margin-left: auto; /* Pushes the switch to the right */
    }

}

/*----------------------------------*/
/* Portfolio PIE Chart */
/*----------------------------------*/

/* Specific styles for pie chart */
.chart-container canvas#portfolioPieChart {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;  /* Center the pie chart */
}

/* Settings Page Specific Styles */
.section-header {
    margin-bottom: 1.5rem;
}



/*----------------------------------*/
/* Welcome Section                  */
/*----------------------------------*/

.setup-alert {
    background-color: var(--algoTrader-darkGray);
    border: 1px solid var(--algoTrader-darkGray);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.welcome-content {
    padding: 10px;
}

.welcome-heading {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.welcome-heading i {
    color: var(--algoTrader-lightGreen);
    margin-right: 8px;
}

.welcome-intro {
    color: var(--algoTrader-lightGray);
    font-size: 1.1em;
    margin-bottom: 1.5rem;
}

.setup-steps {
    padding-left: 0;
}

.setup-step {
    margin-bottom: 1.5rem;
}

.setup-step-text{
    color: var(--algoTrader-lightGray);
    
}

.setup-step h6 {
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.setup-step h6 i {
    color: var(--algoTrader-lightGreen);
    margin-right: 8px;
    width: 20px;
}

.setup-substeps {
    list-style-type: none;
    padding-left: 28px;
    margin: 0.5rem 0;
}

.setup-substeps li {
    color: var(--algoTrader-lightGray);
    margin-bottom: 0.3rem;
    position: relative;
}

.setup-substeps li:before {
    content: "•";
    color: var(--algoTrader-lightGreen);
    position: absolute;
    left: -15px;
}

.setup-link {
    color: var(--algoTrader-darkGreen) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.setup-link:hover {
    color: var(--algoTrader-yellow) !important;
    text-decoration: underline;
}

.setup-link i {
    font-size: 0.8em;
    margin-left: 4px;
}

.setup-alert {
    background-color: var(--algoTrader-darkGray);
    border: 1px solid var(--algoTrader-darkGray);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Add styles for expired API state */
.api-expired .welcome-heading i {
    color: #f39c12;
}

.api-expired .setup-step h6 i {
    color: #f39c12;
}

/*----------------------------------*/
/* AI Advisor Styles                */
/*----------------------------------*/
.ai-reasoning-text {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background-color: var(--dark-darker-bg);
    border-radius: 4px;
}

.ai-analysis-badge {  /* Renamed from .badge to avoid Bootstrap conflicts */
    font-size: 0.9em;
    padding: 5px 10px;
}

/* Sentiment buttons */
.ai-view-analysis {
    min-width: 90px;
    transition: all 0.3s ease;
}

.ai-view-analysis:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ai-view-analysis i {
    margin-right: 5px;
}

/* Sentiment colors */
.btn-outline-success:hover i {
    animation: bounce-up 0.5s ease infinite;
}

.btn-outline-danger:hover i {
    animation: bounce-down 0.5s ease infinite;
}

@keyframes bounce-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/*----------------------------------*/
/* AI Advisor Styles                */
/*----------------------------------*/
.ai-data-label {
    color: var(--algoTrader-lightGray);
    font-weight: 500;
}

.ai-data-value {
    color: var(--text-color);
    font-weight: 400;
}

.ai-analysis-section {
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.ai-analysis-section h6 {
    color: var(--base-yellow);
    border-bottom: 1px solid var(--base-yellow);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.ai-analysis-heading {
    color: var(--base-yellow);
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--base-yellow);
}

.ai-analysis-content {
    margin-left: 1rem;
    margin-bottom: 1rem;
}

/* Analysis Details Sections */
/*----------------------------------*/
.ai-confidence-score {
    color: var(--base-yellow);
    margin-bottom: 1rem;
}

.ai-proposal-section, 
.ai-reasoning-section,
.ai-investment-levels, 
.ai-trading-levels {
    margin-top: 1rem;
    padding: 0rem;
    background-color: var(--dark-bg);
    border-radius: 5px;
}

.ai-levels-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    /* Make single column on small screens */
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

/* Accordion Customization */
/*----------------------------------*/
.accordion-button {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-size:18px;
    border-color: var(--algoTrader-lightGray);

    /* Style the collapse/expand arrow */
    &::after {
        color: var(--algoTrader-lightGray) !important;
        filter: brightness(0) invert(0.7);
        scale: 0.7;
    }
    /* Remove default focus styles */
    &:focus {
        border-color: var(--algoTrader-lightGray);
        box-shadow: none;
    }
    /* Remove blue outline on focus */
    &:not(.collapsed):focus {
        border-color: var(--algoTrader-lightGreen);
        box-shadow: none;
    }
}

.accordion-button:not(.collapsed) {
    background-color: var(--dark-darker-bg);
    color: var(--algoTrader-lightGreen);
    border-color: var(--algoTrader-lightGreen);
    /* Style the collapse/expand arrow when expanded */
    &::after {
        color: var(--algoTrader-lightGray) !important;
        filter: brightness(0) invert(0.7);
        scale: 0.7;
    }
}

.accordion-body {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

/* Level details styling */
.ai-level-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    gap: 1rem;
}

.ai-level-detail::before {
    content: "•";
    color: var(--base-yellow);
    margin-right: 0.25rem;
    margin-left: -0.5rem;
}

.ai-level-detail strong {
    color: var(--algoTrader-lightGray);
    min-width: 100px;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.ai-level-detail span {
    flex: 1;
}

/* Style the close button */
.btn-close {
    scale: 0.7;
    opacity: 0.7;
    filter: brightness(0) invert(0.7);
    &:hover {
        opacity: 1;
        scale: 0.8;
    }
    transition: all 0.2s ease;
}

/* Style accordion item borders */
.accordion-item {
    border: 1px solid var(--algoTrader-lightGray);
    &:focus-within {
        border-color: var(--algoTrader-lightGreen);
    }
}

/* Analysis timestamp styling */
.ai-analysis-timestamp {
    font-size: 0.8rem;
    color: var(--algoTrader-lightGray);
    display: block;
    margin-top: 0.25rem;
}

/*--------------------------------------------------------------*/
/* Portfolio Advisor Action Buttons (ai_portfolio_advisor.html) */
/*--------------------------------------------------------------*/

.portfolio-advisor-actions .btn {
    min-width: 140px;
    padding: 8px 16px;
}

@media (max-width: 768px) {
    .portfolio-advisor-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .portfolio-advisor-actions .btn {
        width: 100%;
        max-width: 200px;
        margin-bottom: 8px;
    }
}

/*--------------------------------------------------------------*/
/* Bot Checkboxes (ai_portfolio_advisor.html)                    */
/*--------------------------------------------------------------*/

.form-check {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    min-height: 1rem;
}

.form-check-input {
    cursor: pointer;
    width: 15px;
    height: 15px;
    margin: 0;
    border: 1px solid var(--algoTrader-lightGray) !important;
    background-color: transparent;
}

.form-check-input:checked {
    background-color: var(--algoTrader-lightGray) !important;
    border-color: var(--algoTrader-lightGray) !important;
}

.form-check-input:focus {
    border-color: var(--algoTrader-lightGray) !important;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgb(224, 221, 0, 0.3);
}

/* Auto-refresh toggle switches - make them visible when checked */
.form-check .form-check-input[type="checkbox"]:checked {
    background-color: var(--accent-green-light) !important;
    border-color: var(--accent-green-light) !important;
}

.form-switch .form-check-input:checked {
    background-color: var(--accent-green-light) !important;
    border-color: var(--accent-green-light) !important;
}

.form-switch .form-check-input:checked:focus {
    box-shadow: 0 0 0 0.2rem rgba(140, 202, 43, 0.4) !important;
}

/* Time Range Selector Buttons */
.time-range-btn {
    background-color: transparent;
    border: 0px solid var(--lightest-bg-bg);
    color: var(--lighter-bg) !important;
    font-size: 0.5rem !important;
    padding: 0.25rem 0.75rem;
    transition: all 0.2s ease;
}

.time-range-btn:hover {
    background-color: var(--light-bg);
    border-color: var(--accent-green-light);
    color: var(--text-primary);
}

.time-range-btn.active {
    background-color: var(--accent-green-light);
    border-color: var(--accent-green-light);
    color: var(--dark-bg) !important;
}

.time-range-btn.active:hover {
    background-color: var(--base-green);
    border-color: var(--base-green);
}

.form-check-input:hover {
    border-color: var(--algoTrader-lightGray);
}


/* Chart Styles                     */
/*----------------------------------*/


.price-chart-wrapper {
    position: relative;
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    overflow: hidden;
    width: 100%;
}

.price-chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: var(--algoTrader-darkgray);
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    min-width: 300px;
    --tv-text-size: 10px; /* TradingView chart text size variable */
}

.card-body.rounded-bottom {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    overflow: hidden;
}

/* Chart Legend Styles */
.price-chart-legend {
    position: relative;
    background: rgba(38, 43, 47, 0.95);
    z-index: 3;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 12px;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.legend-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    margin-top: -5px;
    margin-right: -5px;
}

.legend-close {
    background: none;
    border: none;
    color: var(--algoTrader-lightGray);
    font-size: 20px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.legend-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.price-chart-legend.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 4px 0;
}

.legend-color {
    width: 20px;
    height: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}

.legend-label {
    color: #d1d4dc;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    font-family: var(--text-font);
}

/* Chart Button Styles */
.btn-chart-selector {
    color: var(--algoTrader-lightGreen);
    border-color: var(--algoTrader-darkGreen);
    padding: 5px 15px;
    font-size: 0.875rem;
    border: none;
    border-radius: 20px !important;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-chart-selector:hover {
    background-color: var(--algoTrader-darkGreen);
    color: white;
}

.btn-chart-selector.active {
    background-color: var(--algoTrader-darkGreen);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.show-price-legend-btn {
    position: relative;
    background: rgba(38, 43, 47, 0.95);
    border: none;
    color: var(--algoTrader-lightGray);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: none;
    z-index: 3;
    transition: background-color 0.3s ease;
}

.show-price-legend-btn:hover {
    background: rgba(58, 63, 67, 0.95);
}

.show-price-legend-btn i {
    margin-right: 5px;
}

.price-chart-legend.hidden + .show-price-legend-btn {
    display: block;
}

/* Chart View Switch Styles */
.price-chart-switch {
    display: flex;
    justify-content: center;
}

.view-switch-checkbox {
    display: none;
}

.view-switch-label {
    position: relative;
    display: flex;
    align-items: center;
    width: 200px;
    height: 35px;
    background: var(--dark-darker-bg);
    border-radius: 20px;
    cursor: pointer;
    padding: 3px;
}

.switch-option {
    flex: 1;
    text-align: center;
    color: var(--algoTrader-lightGray);
    z-index: 1;
    transition: color 0.3s ease;
    font-size: 0.8rem;
    line-height: 29px;
}

.switch-slider {
    position: absolute;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background-color: var(--algoTrader-darkGreen);
    border-radius: 17px;
    transition: transform 0.3s ease;
}

.view-switch-checkbox:checked + .view-switch-label .switch-slider {
    transform: translateX(calc(100% + 3px));
}

.view-switch-checkbox:not(:checked) ~ .view-switch-label .switch-option.trading,
.view-switch-checkbox:checked ~ .view-switch-label .switch-option.investment {
    color: white;
}

/* Level Detail Styling */
.ai-level-label {
    color: var(--algoTrader-lightGray);
    min-width: 90px;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.ai-level-value {
    flex: 1;
    color: var(--text-color);
}

.ai-level-value.long {
    color: var(--algoTrader-lightGreen);
}

.ai-level-value.short {
    color: var(--base-red);
}

.ai-level-value.neutral {
    color: var(--base-yellow);
}

.ai-level-price {
    font-family: monospace;
    font-size: 0.8rem;
}

.ai-level-price.stop-loss {
    color: var(--base-red);
}

.ai-level-range {
    font-family: monospace;
    font-size: 0.8rem;
}

.ai-level-reason {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .ai-level-detail {
        padding-left: 0.25rem;
        gap: 0.5rem;
    }

    .ai-level-label {
        min-width: 70px;
        font-size: 0.75rem;
    }

    .ai-level-detail::before {
        margin-right: 0.15rem;
        margin-left: -0.25rem;
    }
    .ai-level-reason {
        font-size: 0.75rem;
    }
    
}

@media (max-width: 576px) {
    .ai-level-detail {
        padding-left: 0.0rem;
        gap: 0.5rem;
    }

    .ai-level-label {
        min-width: 70px;
        font-size: 0.7rem;
    }

    .ai-level-detail::before {
        margin-right: 0rem;
        margin-left: 0rem;
    }
    .ai-level-reason {
        font-size: 0.7rem;
    }
}

/* AI Section Titles */
.ai-section-title {
    font-weight: 550;
    color: var(--algoTrader-lightGreen) !important;
    border-bottom: none !important;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--algoTrader-lightGray) !important;
}

@media (max-width: 768px) {
    .ai-section-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.25rem;
    }
}

/* Chart Section Styles */
.chart-section {
    width: 100%;
    background-color: var(--dark-bg);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.chart-header {
    padding: 1rem;
}

.chart-body {
    width: 100%;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    overflow: hidden;
}

/* Price Chart Styles */
.price-chart-wrapper {
    position: relative;
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    overflow: hidden;
    width: 100%;
}

/* AI Chart Section Styles */
.ai-chart-section {
    width: 100%;
    background-color: var(--dark-bg);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.ai-chart-header {
    padding: 0rem;
}

.ai-chart-body {
    width: 100%;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .switch-option {
        font-size: 0.7rem;
        line-height: 25px;
    }
    
    .price-chart-container {
        --tv-text-size: 9px;
    }
}

@media (max-width: 576px) {
    .switch-option {
        font-size: 0.7rem;
        line-height: 22px;
    }
    
    .price-chart-container {
        --tv-text-size: 8px;
    }
}

.price-chart-legend-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background-color: var(--dark-bg);
}

/*----------------------------------*/
/* AI Research Styles                */
/*----------------------------------*/

/* News Research Styles */
.ai-news-research {
    padding: 1rem;
}

.news-content {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.news-content .table {
    font-size: 0.9rem;
}

/* AI Content Item Styles */
.ai-content-item {
    color: gray;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.ai-content-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--base-yellow);
    font-size: 0.8rem;
}

.ai-content-value{
    color: var(--lightest-bg);
    font-size: 0.8rem;

}

.ai-content-valueText{
    color: var(--lightest-bg);
    margin-left: 20px;
    font-size: 0.8rem;
}

.ai-note-text {
    color: gray;
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
}

/* Update existing styles */
.news-content p {
    margin-bottom: 0.5rem;
}

/* Ticker Info Styles */
.ticker-info {
    padding: 1rem;
    background: var(--dark-bg);
    border-radius: 0.5rem;
}

.ticker-info h4 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

/* Research number style */
.card-header .text-muted {
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .ai-content-item {
        font-size: 0.75rem;

    }
    
    .ai-content-value{
        font-size: 0.75rem;
    
    }
    
    .ai-content-valueText{
        font-size: 0.75rem;
    }

}

@media (max-width: 576px) {
    .ai-content-item {
        font-size: 0.7rem;

    }
    
    .ai-content-value{
        font-size: 0.7rem;
    
    }
    
    .ai-content-valueText{
        font-size: 0.7rem;
    }

}

/* Update the column class */
.col-md-4 {
    display: flex;
    justify-content: center;
}


/*----------------------------------*/
/* AI SETUPS STYLES                 */
/*----------------------------------*/

/* Levels Table Styling */
#levelsTable td:last-child {
    max-width: 350px;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
}

#levelsTable td:not(:last-child) {
    white-space: nowrap;
}



/*----------------------------------*/
/* CREATE 3COMMAS GRID BOT          */
/*----------------------------------*/

/* Custom style for grid bot checkboxes */
.gridbot-checkbox {
    background-color: #fff !important;
    border-color: var(--algoTrader-lightGray) !important;
    accent-color: var(--algoTrader-lightGray); /* Modern browsers: checkmark color */
}

/* Optional: If you want to ensure the checkmark is always gray, even in older browsers */
.gridbot-checkbox:checked {
    border-color: var(--algoTrader-lightGray) !important;
    /* accent-color already handles the checkmark color in modern browsers */
}



/*----------------------------------*/
/* TRADING DASHBOARD                */
/*----------------------------------*/


.wrap-header {
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.1;
    font-size: 0.75rem;
    text-align: center;
    vertical-align: middle;
    padding: 4px 6px;
}

.nowrap-header {
    white-space: nowrap !important;
    text-align: center;
    vertical-align: middle;
    font-size: 0.75rem;
    padding: 4px 6px;
}

.chevron {
    font-size: 1em;
    margin-left: 0.3em;
    transition: transform 0.2s;
    display: inline-block;
}

/* Hide columns in collapsed groups (table must have the class) */
#gridBotsTable.collapsed-long-group .long-group,
#gridBotsTable.collapsed-short-group .short-group,
#gridBotsTable.collapsed-identification-group .identification-group {
    display: none !important;
}

/* Rotate chevron when collapsed (right arrow) */
#gridBotsTable.collapsed-long-group th[data-group="long"] .chevron,
#gridBotsTable.collapsed-short-group th[data-group="short"] .chevron,
#gridBotsTable.collapsed-identification-group th[data-group="identification"] .chevron {
    transform: rotate(-90deg);
}

/* --- Minimum Widths for Dashboard Table Columns --- */
.minw-name { min-width: 60px; }
.minw-trading-grid { min-width: 80px; }
.minw-long { min-width: 90px; }
.minw-short { min-width: 90px; }
.minw-actions { min-width: 100px; }
.minw-identification { min-width: 80px; }

/* --- Section Toggle Buttons for Dashboard Table --- */
.toggle-section-btn {
    border: 1px solid #6c757d;
    background-color: #f8f9fa;
    color: var(--dark_medium-bg) !important;
    transition: all 0.2s ease-in-out;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.toggle-section-btn:hover {
    background-color: #e9ecef;
    border-color: #5a6268;
    color: #212529;
}

.toggle-section-btn.active {
    background-color: var(--algoTrader-darkGreen);
    border-color: var(--algoTrader-darkGreen);
    color: white !important;
}

.toggle-section-btn.active:hover {
    background-color: var(--algoTrader-darkGreen);
    border-color: var(--algoTrader-darkGreen);
    color: var(--algoTrader-yellow) !important;
}

.toggle-section-btn:focus {
    box-shadow: 0 0 0 0.2rem rgb(255 232 0 / 19%);
    outline: none;
}

.btn-group .toggle-section-btn:not(:last-child) {
    border-right: 1px solid #6c757d;
}

.btn-group .toggle-section-btn.active:not(:last-child) {
    border-right: 1px solid var(--algoTrader-yellow);
}

/* Dark theme support */
[data-bs-theme="dark"] .toggle-section-btn {
    background-color: #343a40;
    border-color: #6c757d;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .toggle-section-btn:hover {
    background-color: #495057;
    border-color: #adb5bd;
    color: white;
}

[data-bs-theme="dark"] .toggle-section-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

[data-bs-theme="dark"] .toggle-section-btn.active:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    color: white;
}

/* Notes column specific styling - more specific to override table.table rules */
table.table .notes-header,
.notes-header {
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.1;
    font-size: 0.75rem;
    text-align: center;
    vertical-align: middle;
    padding: 4px 6px;
    max-width: 200px;
    min-width: 150px;
}

table.table .notes-cell,
.notes-cell {
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.2;
    max-width: 200px;
    min-width: 150px;
    padding: 4px 6px;
    vertical-align: top;
}

/* Mobile responsive adjustments for Notes column */
@media (max-width: 768px) {
    .notes-header {
        max-width: 150px;
        min-width: 120px;
        font-size: 0.7rem;
    }
    
    .notes-cell {
        max-width: 150px;
        min-width: 120px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .notes-header {
        max-width: 120px;
        min-width: 100px;
        font-size: 0.65rem;
    }
    
    .notes-cell {
        max-width: 120px;
        min-width: 100px;
        font-size: 0.75rem;
    }
}







































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































