@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Roboto", sans-serif !important;
    background-color: #ECF4FF;
}

/* Navbar */
.navbar-white {
    background-color: #fff;

}

/* Dashboard */
.bg-widget-green {
    background-color: #D4EDEA !important;
}

.dash_widgetbg {
    background-repeat: no-repeat;
    background-position: 90% center;
}

.dash_widgetspan {
    padding: 5px 0px;
    font-weight: 400;
}

.dash-card-widget {
    text-decoration: none;
    color: unset;
}

.dash-card-widget {
    box-shadow: 0px 1px 12px 0px #0000001F;
    border-radius: 10px;
    padding: 15px 15px;
    background-color: #F8FDFF;
    border: 1px solid #D7D7D7;
}

.dash-card-widget .gray-widget img {
    width: 20px;
    height: 20px;
}

.dash-card-widget .gray-widget span {
    color: #646464;
    font-weight: 500;
}

.dash-card-widget h4 {
    font-weight: 600;
}

.dash-card-widget .widget-span-rounded {
    background-color: #2D8981;
    border-radius: 100px;
    width: max-content;
    padding: 5px 20px;
    color: #fff;
}

.dash-card-widget .green-spanwidget {
    color: #00BA00;
    font-weight: 500;
}

.green-point-mark {
    background: #A9FFA2C4;
    color: #2E9B00;
    padding: 3px 10px;
    border-radius: 5px;
    margin-right: 10px;
    font-size: small;
}


.white-dash-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
}

.card-fields-dash h4 {
    color: #316FF6;
    font-weight: 600;
}

.tab-btns-dashcard {
    padding: 8px;
    background-color: #ECF4FF;
    border-radius: 5px;
    width: max-content;
}

.tab-btns-dashcard button {
    padding: 0px 20px;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    height: 35px;
}

.tab-btns-dashcard .active-tab-btn {
    background-color: #316FF6;
    color: #fff;
}

.card-fields-dash label {
    margin-top: 20px;
    margin-bottom: 5px;
    font-weight: 500;
}

.search-input-dashcard {
    background: #F5F5F5;
    border: 0.9px solid #C7C7C7;
    border-radius: 100px;
}

.input_borders {
    background: #F5F5F5;
    border: 0.9px solid #C7C7C7;
    border-radius: 100px;
    width: 100%;
    height: 40px;
    outline: none;
    padding: 0px 10px;
}

.hide-icon {
    display: none;
}

.input_borders button {
    padding: 0px;
    height: unset;
    border: 1px solid #EEEEEE;
    color: #7F7F7F !important;
    background-color: transparent !important;
    border: none !important;
    margin: 0px !important;
}

.input_borders input {
    border: none !important;
    outline: none !important;
    width: 100%;
    height: unset !important;
    padding: 0px 0px;
    margin: 0px;
}

.setting-fields label {
    margin-top: 20px;
    font-weight: 500;
}

.input_bgset input {
    background: #F5F5F5;
}

.setting-fields input {
    border: 0.9px solid #C7C7C7;
    border-radius: 100px;
    height: 40px;
    padding: 0px 20px;
    width: 100%;
}

.change-password-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #3c71a6;
    border-radius: 8px;
    background-color: #98b8ff;
    font-weight: 500;
    color: #212529;
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-password-card:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
}

.change-password-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.search-input-dashcard i {
    width: 35px;
    text-align: center;
    color: #316FF6;
    font-size: larger;
    margin-bottom: 0px;
}

.search-input-dashcard input {
    width: calc(100% - 35px);
    border: none;
    background-color: transparent;
    outline: none;
    height: 35px;
}

.main-dash-inputs select {
    background: #F5F5F5;
    border-radius: 100px;
    height: 40px;
}

.main-switch-blue img {
    width: 45px;
}

.main-switch-blue .form-check {
    width: 45px;
}

.main-switch-blue {
    width: 100%;
    background: #ECF4FF;
    padding: 15px 15px;
    border-radius: 10px;
}

.main-switch-blue i {
    color: #316FF6;
    margin-bottom: 10px;
}

.main-switch-blue span {
    color: #525252;
}

.main-switch-blue .width-label-switch {
    width: calc(100% - 100px);
}

.form-check-input:checked {
    background-color: #00BA00;
    border-color: #00BA00;
}

.card-fields-dash h4 small {
    color: #000;
    font-weight: 500;
    font-size: small;
    padding-left: 30px;
}

.hearder-widthset-switch {
    width: calc(100% - 50px);
}

.card-radius-colored {
    padding: 30px 0px;
    border-radius: 10px;
    background: #4DAE67;
    color: #fff;
    font-weight: 500;
}


/* Risk Management */
.card-fields-risk h3 {
    color: #316FF6;
    font-weight: 600;
}

.card-fields-risk h4 {
    color: #316FF6;
    font-weight: 600;
    width: 100%;
    border-bottom: 1px solid #C2C2C2;
    margin-top: 30px;
    padding-bottom: 15px;
}

