﻿

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins',sans-serif;
    background: #f6f7f3;
    color: #222;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
}

/*==================================================
            LAYOUT
==================================================*/

.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 265px;
    height: 100vh;
    background: linear-gradient(180deg,#06361d,#032514);
    overflow-x: hidden;
    overflow-y: auto;
    transition: .35s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    margin-left: 265px;
    width: calc(100% - 265px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: .35s ease;
}

.page-content {
    flex: 1;
    padding: 25px;
}

/*==================================================
            OVERLAY
==================================================*/

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 998;
}

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

/*==================================================
            SCROLLBAR
==================================================*/

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #23663a;
    border-radius: 20px;
}
/*==================================================
                HEADER
==================================================*/

.top-header {
    height: 80px;
    background: #fff;
    border-bottom: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 997;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
}

/* Left */

.welcome-text span {
    display: block;
    color: #7b7b7b;
    font-size: 14px;
    margin-bottom: 3px;
    font-weight: 500;
}

.welcome-text h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 22px;
    color: #111;
    font-weight: 700;
}

.welcome-text small {
    background: #e8f7ea;
    color: #1f7a34;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

/* Right */

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/*==================================================
            NOTIFICATION
==================================================*/

.notification {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: .3s;
}

    .notification:hover {
        background: #f0f0f0;
    }

    .notification i {
        font-size: 22px;
        color: #222;
    }

    .notification .badge {
        position: absolute;
        right: 2px;
        top: 2px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #d39b10;
        color: #fff;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
    }

/*==================================================
            PROFILE
==================================================*/

.profile-box {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

    .profile-box img {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #eee;
    }

    .profile-box h5 {
        margin: 0;
        font-size: 16px;
        color: #111;
        font-weight: 600;
    }

    .profile-box span {
        display: block;
        margin-top: 2px;
        color: #888;
        font-size: 13px;
    }

    .profile-box .fa-chevron-down {
        color: #555;
        font-size: 12px;
    }

/*==================================================
            MENU BUTTON
==================================================*/

.menu-toggle {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 10px;
    background: #fff;
   /* display: none;*/
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

    .menu-toggle i {
        font-size: 20px;
        color: #06361d;
    }

/*==================================================
                FOOTER
==================================================*/

.dashboard-footer {
    height: 60px;
    background: #fff;
    border-top: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}
/*==================================================
            SIDEBAR TOP
==================================================*/

.sidebar-top {
    padding: 28px 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo {
    width: 78px;
    margin-bottom: 14px;
}

.logo-text h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.logo-text h5 {
    color: #d8b36a;
    font-size: 13px;
    margin: 6px 0;
    letter-spacing: 2px;
    font-weight: 600;
}

.logo-text span {
    display: block;
    color: rgba(255,255,255,.75);
    font-size: 9px;
    margin-top: 10px;
    letter-spacing: 1px;
    line-height: 18px;
}

/*==================================================
        COLLAPSE BUTTON
==================================================*/

.sidebar-collapse-btn {
    position: absolute;
    top: 22px;
    right: -18px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #06361d;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.20);
    transition: .35s;
    z-index: 1001;
}

    .sidebar-collapse-btn i {
        transition: .35s;
    }

body.sidebar-close .sidebar-collapse-btn i {
    transform: rotate(180deg);
}

/*==================================================
            SIDEBAR MENU
==================================================*/

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 18px 14px;
}

    .sidebar-menu ul {
        margin: 0;
        padding: 0;
    }

    .sidebar-menu li {
        margin-bottom: 8px;
    }

        .sidebar-menu li > a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            border-radius: 14px;
            color: #fff;
            transition: .30s;
        }

            .sidebar-menu li > a:hover {
                background: rgba(255,255,255,.08);
            }

        .sidebar-menu li.active > a {
            background: #1c5c2d;
        }

        /* ICON */

        .sidebar-menu li > a i:first-child {
            width: 22px;
            text-align: center;
            font-size: 18px;
            color: #e3bb6c;
        }

/* TEXT */

.menu-text {
    flex: 1;
    margin-left: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

/* ARROW */

.menu-arrow {
    font-size: 12px;
    color: #ddd;
    transition: .35s;
}

.has-sub.open > a .menu-arrow {
    transform: rotate(180deg);
}

/*==================================================
            SUB MENU
==================================================*/

.submenu {
    display: none;
    padding-top: 8px;
    margin-left: 18px;
}

.has-sub.open > .submenu {
    display: block;
}

.submenu li {
    margin-bottom: 6px;
}

    .submenu li a {
        display: block;
        padding: 10px 14px;
        border-radius: 10px;
        color: #d8d8d8;
        font-size: 14px;
        transition: .3s;
    }

        .submenu li a:hover {
            background: rgba(255,255,255,.06);
            color: #fff;
        }
/*==================================================
            SIDEBAR BOTTOM
==================================================*/

.sidebar-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.invite-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 20px;
}

    .invite-card h4 {
        color: #fff;
        font-size: 20px;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .invite-card p {
        color: #d8d8d8;
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 18px;
    }

.invite-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    color: #06361d;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: .3s;
}

    .invite-btn:hover {
        background: #f3f3f3;
    }

/*==================================================
            DESKTOP COLLAPSE
==================================================*/

body.sidebar-close .sidebar {
    width: 90px !important;
}

    body.sidebar-close .sidebar .logo-text,
    body.sidebar-close .sidebar .menu-text,
    body.sidebar-close .sidebar .menu-arrow,
    body.sidebar-close .sidebar .invite-card {
        display: none !important;
    }

    body.sidebar-close .sidebar .sidebar-menu li > a {
        justify-content: center !important;
        padding: 16px 0 !important;
    }

        body.sidebar-close .sidebar .sidebar-menu li > a i:first-child {
            width: auto !important;
            margin: 0 !important;
            font-size: 22px;
        }

    body.sidebar-close .sidebar .logo-box {
        padding: 15px 0;
    }

    body.sidebar-close .sidebar .logo {
        width: 42px;
        margin: auto;
    }

body.sidebar-close .main-wrapper {
    margin-left: 90px;
    width: calc(100% - 90px);
}

body.sidebar-close .logo {
    width: 45px;
    margin: auto;
}

body.sidebar-close .logo-text,
body.sidebar-close .menu-text,
body.sidebar-close .menu-arrow,
body.sidebar-close .invite-card {
    display: none;
}

body.sidebar-close .sidebar-menu li > a {
    justify-content: center;
}

    body.sidebar-close .sidebar-menu li > a i:first-child {
        margin: 0;
        font-size: 22px;
    }

body.sidebar-close .submenu {
    display: none !important;
}

/*==================================================
                MOBILE
==================================================*/

@media(max-width:991px) {

    .menu-toggle {
        display: flex;
    }

    .sidebar {
        left: -265px;
        width: 265px;
    }

        .sidebar.active {
            left: 0;
        }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-collapse-btn {
        display: none;
    }

    body.sidebar-close .sidebar {
        left: -265px;
        width: 265px;
    }
}

/*==================================================
            SMALL DEVICES
==================================================*/

@media(max-width:576px) {

    .top-header {
        padding: 0 15px;
    }

    .welcome-text h3 {
        font-size: 18px;
    }

    .profile-box div {
        display: none;
    }

    .page-content {
        padding: 18px;
    }
}

/*==================================================
            ANIMATION
==================================================*/

.sidebar,
.main-wrapper,
.sidebar-menu li > a,
.menu-arrow,
.logo-text,
.menu-text {
    transition: all .35s ease;
}
/*==================================================
            FINAL FIXES
==================================================*/

/* Smooth Scroll */

.sidebar {
    scrollbar-width: thin;
    scrollbar-color: #2b7d46 transparent;
}

    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: #2b7d46;
        border-radius: 20px;
    }

/* Hover */

.sidebar-menu li > a {
    position: relative;
    overflow: hidden;
}

    .sidebar-menu li > a::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: #d8b36a;
        transform: scaleY(0);
        transition: .3s;
    }

    .sidebar-menu li > a:hover::before,
    .sidebar-menu li.active > a::before {
        transform: scaleY(1);
    }

    .sidebar-menu li > a:hover {
        background: rgba(255,255,255,.08);
    }

