/* Ensure the html and body take full height */
html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    font-weight: 500;
    font-size: 14px;
}


button {
    display: flex !important;
    align-items: center !important;
    -webkit-justify-content: center;
    justify-content: center !important;
}

.loader {
    border: 2px solid #f3f3f3; /* Light grey */
    border-top: 2px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.mr-1 {
    margin-right: 0.3rem;
}

table {
    margin-bottom: 0px !important;
}

#LoginAccount .col-md-4 {
    border-right: 1px solid;
}

.modal {
    padding: 0 !important;
}

.modal-header {
    box-shadow: inset 0px 0px 8px 2px rgb(167 165 213 / 25%);
    border-radius: 10px 10px 0 0;
}

.modal-header, .modal-footer, .form-control, #LoginAccount .col-md-4 {
    border-color: #2b394f;
}

/* Dark Theme */
.bg-dark {
    background: #0c1125 !important;
}

    .bg-dark.modal-content {
        background: rgba(12, 17, 37, 0.7) !important; /* Glass-like background with slight transparency */
        backdrop-filter: blur(10px); /* Blur effect for the glass effect */
        -webkit-backdrop-filter: blur(10px); /* For Safari support */
        box-shadow: inset 0px 0px 8px 2px rgb(167 165 213 / 25%);
        border-radius: 10px
    }

    .bg-dark .bg-primary,
    .bg-dark .oneclick-container,
    .bg-dark .navbar-dark {
        background: #0c1125 !important;
    }

    .bg-dark .toolbox-container .collect {
        background: #1a2238;
        border: 1px solid #414349;
    }

    .bg-dark .toolboxFooter {
        background: #1a2238 !important;
    }

    .bg-dark .nav-link.bg-dark {
        background: #1a2238 !important;
        border: 1px solid #9e9e9e;
    }

    .bg-dark .nav-link:hover {
        background: #0c1125 !important;
        border-color: #60afff;
        color: #ffffff !important;
    }

    .bg-dark .nav-link.bg-dark.active {
        background: #0c1125 !important;
        border-color: #60afff;
        color: #ffffff !important;
    }

    .bg-dark .resize-handle.horizontal, .bg-dark .resize-handle.vertical {
        background: #2b394f; /* Color of the handle */
    }

    .bg-dark .input-group-text {
        color: #ffffff;
        border-color: #2b394f;
        background-color: #1a2238;
    }

.table-dark {
    --bs-table-striped-bg: #1a2238 !important;
    --bs-table-bg: #0c1125 !important;
}


    .table-dark th, .table-dark td {
        border-color: #2b394f !important;
    }

    .table-dark th {
        background-color: #0c1125 !important;
    }
/* Light Theme */
.bg-light .oneclick-container {
    background: #ffffff !important;
}

.bg-light .navbar-light {
    background: #0d6efd !important;
}

    .bg-light .navbar-light .navbar-brand {
        color: #ffffff !important;
    }

.bg-light .toolbox-container .collect,
.bg-light .toolboxFooter {
    background: #d7e9f8;
    color: #212529;
}

.bg-light .nav-tabs {
    background: #ffffff !important;
}

.bg-light .nav-link.bg-light {
    background: #d7e9f8a6 !important;
    border-color: #329aff;
    color: #0d6efd !important;
}

    .bg-light .nav-link.bg-light:hover {
        background: #ffffff !important;
        border-color: deepskyblue;
    }

    .bg-light .nav-link.bg-light.active {
        background: #ffffff !important;
    }

.bg-light .nav-link .text-dark {
    color: #ffffff !important;
}

.bg-light .resize-handle.horizontal, .bg-light .resize-handle.vertical {
    background: #ced4da; /* Color of the handle */
}

.bg-light .modal-title {
    color: #ffffff !important;
}

.bg-light .marketWatch .text-white {
    color: #0d6efd !important;
}

.bg-light.modal-content {
    background: rgba(255, 255, 255, 0.6) !important; /* Light glass effect */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important; /* Soft shadow */
    backdrop-filter: blur(10px); /* Blur effect for the glass effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle dark border for contrast */
}

.table-light th {
    background-color: #ffffff !important;
}

.fill-white {
    fill: white;
}

.fill-black {
    fill: black;
}




/* Parent container */
.io-container {
    height: 63vh;
    display: flex;
    flex-direction: column;
}

/* Container to hold watchlist and TradingView side by side */
.watchlist-tradingview-container {
    display: flex;
    flex: 1;
}