.bg-theame-blue .search-input-dashcard {
    background-color: #fff;
}

.bg-theame-blue {
    background: #ECF4FF;
    padding: 15px 15px;
    border-radius: 10px;
}


/* Common css */

/* a tag */
.primary-btn-atag {
    text-decoration: none;
    color: #316FF6;
}

/* Primary button */
.primary-btn {
    background-color: #316FF6;
    height: 40px;
    color: #fff;
    border-radius: 100px;
    padding: 0px 20px;
    border: 1px solid #D2D2D2;
}

.secondary-btn {
    color: #316FF6;
    height: 40px;
    background-color: #fff;
    border-radius: 100px;
    padding: 0px 20px;
    border: 1px solid #D2D2D2;
}

.danger-btn {
    color: #fff;
    height: 40px;
    background-color: #FF1010;
    border-radius: 100px;
    padding: 0px 20px;
    border: 1px solid #FF1010;
}

.success-btn {
    color: #fff;
    height: 40px;
    background-color: #00BA00;
    border-radius: 100px;
    padding: 0px 20px;
    border: 1px solid #00BA00;
}


.live-positionsmall-wid small {
    background: #A9FFA2C4;
    color: #2E9B00;
    padding: 3px 10px;
    border-radius: 5px;
    margin-right: 10px;
}

.card-box {
    background: #fff;
    border-radius: 14px;
}


.live-position-table .table thead th, .trade-history-table thead th {
    color: #111;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    position: relative;
    text-wrap: nowrap;
}

.live-position-table .table thead th:not(:last-child)::after, .trade-history-table thead th:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 1px;
    background: #d0d0d0;
}

.live-position-table .table td, .trade-history-table td {
    vertical-align: middle;
    text-wrap: nowrap;

}

.row-soft {
    background: #f4fffb;
}

.symbol {
    width: 32px;
    height: 32px;
    background: #cfe0ff;
    color: #1d4ed8;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.badge-up {
    background: #b7f7c7;
    color: #047857;
}

.badge-down {
    background: #ffbdbd;
    color: #b91c1c;
}

.badge-buy {
    background: #b7f7c7;
    color: #047857;
}

.badge-sell {
    background: #ffbdbd;
    color: #b91c1c;
}

.btn-exit {
    background: #3b6cff;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    text-decoration: none;
}

.btn-close-pill {
    background: #dbe7ff;
    color: #1d4ed8;
    border-radius: 20px;
    padding: 2px 12px;
}

.table-responsive {
    max-height: 300px;
    overflow: auto;
}

/* ===== SEARCH ===== */
.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-box input {
    padding-left: 36px;
    border-radius: 20px;
}


/* ===== CARD ===== */
.trade-history-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
}