/* Active */

.sidebar-menu li.active > a {
    background: #1c5d31;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

/* Submenu Animation */

.submenu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .35s ease,opacity .35s ease;
}

.has-sub.open > .submenu {
    display: block;
    max-height: 500px;
    opacity: 1;
}

/* Icon */

.sidebar-menu li > a i {
    transition: .3s;
}

.sidebar-menu li > a:hover i:first-child {
    transform: scale(1.1);
}

/* Prevent Blink */

.sidebar,
.main-wrapper,
.overlay {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    will-change: left,width;
}

/* Focus */

.sidebar-menu a:focus {
    outline: none;
}

/* Desktop */

@media(min-width:992px) {

    .sidebar {
        left: 0 !important;
    }
}


.sidebar.collapsed {
    width: 90px !important;
    overflow: hidden;
}

    .sidebar.collapsed .logo-text,
    .sidebar.collapsed .menu-text,
    .sidebar.collapsed .menu-arrow,
    .sidebar.collapsed .invite-card {
        display: none !important;
    }

    .sidebar.collapsed .sidebar-menu li > a {
        justify-content: center;
        padding: 16px 0;
    }

        .sidebar.collapsed .sidebar-menu li > a i:first-child {
            width: auto;
            margin: 0;
            font-size: 22px;
        }

.main-wrapper.expanded {
    margin-left: 90px;
    width: calc(100% - 90px);
}
/*==================================================
            FUSION TRADE THEME
==================================================*/

:root {
    --primary: #06361d;
    --secondary: #0d5b33;
    --gold: #d8b36a;
    --gold-light: #f3d38f;
    --bg: #f5f7f4;
    --panel: #ffffff;
    --border: #e8ece8;
    --text: #202124;
    --muted: #727b73;
    --green: #16a34a;
    --red: #dc2626;
}

/*======================================
            PAGE
======================================*/

body {
    background: var(--bg);
    color: var(--text);
}

.main {
    padding: 20px;
    background: var(--bg);
    min-height: 100vh;
}

.wrap {
    width: 100%;
    max-width: 1600px;
    margin: auto;
}

/*======================================
            CARD
======================================*/

.cardish {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 35px rgba(0,0,0,.05);
    transition: .35s;
}

    .cardish:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 40px rgba(0,0,0,.08);
    }

/*======================================
            TEXT
======================================*/

.muted {
    color: var(--muted);
}

.small-12 {
    font-size: 12px;
}

/*======================================
            HEADER
======================================*/

#pair {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

#px {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
}

#pxInr {
    font-size: 15px;
    color: #666;
}

/*======================================
            PRICE CHIP
======================================*/

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 30px;
    background: #e8f7ec;
    color: var(--green);
    font-weight: 700;
    font-size: 13px;
}

/* Desktop */
.menu-toggle {
    display: none;
}

/* Mobile */
@media (max-width:991px) {

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .sidebar-collapse {
        display: none !important;
    }
}