/* Watchlist and TradingView containers */
.watchlist-container {
    width: 20%;
    height: 63vh;
    overflow: auto;
}

#watchlistTabsContent {
    height: 100%;
    overflow: auto;
}


.tradingview-container {
    flex: 1; /* Takes up remaining space */
    position: relative;
}

header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 5px;
    border-bottom: 2px solid #212529;
}

header img {
    height: 20px;
    width: 30px;
}

header .nav-link, .navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
/* Tabs navigation (sticky to the bottom) */
.nav-tabs {
    position: sticky;
    bottom: 0;
    z-index: 1000;
}

    .nav-tabs .nav-link {
        padding: 5px 25px;
    }

    .nav-tabs .nav-link {
        opacity: 0.5; /* Default opacity for all tabs */
        transition: opacity 0.3s ease, color 0.3s ease;
    }

        .nav-tabs .nav-link.active {
            opacity: 1; /* Fully visible when active */
        }

        .nav-tabs .nav-link:hover {
            opacity: 0.75; /* Slightly brighten on hover */
            color: #cccccc; /* Light gray for hover */
        }

/* Resize Handle Styles */
.resize-handle.vertical {
    width: 3px;
    cursor: ew-resize; /* Cursor to indicate resizing */
    position: relative;
    right: 0;
    z-index: 1; /* Ensure it's on top */
}

/* Horizontal resize handle */
.resize-handle.horizontal {
    width: 100%; /* Width of the handle */
    height: 3px;
    cursor: ns-resize; /* Cursor to indicate resizing */
    position: relative; /* Position relative to its parent */
    z-index: 1; /* Ensure it's on top */
}

.statusBar .btn:hover svg {
    fill: #ffffff;
}

.oneclick-container {
    position: absolute;
    top: 90px;
    left: 60px;
    /*right:100px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #595555;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

    .oneclick-container .form-control {
        width: 60px;
        padding: 2px;
        font-size: 14px;
    }

    .oneclick-container .btn {
        width: 60px;
        margin: 5px;
        padding: 2px 4px;
        font-size: 14px;
    }


/* Toolbox container */
.toolbox-container {
    height: 21vh;
}

.toolboxFooter {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #212529;
}

.toolbox-container .collect {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    position: sticky;
    z-index: 1000;
    bottom: 40px;
}

#toolboxTabsContent {
    height: 100%;
}

    #toolboxTabsContent .tab-pane {
        height: 100%;
    }

#tradesTable_wrapper, #historyTable_wrapper, #ordersTable_wrapper, #journalTable_wrapper {
    height: 97%;
    overflow: auto;
    white-space: nowrap;
}

#toolboxTabsContent table {
    width: 100%; /* Ensure table uses full container width */
  /*  border-collapse: collapse;*/ /* Collapse borders */
    margin-bottom: 25px !important;
}

#toolboxTabsContent thead {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
}

 /*   #toolboxTabsContent thead th {
        border: 1px solid #3f51b58c;
    }*/


#toolboxTabsContent table td, .toolboxTabsContent table th {
    text-align: right;
}

#journalTable tbody td {
    text-align: left;
}

#inboxTable tbody td {
    text-align: left;
}

#detailsTable td:first-child {
    text-align: left;
}

#toolboxTabsContent tbody tr:hover {
    background-color: #b3d9f9a6;
}

.close-btn {
    padding: 0;
    font-weight: 900;
    color: #e91e63;
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
}

    .close-btn:hover {
        cursor: pointer;
        color: red;
    }

#closeTabsButton {
    float: right;
}

.dataTables_info {
    display: none;
}

.dataTables_empty {
    text-align: center !important;
}

.bg-red {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    --bs-table-accent-bg: #dc3545;
    color: #fff;
}

.bg-green {
    background-color: #198754;
    border-color: #198754;
    --bs-table-accent-bg: #198754;
    color: #fff;
}

.bg-light .bg-theme {
    background-color: #d7e9f8 !important; /* Light blue color */
}

.bg-dark .bg-theme {
    background: #1a2238;
    border: 1px solid #414349;
}

input.disabled {
    background-color: #e9ecef; /* Light gray background */
    cursor: not-allowed;
}

.sl, .tp {
    min-width: 100%; /* Adjust this value to the width you want */
    display: inline-block; /* Ensures the min-width works as expected */
    cursor: pointer; /* Indicates the cell is clickable */
}