.trade-history-label {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.trade-history-input {
    border-radius: 20px;
    font-size: 13px;
}

.trade-history-btn-apply {
    background: #2563eb;
    color: #fff;
    border-radius: 20px;
}

.trade-history-btn-download {
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
}


.trade-history-table-wrap {
    max-height: 340px;
    overflow: auto;
}

.trade-history-row-soft {
    background: #f4fffb;
}

.trade-history-symbol {
    width: 32px;
    height: 32px;
    background: #cfe0ff;
    color: #1d4ed8;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trade-history-badge-long {
    background: #b7f7c7;
    color: #047857;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}

.trade-history-badge-short {
    background: #ffbdbd;
    color: #b91c1c;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}

.trade-history-pl-plus {
    color: #16a34a;
    font-weight: 600;
}

.trade-history-pl-minus {
    color: #dc2626;
    font-weight: 600;
}

.trade-history-arrow {
    color: #2563eb;
    cursor: pointer;
}

/* ===== PAGINATION ===== */
.trade-history-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trade-history-page-select {
    width: 70px;
    display: inline-block;
}

.trade-history-page-buttons {
    display: flex;
    gap: 6px;
}

.trade-history-page-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #c7d2fe;
    background: #fff;
    color: #2563eb;
    border-radius: 6px;
}

.trade-history-page-btn.active {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 768px) {
    .dash-card-widget .gray-widget span, .live-positionsmall-wid {
        font-size: 12px !important;
    }

    .dash-card-widget h4 {
        font-size: 20px !important;
    }

    .dash-card-widget .widget-span-rounded {
        padding: 3px;
    }
}

@media (max-width: 567px) {
    .trade-history-pagination {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .white-dash-card {
        font-size: 14px;
    }

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nav-header-main {
    padding: 12px 20px;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.offcanvas.offcanvas-start {
    border: none;
}

.nav-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-header-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-header-icon svg {
    width: 24px;
    height: 24px;
}

.nav-header-chart-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-header-text {
    font-size: 18px;
    font-weight: 600;
    color: #0d6efd;
    margin: 0;
}


.main-content {
    min-height: calc(100vh - 64px);
    padding: 20px;
}

@media (min-width: 992px) {
    .main-content {
        margin-left: 80px;
        transition: margin-left 0.3s ease;
    }
}

@media (max-width: 991.98px) {

    .main-content {
        margin-left: 0;
    }
}

/* sidebar */
.nav-offcanvas-sidebar {
    background-color: #f8f9fa;
    transition: width 0.3s ease;
}

.nav-offcanvas-sidebar .offcanvas-body {
    padding: 20px 0;
    overflow-y: auto;
}

.nav-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

.nav-sidebar-item:hover {
    background-color: #e9ecef;
}

.nav-sidebar-item.nav-sidebar-active {
    background-color: #0d6efd;
    color: white;
}

.nav-sidebar-item img {
    width: 50px;
    height: 40px;
    flex-shrink: 0;
    transition: margin 0.3s ease;
    margin-right: 0;
}

.nav-sidebar-item span {
    font-weight: 500;
    font-size: 16px;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease;
    margin-left: 0;
}

.nav-sidebar-toggle {
    background-color: transparent;
    border: none;
    color: #333;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.nav-sidebar-toggle:hover {
    background-color: #f0f0f0;
}

.sidebar-arrow-toggle {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1040;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
}

.sidebar-arrow-toggle:hover {
    background-color: #f8f9fa;
}

.sidebar-arrow-toggle i {
    font-size: 18px;
    color: #333;
    transition: transform 0.3s ease;
}

.nav-offcanvas-sidebar.show ~ .sidebar-arrow-toggle {
    left: 280px;
}

.nav-offcanvas-sidebar.show ~ .sidebar-arrow-toggle i {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    .sidebar-arrow-toggle {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .nav-offcanvas-sidebar {
        width: 280px !important;
    }

    .nav-offcanvas-sidebar .nav-sidebar-item {
        justify-content: flex-start;
    }

    .nav-offcanvas-sidebar .nav-sidebar-item span {
        opacity: 1;
        width: auto;
    }

    .nav-offcanvas-sidebar .nav-sidebar-item img {
        margin-right: 12px;
    }
}

@media (min-width: 992px) {
    .nav-offcanvas-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 64px !important;
        height: calc(100vh - 64px) !important;
        width: 80px !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1020 !important;
        border-right: 1px solid #e9ecef;
    }

    .nav-offcanvas-sidebar.show {
        transform: translateX(0) !important;
    }

    .nav-offcanvas-sidebar:not(.show) {
        transform: translateX(0) !important;
    }

    .nav-offcanvas-sidebar .offcanvas-header {
        display: none;
    }

    .nav-offcanvas-sidebar:hover {
        width: 280px !important;
    }

    .nav-offcanvas-sidebar:hover .nav-sidebar-item {
        padding: 12px 20px;
        justify-content: flex-start;
    }

    .nav-offcanvas-sidebar:hover .nav-sidebar-item img {
        margin-right: 12px;
    }

    .nav-offcanvas-sidebar:hover .nav-sidebar-item span {
        opacity: 1;
        width: auto;
    }
}

.primary-btn-atag {
    text-decoration: none;
    color: #316FF6;
}

/* Primary button */
.primary-btn {
    background-color: #316FF6;
    height: 40px;
    color: #fff;
    border-radius: 100px;
    padding: 0px 20px;
    border: 1px solid #D2D2D2;
}

.secondary-btn {
    color: #316FF6;
    height: 40px;
    background-color: #fff;
    border-radius: 100px;
    padding: 0px 20px;
    border: 1px solid #D2D2D2;
}

.danger-btn {
    color: #fff;
    height: 40px;
    background-color: #FF1010;
    border-radius: 100px;
    padding: 0px 20px;
    border: 1px solid #FF1010;
}

.success-btn {
    color: #fff;
    height: 40px;
    background-color: #00BA00;
    border-radius: 100px;
    padding: 0px 20px;
    border: 1px solid #00BA00;
}

/* Dropdown Menu */
.dropdown-menu {
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
}

.dropdown-item i {
    margin-right: 8px;
    width: 18px;
}

.primary-btn-text {
    color: #316FF6;
}

.primary-btn-text:hover {
    background-color: #f0f4ff;
    color: #316FF6;
}

.success-btn-text {
    color: #00BA00;
}

.success-btn-text:hover {
    background-color: #f0fff0;
    color: #00BA00;
}

.danger-btn-text {
    color: #FF1010;
}

.danger-btn-text:hover {
    background-color: #fff0f0;
    color: #FF1010;
}

.offcanvas {
    max-width: 280px;
}

.navbar-toggler {
    border: none;
}

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

@media (min-width: 760px) and (max-width: 991.98px) {

    .tab-toggel-header {
        right: 15px;
        width: 200px;
        position: absolute;
        top: 50px;
        background: white;
        padding: 10px;
    }

    .tab-toggel-header form {
        margin: 0 auto;
    }

    .nav-header-main {

        box-shadow: none;
    }
}


@media (min-width: 992px) {
    .main-div {
        padding-left: 100px;
    }
}

.search-input-dashcard input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

/*@media (max-width: 991.98px) {*/
/*    .main-div {*/
/*        padding-left: 0px;*/
/*    }*/
/*}*/
