:root {
    --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: "Raleway", sans-serif;
    --nav-font: "Poppins", sans-serif;
    --default-color: #323b3b;
    --accent-color: #8347e5;
    --alt-accent: #ECEFFD;
    --border-color: #f1c40f;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --light-color: #ffff;
    --alt-light: #ECEFFD;
    --dark-color: #092f5b;
    --alt-dark: #131a22;
    --brand-alt: #8347e5;
    --brand: #ECEFFD;
    --line: #e5e7eb;
    --muted: #6b7280;
    --ok: #16a34a;
    --bad: #dc2626;
    --gain-bg: #eaf7ef;
    --gain-br: #cbead5;
    --loss-bg: #fdecec;
    --loss-br: #f5c2c7;
    --green-gradient: linear-gradient(90deg, #111827 0, #054d26 100%);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    top: 0 !important;
}

a {
    transition: all 0.4s ease;
    font-weight: 500;
    text-decoration: none;
    color: var(--dark-color);
}

a:hover {
    color: var(--gold-dark);
}

.bg-brand {
    background-color: var(--brand);
}

.text-justify {
    text-align: justify;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand .dot {
    color: var(--accent-color);
}

.logo {
    height: 40px;
    /* Adjust logo size */
}

.btn-outline-secondary.btn-sm {
    font-weight: 500;
    border-radius: 20px;
    padding: 4px 12px;
}

@media (max-width: 991px) {
    /* Mobile screens */
    .brand-name {
        display: none !important;
    }
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1050;
        display: none;
        /* Hide by default */
    }
    .navbar-collapse.show {
        display: block;
        /* Show only when expanded */
    }
}

.social-icons a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
}