form label {
    text-align: right;
}

/*toggler*/
.toggle-container {
    position: relative;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-panel {
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden */
    width: 100%; /* Default for mobile */
    height: 100%;
    overflow-x: hidden;
    transition: right 0.3s ease;
    background: rgba(12, 17, 37, 0.7) !important; /* Glass-like background with slight transparency */
    border-radius: 16px; /* Rounded corners */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important; /* Soft shadow */
    backdrop-filter: blur(10px); /* Blur effect for the glass effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle white border */
    padding: 20px; /* Spacing inside the container */
    transition: right 0.3s ease-in-out; /* Smooth transition */
}

.bg-dark .side-panel {
    background: rgba(12, 17, 37, 0.7) !important; /* Glass-like background with slight transparency */
}

    .bg-dark .side-panel .list-group-item {
        color: #fff !important;
    }

.bg-light .side-panel {
    background: rgba(255, 255, 255, 0.6) !important; /* Light glass effect */
}

    .bg-light .side-panel .list-group-item {
        color: #0c1125 !important;
    }




.list-group-item {
    font-size: 16px;
    display: flex;
    align-items: center;
}

ul .list-group-item {
    cursor: pointer;
    padding: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease; /* Smooth transition */
}


.list-group-item.active {
    box-shadow: inset 0px 0px 8px 2px rgb(167 165 213 / 42%);
    border-color: #2c599d;
    border-radius: 10px;
}

.list-group-item:hover {
    box-shadow: inset 0px 0px 8px 2px rgb(167 165 213 / 42%);
    transform: translateY(-3px);
    background: #0c1125;
    border-radius: 10px;
    border-bottom: 1px solid #2c599d;
}

.list-group-item-action {
    border-radius: 10px;
}

    .list-group-item-action :hover {
        transform: translateY(-1px);
    }

#createOrderBtn {
    position: relative;
    left: calc(50% - 77px);
    bottom: calc(50% - 15px);
}


/* Default styling for desktop */
.collect .info-item {
    display: inline; /* Keeps items in a single line for desktop view */
    margin-right: 10px; /* Adds space between items in desktop view */
}

.floatingPLText {
    display: none;
}

/* General Media Query for Mobile View (max-width: 768px) */
@media only screen and (max-width: 768px) {

    th, td {
        font-size: 0.9rem; /* Smaller text for smaller screens */
    }

    .watchlist-container {
        width: 0%; /* Hide watchlist container */
    }

    #createOrderBtn {
        bottom: calc(85% - 19px);
    }

    .oneclick-container {
        left: 8px;
    }

    /* Container Adjustments */
    .watchlist-container,
    .io-container {
        height: 85vh; /* Set height for both containers */
        transition: width 0.3s ease; /* Smooth transition for width */
    }

    /* Market Watch and Resize Handle */
    .marketWatch,
    .resize-handle {
        display: none; /* Hide market watch and resize handle */
    }

    /* Floating PL Text */
    .floatingPLText {
        display: block; /* Show floating PL text */
    }

    /* New Order Text */
    .newOrderTxt {
        display: none; /* Hide new order text */
    }

    /* Tabs & Balance Information */
    #watchlistTabs,
    .balance-dot,
    .balance-usd {
        display: none; /* Hide watchlist tabs, balance dot, and USD balance */
    }

    /* Collect Container Adjustments */
    .collect {
        flex-direction: column; /* Stack items vertically */
        padding: 12px; /* Adjust padding */
    }

        .collect .info-item {
            display: flex; /* Flex for individual items */
            align-items: center;
            justify-content: space-between;
            margin: 5px;
        }

            .collect .info-item span::before {
                content: "";
                position: absolute;
                left: 28%; /* Position of the dashed line */
                width: 44%; /* Width of the dashed line */
                height: 1px;
                background: repeating-linear-gradient(to right, #fff, #fff 5px, transparent 5px, transparent 10px);
                margin-top: 8.5px; /* Space above the dashed line */
            }

    /* Toolbox and Footer Adjustments */
    /*#toolboxTabsContent,
    .toolbox-container .collect {
        display: none;*/ /* Hide toolbox tabs content */
    /*}*/

    .toolbox-container {
        height: 0px;
    }

        .toolbox-container .collect {
            bottom: 60px; /* Position toolbox container */
        }

    /* Footer Nav Item Styling */
    .toolboxFooter .nav-item {
        width: 25%; /* Adjust nav item width */
    }

        .toolboxFooter .nav-item button {
            width: 100%; /* Make button fill the nav item */
        }

    /* Toolbox Footer Icon & Text Adjustments */
    .toolboxFooter .nav-link i {
        display: block;
        margin-bottom: 5px; /* Space between icon and text */
    }

    .toolboxFooter .nav-link span {
        display: block;
    }

    /* Tabs Alignment */
    .toolboxFooter .nav.nav-tabs {
        justify-content: space-between !important;
        width: 100% !important;
    }

    #LoginAccount .col-md-4 {
        border-bottom: 1px solid;
        border-color: #2b394f;
    }

    #accountType {
        display: none;
    }
    .symbol-info {
        display: flex;
        flex-direction: row !important;
        align-items: center;
    }
    #tradesTable_wrapper, #historyTable_wrapper, #ordersTable_wrapper, #journalTable_wrapper {
        height: 87% !important;
    }
    .mobile-resp {
        flex-direction: column-reverse;
    }

}