.profile-header {
    background: linear-gradient(to right, #00c6ff, #0072ff);
    /* Gradient background */
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-img {
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-badge {
    background-color: #ffc107;
    color: #000;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 10px;
}

.course-card {
    background-color: var(--accent-color);
    padding: 35px;
    border-radius: 20px;
    border: none;
    color: var(--dark-color);
}

.btn-purple {
    background-color: var(--alt-accent);
    color: #ffff;
    border: none;
}

@media (max-width: 991.98px) {
    /* Mobile screens */
    .course-card {
        padding: 5px;
    }
    .video-iframe {
        /* min-height: 192.94px; */
        height: 260px;
    }
    .img-iframe {
        /* min-height: 192.94px; */
        height: auto;
        margin-bottom: 20px;
    }
}

/*-------------------------- side-bar---------------------- */

.header {
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1001;
    height: 60px;
    color: #f7f7fa;
}

.header .header-left {
    float: left;
    height: 60px;
    padding: 0 20px;
    position: relative;
    width: 320px;
    z-index: 1;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    display: flex;
    align-items: center;
}

.mini-sidebar .header .header-left {
    justify-content: center;
}

.header .header-left .logo {
    display: inline-block;
    line-height: 60px;
}

.header .header-left .logo img {
    max-height: 40px;
    width: auto;
}

.header-left .logo.logo-small {
    display: none;
}

.header .dropdown-menu>li>a {
    position: relative;
}

.header .dropdown-toggle:after {
    display: none;
}

.mobile_btn {
    display: none;
    float: left;
}

.slide-nav .sidebar {
    margin-left: 0;
}

.menu-title {
    color: #a3a3a3;
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    padding: 0 25px;
}

.sidebar-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 60px;
    width: 100%;
    z-index: 1000;
}

.sidebar-overlay.opened {
    display: block;
}

html.menu-opened {
    overflow: hidden;
}

html.menu-opened body {
    overflow: hidden;
}

/*-----------------
	10. Sidebar
-----------------------*/

.sidebar {
    background-color: #ffff;
    /* border-right: 1px solid #ececf5; */
    bottom: 0;
    left: 0;
    margin-top: 0;
    position: fixed;
    top: 60px;
    transition: all 0.2s ease-in-out 0s;
    width: 320px;
    z-index: 1001;
}

.sidebar.opened {
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.sidebar-inner {
    height: 100%;
    min-height: 100%;
    transition: all 0.2s ease-in-out 0s;
}

.kpi-toggle .btn {
    color: var(--dark-color);
    background-color: var(--alt-accent);
    border-color: var(--brand);
}

.kpi-toggle .btn:hover {
    color: var(--dark-color);
}

.kpi-toggle .btn-check:checked+.btn {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.kpi-toggle .btn:focus {
    box-shadow: 0 0 0 0.15rem rgba(131, 71, 229, 0.25);
}

.kpi-toggle label.btn {
    color: var(--dark-color) !important;
    background-color: var(--alt-accent) !important;
    border-color: var(--alt-accent) !important;
}

.kpi-toggle input.btn-check+label.btn {
    color: var(--dark-color) !important;
}

.kpi-toggle input.btn-check:checked+label.btn {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    border-color: var(--accent-color) !important;
}

.sidebar-menu {
    padding: 15px;
}

.sidebar-menu ul {
    font-size: 15px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.sidebar-menu li a {
    color: var(--dark-color);
    display: block;
    font-size: 16px;
    height: auto;
    padding: 0 20px;
}

.sidebar-menu li a:hover {
    color: var(--brand);
}

.sidebar-menu>ul>li>a:hover {
    background-color: var(--brand);
    color: var(--brand-alt);
    margin: 0px -15px;
    padding-left: 30px;
}

.sidebar-menu li.active>a {
    background-color: var(--brand-alt);
    color: var(--brand);
    position: relative;
    margin: 0px -15px;
    padding-left: 30px;
}

.sidebar-menu li.active>a::before {
    width: 5px;
    content: "";
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--brand);
    -webkit-transition: all 0.5s;
    -ms-transition: all 0.5s;
    transition: all 0.5s;
}

.sidebar-menu li.menu-title a {
    color: #ff9b44;
    display: inline-block;
    margin-left: auto;
    padding: 0;
}

.sidebar-menu li.menu-title a.btn {
    color: #fff;
    display: block;
    float: none;
    font-size: 15px;
    margin-bottom: 15px;
    padding: 10px 15px;
}

.sidebar-menu ul ul a.active {
    color: var(--brand);
}

.mobile_btn {
    display: none;
    float: left;
}

.sidebar .sidebar-menu>ul>li>a span {
    transition: all 0.2s ease-in-out 0s;
    display: inline-block;
    margin-left: 10px;
    white-space: nowrap;
}

.sidebar .sidebar-menu>ul>li>a span.chat-user {
    margin-left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .sidebar-menu>ul>li>a span.badge {
    margin-left: auto;
}

.sidebar-menu ul ul a {
    display: block;
    font-size: 15px;
    padding: 7px 10px 7px 45px;
    position: relative;
}

.sidebar-menu ul ul {
    display: none;
}

.sidebar-menu ul ul ul a {
    padding-left: 65px;
}

.sidebar-menu ul ul ul ul a {
    padding-left: 85px;
}

.sidebar-menu>ul>li {
    margin-bottom: 3px;
    position: relative;
}

.sidebar-menu>ul>li:last-child {
    margin-bottom: 0;
}

.sidebar-menu .menu-arrow {
    -webkit-transition: -webkit-transform 0.15s;
    -o-transition: -o-transform 0.15s;
    transition: transform .15s;
    position: absolute;
    right: 15px;
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    text-rendering: auto;
    line-height: 40px;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0);
    line-height: 18px;
    top: 14px;
}

.sidebar-menu .menu-arrow:before {
    content: "\f105";
}

.sidebar-menu li a.subdrop .menu-arrow {
    -ms-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}

.submenu ul li.sub-active {
    background-color: var(--alt-accent);
}

.submenu ul li a:hover {
    background-color: var(--alt-accent);
    color: var(--dark-color) !important;
}

.sidebar-menu ul ul a .menu-arrow {
    top: 10px;
}

.sidebar-menu>ul>li>a {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    padding: 12px 15px;
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease-in-out 0s;
}

.sidebar-menu ul li a i {
    display: inline-block;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
    vertical-align: middle;
    width: 20px;
    transition: all 0.2s ease-in-out 0s;
}

.sidebar-menu ul li.menu-title a i {
    font-size: 16px !important;
    margin-right: 0;
    text-align: right;
    width: auto;
}

/*-----------------
	11. Content
-----------------------*/

.main-wrapper {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
}

.page-wrapper {
    margin-left: 320px;
    padding-top: 60px;
    position: relative;
    transition: all 0.4s ease;
}

.page-wrapper>.content {
    padding: 1.875rem 1.875rem 0;
}

.page-header {
    margin-bottom: 1.875rem;
}

@media (min-width: 992px) {
    #toggle_btn {
        align-items: center;
        color: var(--brand-alt);
        display: inline-flex;
        float: left;
        font-size: 26px;
        height: 60px;
        justify-content: center;
    }
    .mini-sidebar .header-left .logo img {
        height: auto;
        max-height: 40px;
        width: auto;
    }
    .mini-sidebar .header .header-left .logo {
        display: none;
    }
    .mini-sidebar .header-left .logo.logo-small {
        display: block;
    }
    .mini-sidebar .header .header-left {
        padding: 0 5px;
        width: 78px;
    }
    .mini-sidebar .sidebar {
        width: 78px;
    }
    .mini-sidebar.expand-menu .sidebar {
        width: 240px;
    }
    .mini-sidebar .menu-title {
        visibility: hidden;
        white-space: nowrap;
    }
    .mini-sidebar.expand-menu .menu-title {
        visibility: visible;
    }
    .mini-sidebar .menu-title a {
        visibility: hidden;
    }
    .mini-sidebar.expand-menu .menu-title a {
        visibility: visible;
    }
    .modal-open.mini-sidebar .sidebar {
        z-index: 1051;
    }
    .mini-sidebar .sidebar .sidebar-menu ul>li>a span {
        display: none;
        transition: all 0.2s ease-in-out;
        opacity: 0;
    }
    .mini-sidebar.expand-menu .sidebar .sidebar-menu ul>li>a span {
        display: inline;
        opacity: 1;
    }
    .mini-sidebar.expand-menu .sidebar .sidebar-menu>ul>li>a i {
        width: 20px;
    }
    .mini-sidebar .page-wrapper {
        margin-left: 78px;
    }
}

@media (max-width: 991.98px) {
    .header .header-left {
        position: absolute;
        width: 100%;
        padding: 0px 50px;
    }
    .mobile_btn {
        color: var(--brand-alt) !important;
        cursor: pointer;
        display: block;
        font-size: 24px;
        height: 60px;
        left: 0;
        line-height: 60px;
        padding: 0 15px;
        position: absolute;
        text-align: center;
        top: 0;
        z-index: 10;
    }
    #toggle_btn {
        display: none;
    }
    .sidebar {
        margin-left: -225px;
        width: 225px;
        -webkit-transition: all 0.4s ease;
        -moz-transition: all 0.4s ease;
        transition: all 0.4s ease;
        z-index: 1041;
    }
    .page-wrapper {
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
        -webkit-transition: all 0.4s ease;
        -moz-transition: all 0.4s ease;
        transition: all 0.4s ease;
    }
}

/* -----------------dashboard----------------- */

.account-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1.5rem;
}

.account-balance {
    font-size: 2rem;
    font-weight: 700;
}

.account-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.account-info-table {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.badge-demo {
    background-color: #d4edda;
    color: #155724;
    font-weight: 500;
}

.btn-yellow {
    background-color: #f8b400;
    color: #000;
    border: none;
}

.btn-yellow:hover {
    background-color: #e5a700;
}

.info-label {
    color: #6c757d;
}

.info-value {
    font-weight: 500;
}

/* -----------------copytrade----------------- */

/* Top Nav */

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.navbar .nav-link {
    color: var(--accent-color);
    font-weight: 500;
}

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

.navbar .nav-link:hover {
    color: var(--accent-color);
}

/* App containers */

.page-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.kpi-note {
    color: var(--muted);
}

/* Graph Card */

.graph-card {
    position: relative;
}

.graph-pill {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    box-shadow: var(--shadow);
}

.graph-pill .btn {
    border-radius: 999px;
    font-weight: 600;
}

.graph-pill .btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent);
}

.hint-card {
    background: #f1f5f9;
    border: 1px dashed #d1d5db;
    color: #6b7280;
    border-radius: var(--radius);
}

/* Trades card */

.tabs-underline .nav-link {
    color: var(--alt-dark);
    font-weight: 600;
}

.tabs-underline .nav-link.active {
    color: var(--accent-color);
    border: none;
    border-bottom: 2px solid var(--accent-color);
}

.rounded-16 {
    border-radius: var(--radius);
}

/* === PnL Calendar Card === */

/* === PnL Calendar Card === */

.pnl-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.pnl-title {
    font-weight: 600;
    color: #0f172a;
}

/* Always 7 columns, no horizontal scroll */

.pnl-weekhead,
.pnl-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.pnl-weekhead div {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.pnl-cell {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 8px;
    text-align: center;
    background: #fafafa;
    color: #64748b;
    word-wrap: break-word;
}

.pnl-cell.gain {
    background: var(--gain-bg);
    border-color: var(--gain-br);
    color: #0f5132;
}

.pnl-cell.loss {
    background: var(--loss-bg);
    border-color: var(--loss-br);
    color: #842029;
}

.pnl-cell.today {
    outline: 2px solid #22c55e;
    outline-offset: 0;
}

.pnl-value {
    font-weight: 600;
    font-size: .7rem;
}

.pnl-trades {
    font-size: 12px;
    opacity: .9;
}

.pnl-daynum {
    position: absolute;
    margin-bottom: 4px;
    top: 8px;
    right: 10px;
    font-size: 11px;
    color: #9aa3af;
}

.pnl-daynum.muted {
    color: #b6beca;
}

/* Mobile tweaks: fit all 7 columns without scroll, simplify content */

@media (max-width: 576px) {
    .container-xxl {
        padding-left: 10px;
        padding-right: 10px;
    }
    .pnl-weekhead {
        gap: 6px;
    }
    .pnl-grid {
        gap: 6px;
    }
    .pnl-cell {
        padding: 8px 2px;
        border-radius: 8px;
    }
    .pnl-value {
        display: none;
    }
    .pnl-trades {
        font-size: 9px;
    }
    .pnl-daynum {
        font-size: 9px;
        top: 6px;
        margin-bottom: 6px;
        right: 6px;
    }
}

.text-orange {
    color: #ff8a3d !important
}

.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c4b5fd;
    color: #1f2937;
    font-weight: 700
}

.badge-pct {
    background: #eaf7ef;
    border: 1px solid #cbead5;
    color: #16a34a;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 600;
    font-size: 12px
}