@media (min-width: 992px) { /* Adjust min-width for tablet/laptop sizes */
    .side-panel {
        width: 25% !important;
    }
}

.hidden-important {
    display: none !important;
}
/* Enhanced styling for range slider container */
.range-slider-container {
    position: relative;
    width: 100%;
}

/* Styling for range track */
.range-track {
    position: absolute;
    top: 45%;
    left: 0;
    transform: translateY(-50%);
    height: 8px;
    background: linear-gradient(to right, #00b4d8, #007bff);
    border-radius: 4px;
}


/* Styling for the range value display */
.range-display {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

    .range-display .range-input {
        width: 75px;
    }

/*#symbolModal {
    max-width: 500px;
}*/

#modalSymbolList {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

    #modalSymbolList li {
        cursor: pointer;
        margin: 0;
        padding: 2px 10px 2px 10px;
        border-radius: 0px !important;
    }
#symbolModalLabel {
    color: #fff !important;
    font-weight: 700 !important;
  
}
/*.symbol-bar-title {
    background-color: #0d6efd !important;
}*/
#iosVideo {
    width: 60% !important;
}
.custom-label-select {
    position: relative;
}

    .custom-label-select label {
        position: absolute;
        top: -10px;
        left: 36px;
        background: #0c1125;
        padding: 0 5px;
        font-size: 12px;
        color: #888;
    }

.custom-label-select select {
    padding-top: 15px; /* Creates space for the label */
}

/*profit calculater*/
.custom-label-input {
    position: relative;
    display: flex;
    flex-direction: column;
}

    .custom-label-input label {
        position: absolute;
        top: -10px;
        left: 36px;
        background: #0c1125;
        padding: 0 5px;
        font-size: 12px;
        color: #888;
        z-index:1;
    }

    .custom-label-input input {
        padding-top: 12px; /* Creates space for the label */
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: transparent;
        color: #fff;
    }


.sell-buy-btn .btn {
    transition: all 0.3s ease-in-out;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove focus outline */
.btn:focus, .sell-buy-check:focus + .btn {
    outline: none !important;
    box-shadow: none !important;
}

/* SELL button active state */
.sell-buy-check:checked + .btn-outline-danger {
    background-color: #a5262054;
    color: #de1010;
    border-color: #f5281e;
}

/* BUY button active state */
.sell-buy-check:checked + .btn-outline-success {
    background-color: #19875457;
    color: #0de581;
   /* //border-color: #f2fbf4;*/
}
.sell-buy-btn {
    height: 43px;
    display: flex;
    align-items: center;
}

    .sell-buy-btn .btn {
        height: 100%; /* Ensures buttons take full height */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px; /* Adjust text size if needed */
        transition: all 0.3s ease-in-out;
        outline: none !important;
        box-shadow: none !important;
    }

.calculator-details{
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.profit-total-font{
    font-size:20px !important;
}
.custom-label-input input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ffffff !important;
    background: transparent;
    color: #fff;
}
.btn-no-border {
    border: none !important; /* Removes all borders */
}

.btn-left-border-remove {
    border-left: none !important;
}

.btn-right-border-remove {
    border-right: none !important;
}
.btn-outline-light:hover {
    color: #ffffff !important;
background-color: transparent !important; 
    border-color: #f8f9fa;
}

.refresh-link .bi-arrow-clockwise {
    transition: transform 0.5s ease-in-out;
}

.refresh-link.rotating .bi-arrow-clockwise {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

