@import url("./preferences.css");

        /* =========================================
           RESET
        ========================================= */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }


        :root {

            --bg: #050a14;
            --sidebar: #060b14;

            --panel: #0a111d;
            --panel-hover: #0d1624;

            --border: #162131;
            --border-soft: #101a28;

            --text: #f2f5fa;
            --muted: #7d8999;

            --blue: #216cff;
            --blue-light: #4384ff;
            --blue-glow: rgba(33, 108, 255, 0.22);

            --green: #42c98a;
            --red: #f05c67;

            --purple: #9167ff;
            --orange: #f19b4a;

        }


        html {
            scroll-behavior: smooth;
        }


        body {

            font-family:
                Inter,
                Arial,
                sans-serif;

            background: var(--bg);

            color: var(--text);

            overflow-x: hidden;

        }


        /* =========================================
           SCROLLBAR
        ========================================= */

        ::-webkit-scrollbar {
            width: 8px;
        }


        ::-webkit-scrollbar-track {
            background: var(--bg);
        }


        ::-webkit-scrollbar-thumb {

            background: #172235;

            border-radius: 20px;

        }


        ::-webkit-scrollbar-thumb:hover {
            background: #263a58;
        }


        /* =========================================
           APP
        ========================================= */

        .app {

            min-height: 100vh;

            display: flex;

        }


        /* =========================================
           SIDEBAR
        ========================================= */

        .sidebar {

            width: 230px;

            min-height: 100vh;

            background: var(--sidebar);

            border-right:
                1px solid
                var(--border);

            display: flex;

            flex-direction: column;

            padding: 20px 10px;

            position: sticky;

            top: 0;

            height: 100vh;

            overflow-y: auto;

        }


        /* =========================================
           LOGO
        ========================================= */

        .logo {

            display: flex;

            align-items: center;

            gap: 3px;

            padding:
                0
                14px
                30px;

            font-size: 20px;

            font-weight: 700;

            letter-spacing: -0.5px;

        }


        .logo-fx {

            color: var(--blue);

            font-size: 26px;

            font-style: italic;

            font-weight: 900;

            letter-spacing: -3px;

            margin-right: 4px;

        }


        .logo-text {

            color: #f1f4f9;

        }


        /* =========================================
           MENU
        ========================================= */

        .menu {

            display: flex;

            flex-direction: column;

            gap: 4px;

        }


        .menu-label {

            color: var(--muted);

            font-size: 9px;

            font-weight: 600;

            letter-spacing: 1.2px;

            margin:
                26px
                14px
                8px;

        }


        .menu-item {

            text-decoration: none;

            color: #9ca8b8;

            display: flex;

            align-items: center;

            gap: 13px;

            padding:
                11px
                14px;

            border-radius: 8px;

            font-size: 13px;

            border:
                1px solid
                transparent;

            transition:
                background 0.25s ease,
                border 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease;

        }


        .menu-item:hover {

            background: #0c1624;

            color: white;

            transform:
                translateX(3px);

        }


        .menu-item.active {

            background:
                linear-gradient(
                    90deg,
                    rgba(27, 92, 220, 0.55),
                    rgba(21, 57, 117, 0.7)
                );

            border-color:
                rgba(56, 121, 255, 0.55);

            color: white;

            box-shadow:
                0 0 18px
                rgba(30, 100, 255, 0.1);

        }


        .menu-icon {

            width: 18px;

            text-align: center;

            font-size: 16px;

            opacity: 0.9;

        }


        /* =========================================
           SIDEBAR BOTTOM
        ========================================= */

        .sidebar-bottom {

            margin-top: auto;

            padding-top: 20px;

        }


        .upgrade-card {

            border:
                1px solid
                var(--border);

            background:
                linear-gradient(
                    145deg,
                    #0a111d,
                    #080e18
                );

            border-radius: 10px;

            padding: 15px;

            margin-top: 13px;

            transition:
                transform 0.3s ease,
                border 0.3s ease;

        }


        .upgrade-card:hover {

            transform:
                translateY(-2px);

            border-color:
                #24426f;

        }


        .upgrade-card h4 {

            font-size: 12px;

            margin-bottom: 8px;

        }


        .upgrade-card p {

            color: var(--muted);

            font-size: 10px;

            line-height: 1.6;

        }


        .upgrade-button {

            width: 100%;

            margin-top: 14px;

            border: none;

            border-radius: 6px;

            background:
                linear-gradient(
                    135deg,
                    #1555d4,
                    #2776ff
                );

            color: white;

            padding: 11px;

            cursor: pointer;

            font-weight: 600;

            font-size: 12px;

            transition:
                transform 0.25s ease,
                box-shadow 0.25s ease;

        }


        .upgrade-button:hover {

            transform:
                translateY(-2px);

            box-shadow:
                0 8px 20px
                rgba(33, 108, 255, 0.28);

        }


        /* =========================================
           MAIN
        ========================================= */

        .main {

            flex: 1;

            min-width: 0;

        }


        /* =========================================
           HEADER
        ========================================= */

        .header {

            display: flex;

            justify-content: space-between;

            align-items: center;

            padding:
                20px
                30px;

        }


        .welcome h2 {

            font-size: 19px;

            font-weight: 600;

            margin-bottom: 6px;

        }


        .welcome p {

            color: var(--muted);

            font-size: 11px;

        }


        .header-right {

            display: flex;

            align-items: center;

            gap: 12px;

        }


        .search-box {

            display: flex;

            align-items: center;

            gap: 8px;

            width: 190px;

            border:
                1px solid
                var(--border);

            background: #080e18;

            padding:
                10px
                12px;

            border-radius: 7px;

            color: var(--muted);

            font-size: 11px;

            transition:
                border 0.25s ease,
                box-shadow 0.25s ease;

        }


        .search-box:hover {

            border-color:
                #274675;

            box-shadow:
                0 0 14px
                rgba(33, 108, 255, 0.08);

        }


        .notification {

            width: 38px;

            height: 38px;

            border:
                1px solid
                var(--border);

            border-radius: 8px;

            display: flex;

            align-items: center;

            justify-content: center;

            cursor: pointer;

            position: relative;

            transition:
                background 0.25s ease,
                transform 0.25s ease;

        }


        .notification:hover {

            background: #0d1725;

            transform:
                translateY(-2px);

        }


        .notification-badge {

            position: absolute;

            top: -5px;

            right: -4px;

            width: 16px;

            height: 16px;

            border-radius: 50%;

            background: var(--blue);

            color: white;

            font-size: 9px;

            display: flex;

            align-items: center;

            justify-content: center;

        }


        .profile {

            display: flex;

            align-items: center;

            gap: 10px;

            cursor: pointer;

            padding-left: 3px;

        }


        .avatar {

            width: 40px;

            height: 40px;

            border-radius: 50%;

            background:
                linear-gradient(
                    145deg,
                    #253a5c,
                    #152237
                );

            border:
                1px solid
                #31496e;

            display: flex;

            align-items: center;

            justify-content: center;

            font-size: 13px;

            font-weight: 700;

            color: white;

        }


        .profile-info h4 {

            font-size: 12px;

        }


        .profile-info p {

            color: var(--muted);

            font-size: 9px;

            margin-top: 3px;

            max-width: 120px;

            overflow: hidden;

            text-overflow: ellipsis;

            white-space: nowrap;

        }


        /* =========================================
           CONTENT
        ========================================= */

        .content {

            padding:
                0
                30px
                30px;

        }


        /* =========================================
           SCROLL REVEAL
        ========================================= */

        .reveal {

            opacity: 0;

            transform:
                translateY(22px);

            transition:
                opacity 0.7s ease,
                transform 0.7s cubic-bezier(
                    0.22,
                    1,
                    0.36,
                    1
                );

        }


        .reveal.visible {

            opacity: 1;

            transform:
                translateY(0);

        }


        /* =========================================
           STAT CARDS
        ========================================= */

        .stats-grid {

            display: grid;

            grid-template-columns:
                repeat(5, 1fr);

            gap: 12px;

        }


        .stat-card {

            background:
                linear-gradient(
                    145deg,
                    #0b131f,
                    #09111c
                );

            border:
                1px solid
                var(--border);

            border-radius: 9px;

            padding: 16px;

            min-height: 118px;

            position: relative;

            overflow: hidden;

            transition:
                transform 0.3s ease,
                border 0.3s ease,
                box-shadow 0.3s ease;

        }


        .stat-card:hover {

            transform:
                translateY(-3px);

            border-color:
                #27436b;

            box-shadow:
                0 10px 30px
                rgba(0, 0, 0, 0.22);

        }


        .stat-title {

            color: #a5adba;

            font-size: 11px;

            margin-bottom: 13px;

        }


        .stat-value {

            font-size: 20px;

            font-weight: 600;

        }


        .positive {
            color: var(--green);
        }


        .negative {
            color: var(--red);
        }


        .stat-change {

            margin-top: 8px;

            font-size: 10px;

            color: var(--muted);

        }


        .mini-chart {

            position: absolute;

            left: 15px;

            right: 15px;

            bottom: 10px;

            height: 28px;

            opacity: 0.75;

        }


        .mini-chart svg {

            width: 100%;

            height: 100%;

            overflow: visible;

        }


        .stat-icon {

            position: absolute;

            top: 13px;

            right: 14px;

            width: 30px;

            height: 30px;

            border-radius: 9px;

            display: flex;

            align-items: center;

            justify-content: center;

            background:
                rgba(33, 108, 255, 0.09);

            color: #4d88ff;

            font-size: 14px;

        }


        /* =========================================
           DASHBOARD GRID
        ========================================= */

        .dashboard-grid {

            display: grid;

            grid-template-columns:
                1.1fr
                0.85fr
                1.1fr;

            gap: 12px;

            margin-top: 12px;

        }

        .dashboard-grid.account-status-grid {

            grid-template-columns:
                minmax(0, 1fr);

        }


        .panel {

            background:
                linear-gradient(
                    145deg,
                    #0b131f,
                    #09111c
                );

            border:
                1px solid
                var(--border);

            border-radius: 9px;

            padding: 16px;

            transition:
                transform 0.3s ease,
                border 0.3s ease,
                box-shadow 0.3s ease;

        }


        .panel:hover {

            border-color:
                #203c63;

            box-shadow:
                0 10px 28px
                rgba(0, 0, 0, 0.15);

        }


        .panel-title {

            display: flex;

            justify-content: space-between;

            align-items: center;

            margin-bottom: 16px;

        }


        .panel-title h3 {

            font-size: 13px;

            font-weight: 600;

        }


        /* =========================================
           FOCUS ACCOUNT
        ========================================= */

        .account-info {

            display: flex;

            justify-content: space-between;

            gap: 20px;

        }


        .account-left {

            display: flex;

            gap: 12px;

            align-items: center;

        }


        .company-icon {

            width: 42px;

            height: 42px;

            border-radius: 8px;

            background: #101a29;

            border:
                1px solid
                #1a2940;

            display: flex;

            align-items: center;

            justify-content: center;

            color: white;

            font-size: 11px;

            font-weight: 700;

        }


        .account-name {

            font-size: 13px;

            margin-bottom: 7px;

            font-weight: 500;

        }


        .account-details {

            color: var(--muted);

            font-size: 10px;

            line-height: 1.8;

        }


        .account-profit {

            text-align: right;

        }


        .progress {

            height: 5px;

            background: #111b2b;

            border-radius: 10px;

            margin-top: 20px;

            overflow: hidden;

        }


        .progress-bar {

            width: 64%;

            height: 100%;

            background:
                linear-gradient(
                    90deg,
                    #1d5ce0,
                    #3b7dff
                );

            border-radius: inherit;

            animation:
                loadProgress
                1.5s
                ease-out;

        }


        @keyframes loadProgress {

            from {
                width: 0;
            }

            to {
                width: 64%;
            }

        }


        .progress-info {

            display: flex;

            justify-content: space-between;

            margin-top: 7px;

            font-size: 9px;

            color: var(--muted);

        }


        /* =========================================
           DONUT
        ========================================= */

        .status-overview {

            display: flex;

            align-items: center;

            gap: 28px;

            min-height: 120px;

        }


        .donut {

            width: 110px;

            height: 110px;

            border-radius: 50%;

            background:
                conic-gradient(
                    var(--blue) 0 58%,
                    var(--green) 58% 83%,
                    var(--red) 83% 100%
                );

            display: flex;

            align-items: center;

            justify-content: center;

            transform:
                rotate(-20deg);

            transition:
                transform 0.8s ease;

        }


        .panel:hover .donut {

            transform:
                rotate(340deg);

        }


        .donut-inner {

            width: 78px;

            height: 78px;

            border-radius: 50%;

            background: var(--panel);

            display: flex;

            flex-direction: column;

            align-items: center;

            justify-content: center;

            transform:
                rotate(20deg);

        }


        .panel:hover .donut-inner {

            transform:
                rotate(-340deg);

        }


        .donut-inner strong {

            font-size: 21px;

        }


        .donut-inner span {

            font-size: 9px;

            color: var(--muted);

            margin-top: 3px;

        }


        .legend {

            display: flex;

            flex-direction: column;

            gap: 12px;

        }


        .legend-item {

            display: flex;

            align-items: center;

            justify-content: space-between;

            gap: 12px;

            font-size: 10px;

            color: #a6b0bd;

        }


        .legend-left {

            display: flex;

            align-items: center;

            gap: 7px;

        }


        .dot {

            width: 7px;

            height: 7px;

            border-radius: 50%;

        }


        .blue {
            background: var(--blue);
        }


        .green {
            background: var(--green);
        }


        .red {
            background: var(--red);
        }


        /* =========================================
           LOWER GRID
        ========================================= */

        .lower-grid {

            display: grid;

            grid-template-columns:
                1.15fr
                0.9fr
                1.1fr;

            gap: 12px;

            margin-top: 12px;

        }


        /* =========================================
           EQUITY LINE CHART
        ========================================= */

        .equity-chart {

            width: 100%;

            height: 220px;

            position: relative;

        }


        .equity-chart svg {

            width: 100%;

            height: 100%;

            overflow: visible;

        }


        .chart-grid line {

            stroke: #132033;

            stroke-width: 1;

        }


        .equity-area {

            fill:
                url(#equityGradient);

        }


        .equity-line {

            fill: none;

            stroke: #2e72ff;

            stroke-width: 3;

            stroke-linecap: round;

            stroke-linejoin: round;

            filter:
                drop-shadow(
                    0 0 5px
                    rgba(46, 114, 255, 0.35)
                );

            stroke-dasharray: 1000;

            stroke-dashoffset: 1000;

            animation:
                drawLine
                2.5s
                ease-out
                forwards;

        }


        @keyframes drawLine {

            to {
                stroke-dashoffset: 0;
            }

        }


        .chart-labels {

            position: absolute;

            left: 10px;

            right: 10px;

            bottom: -1px;

            display: flex;

            justify-content: space-between;

            color: #687486;

            font-size: 8px;

        }


        /* =========================================
           RECENT TRADES
        ========================================= */

        table {

            width: 100%;

            border-collapse: collapse;

        }


        th {

            color: var(--muted);

            font-size: 9px;

            font-weight: 500;

            text-align: left;

            padding-bottom: 10px;

        }


        td {

            padding: 9px 0;

            border-top:
                1px solid
                #132033;

            font-size: 10px;

        }


        .result-badge {

            display: inline-block;

            padding:
                3px
                6px;

            border-radius: 4px;

            font-size: 8px;

        }


        .result-win {

            color: var(--green);

            background:
                rgba(66, 201, 138, 0.08);

        }


        .result-loss {

            color: var(--red);

            background:
                rgba(240, 92, 103, 0.08);

        }


        /* =========================================
           ACCOUNT LIST
        ========================================= */

        .account-list {

            display: flex;

            flex-direction: column;

            gap: 0;

        }


        .account-row {

            display: grid;

            grid-template-columns:
                1fr
                70px
                55px
                45px;

            align-items: center;

            gap: 8px;

            padding:
                10px
                0;

            border-bottom:
                1px solid
                #132033;

            font-size: 10px;

        }


        .account-row:last-child {

            border-bottom: none;

        }


        .account-phase {

            color: var(--muted);

        }


        .account-dot {

            width: 6px;

            height: 6px;

            border-radius: 50%;

            justify-self: end;

        }


        .view-accounts {

            text-align: center;

            margin-top: 14px;

            font-size: 10px;

            color: #4382ff;

            cursor: pointer;

            transition:
                color 0.2s ease;

        }


        .view-accounts:hover {

            color: white;

        }


        /* =========================================
           PERFORMANCE
        ========================================= */

        .performance {

            margin-top: 12px;

        }


        .performance-grid {

            display: grid;

            grid-template-columns:
                repeat(7, 1fr);

            gap: 0;

        }


        .performance-item {

            border-right:
                1px solid
                var(--border);

            padding:
                4px
                16px;

            min-height: 70px;

        }


        .performance-item:last-child {

            border-right: none;

        }


        .performance-label {

            color: var(--muted);

            font-size: 9px;

            margin-bottom: 10px;

        }


        .performance-value {

            font-size: 17px;

            font-weight: 600;

        }


        .performance-change {

            margin-top: 7px;

            color: var(--green);

            font-size: 8px;

        }


        .win-rate-circle {

            width: 38px;

            height: 38px;

            border-radius: 50%;

            border:
                4px solid
                #1b2c45;

            border-top-color:
                var(--blue);

            border-right-color:
                var(--blue);

            transform:
                rotate(20deg);

            position: absolute;

            right: 15px;

            top: 23px;

        }


        .performance-item.first {

            position: relative;

        }


        .monthly-bars {

            height: 45px;

            display: flex;

            align-items: flex-end;

            gap: 4px;

            margin-top: 7px;

        }


        .monthly-bars span {

            width: 7px;

            background:
                linear-gradient(
                    to top,
                    #174ab0,
                    #357cff
                );

            border-radius:
                2px
                2px
                0
                0;

            opacity: 0.85;

            animation:
                barsRise
                1s
                ease-out
                backwards;

        }


        .monthly-bars span:nth-child(1) {
            height: 35%;
        }

        .monthly-bars span:nth-child(2) {
            height: 55%;
        }

        .monthly-bars span:nth-child(3) {
            height: 48%;
        }

        .monthly-bars span:nth-child(4) {
            height: 75%;
        }

        .monthly-bars span:nth-child(5) {
            height: 65%;
        }

        .monthly-bars span:nth-child(6) {
            height: 95%;
        }

        .monthly-bars span:nth-child(7) {
            height: 78%;
        }

        .monthly-bars span:nth-child(8) {
            height: 100%;
        }


        @keyframes barsRise {

            from {

                height: 0;

                opacity: 0;

            }

        }


        /* =========================================
           FOOTER
        ========================================= */

        .footer {

            display: flex;

            justify-content: space-between;

            color: var(--muted);

            font-size: 9px;

            padding:
                25px
                0
                5px;

        }


        /* =========================================
           RESPONSIVE
        ========================================= */

        @media (max-width: 1250px) {

            .stats-grid {
                grid-template-columns:
                    repeat(3, 1fr);
            }

            .dashboard-grid,
            .lower-grid {
                grid-template-columns: 1fr;
            }

            .performance-grid {
                grid-template-columns:
                    repeat(4, 1fr);
            }

        }


        @media (max-width: 850px) {

            .sidebar {
                width: 70px;
            }


            .logo-text,
            .menu-item span:not(.menu-icon),
            .menu-label,
            .sidebar-bottom {
                display: none;
            }


            .logo {
                justify-content: center;
                padding-left: 0;
                padding-right: 0;
            }


            .menu-item {
                justify-content: center;
            }


            .header {
                padding: 15px;
            }


            .content {
                padding:
                    0
                    15px
                    20px;
            }


            .search-box {
                display: none;
            }

        }


        @media (max-width: 600px) {

            .stats-grid,
            .performance-grid {
                grid-template-columns:
                    repeat(2, 1fr);
            }


            .profile-info {
                display: none;
            }


            .welcome p {
                display: none;
            }


            .status-overview {
                flex-direction: column;
                align-items: flex-start;
            }


            .footer {
                flex-direction: column;
                gap: 8px;
            }

        }

        /* =========================================
   DASHBOARD LAYOUT
========================================= */

/* =====================================
   PROP MANAGER PAGE WRAPPER
===================================== */

.app {

    display:flex;
    min-height:100vh;

}


/* MAIN CONTENT AREA */

.main {

    flex:1;

    min-width:0;

    padding:30px;

}


/* HEADER FIT */

.top-header {

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

}


/* TABLE RESPONSIVE */

.table-wrapper {

    width:100%;

    overflow-x:auto;

}


/* PREVENT CARDS OVERFLOW */

.stats-grid,
.bottom-grid {

    width:100%;

}


/* MOBILE */

@media(max-width:900px){

    .main{

        padding:15px;

    }


    .top-header{

        flex-direction:column;

        align-items:flex-start;

    }

}

/* =====================================
   FXPOSSIBLE SHARED DELETE CONFIRMATION
====================================== */

.fx-delete-modal {

    display:
        none;

    position:
        fixed;

    inset:
        0;

    background:
        rgba(0, 0, 0, .74);

    backdrop-filter:
        blur(4px);

    z-index:
        5000;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

}


.fx-delete-modal.show {

    display:
        flex;

}


.fx-delete-card {

    width:
        100%;

    max-width:
        430px;

    background:
        #0b111d;

    border:
        1px solid #3a2730;

    border-radius:
        14px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, .65);

    padding:
        30px;

    text-align:
        center;

    animation:
        fxDeleteModalIn .18s ease-out;

}


@keyframes fxDeleteModalIn {

    from {

        opacity:
            0;

        transform:
            scale(.94)
            translateY(8px);

    }

    to {

        opacity:
            1;

        transform:
            scale(1)
            translateY(0);

    }

}


.fx-delete-icon {

    width:
        58px;

    height:
        58px;

    margin:
        0 auto 18px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        rgba(239, 68, 68, .10);

    border:
        1px solid rgba(239, 68, 68, .25);

    color:
        #ef4444;

    font-size:
        26px;

}


.fx-delete-content h2 {

    margin:
        0 0 10px;

    font-size:
        21px;

    font-weight:
        700;

    color:
        #f5f7fb;

}


.fx-delete-content p {

    margin:
        0 auto 22px;

    max-width:
        350px;

    color:
        #8491a7;

    font-size:
        14px;

    line-height:
        1.6;

}


.fx-delete-info {

    background:
        #0f1725;

    border:
        1px solid #1e2b40;

    border-radius:
        10px;

    padding:
        15px 16px;

    margin-bottom:
        24px;

    text-align:
        left;

}


.fx-delete-info-row {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        15px;

}


.fx-delete-info-row + .fx-delete-info-row {

    margin-top:
        12px;

}


.fx-delete-info-row span {

    color:
        #718096;

    font-size:
        13px;

}


.fx-delete-info-row strong {

    color:
        #e7ebf3;

    font-size:
        13px;

    text-align:
        right;

}


.fx-delete-actions {

    display:
        flex;

    gap:
        10px;

}


.fx-delete-cancel,
.fx-delete-confirm {

    flex:
        1;

    min-height:
        44px;

    border-radius:
        8px;

    font-size:
        14px;

    font-weight:
        600;

    cursor:
        pointer;

}


.fx-delete-cancel {

    background:
        #111a29;

    border:
        1px solid #26354b;

    color:
        #aab4c5;

}


.fx-delete-cancel:hover {

    background:
        #162033;

    color:
        #ffffff;

}


.fx-delete-confirm {

    background:
        #b4232f;

    border:
        1px solid #d13a46;

    color:
        #ffffff;

}


.fx-delete-confirm:hover {

    background:
        #d12f3b;

}


.fx-delete-confirm:disabled {

    opacity:
        .6;

    cursor:
        not-allowed;

}

/* =====================================
   LOST AMOUNT
   Always displayed as a loss
===================================== */

#lostAmount {
    color: var(--red) !important;
}

/* =================================
   EQUITY CURVE PERIOD DROPDOWN
================================= */

.equity-period-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}


/* SELECT */

.equity-period-select {
    appearance: none;
    -webkit-appearance: none;

    min-width: 105px;

    padding: 6px 25px 6px 9px;

    background: var(--panel);
    color: var(--muted);

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;

    outline: none;

    font-family: inherit;
    font-size: 10px;
    font-weight: 500;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}


/* CUSTOM ARROW */

.equity-period-wrapper::after {
    content: "⌄";

    position: absolute;

    right: 9px;
    top: 50%;

    transform: translateY(-55%);

    color: var(--muted);

    font-size: 11px;

    pointer-events: none;

    transition:
        color 0.2s ease;
}


/* HOVER */

.equity-period-select:hover {
    border-color: rgba(33, 108, 255, 0.45);
    color: #ffffff;
}


/* FOCUS */

.equity-period-select:focus {
    border-color: rgba(33, 108, 255, 0.7);

    box-shadow:
        0 0 0 2px rgba(33, 108, 255, 0.08);
}


/* ARROW ON HOVER */

.equity-period-wrapper:hover::after {
    color: #4382ff;
}


/* DROPDOWN OPTIONS */

.equity-period-select option {
    background: #111722;
    color: #ffffff;

    font-family: inherit;
    font-size: 10px;
}


/* ACTIVE SELECTED OPTION */

.equity-period-select option:checked {
    background: #216cff;
    color: #ffffff;
}

/* =====================================
   EQUITY CURVE TOOLTIP
===================================== */

.equity-tooltip {

    position: absolute;

    display: none;

    min-width: 180px;

    max-width: 240px;

    padding: 12px 14px;

    background: rgba(15, 18, 25, 0.97);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35);

    pointer-events: none;

    z-index: 20;

    font-size: 11px;

    line-height: 1.5;

}


/* TOOLTIP TITLE */

.equity-tooltip-title {

    font-size: 11px;

    font-weight: 600;

    color: #ffffff;

    margin-bottom: 5px;

}


/* TOOLTIP TYPE */

.equity-tooltip-type {

    font-size: 10px;

    color: #8d96a8;

    margin-bottom: 7px;

}


/* TOOLTIP AMOUNT */

.equity-tooltip-amount {

    font-size: 15px;

    font-weight: 700;

    margin-bottom: 4px;

}


/* POSITIVE */

.equity-tooltip-amount.positive {

    color: #2ecc71;

}


/* NEGATIVE */

.equity-tooltip-amount.negative {

    color: #f05c67;

}


/* TOOLTIP DATE */

.equity-tooltip-date {

    font-size: 9px;

    color: #8d96a8;

}

/* =================================
   EQUITY CURVE EVENT POINTS
================================= */

.equity-event-points {
    pointer-events: auto;
}


.equity-event-point {
    fill: #216cff;
    stroke: #ffffff;
    stroke-width: 2px;
    cursor: pointer;

    transition:
        r 0.15s ease,
        opacity 0.15s ease;
}


.equity-event-point:hover {
    r: 7;
}


.equity-tooltip {
    position: absolute;

    z-index: 100;

    min-width: 155px;

    padding: 10px 12px;

    border-radius: 8px;

    background: rgba(15, 18, 25, 0.96);

    border: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(8px);

    color: #ffffff;

    font-size: 10px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(4px);

    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s ease;
}


.equity-tooltip.show {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


.equity-tooltip-title {

    font-size: 11px;

    font-weight: 600;

    margin-bottom: 8px;

}


.equity-tooltip-row {

    display: flex;

    justify-content: space-between;

    gap: 14px;

    margin-top: 5px;

}


.equity-tooltip-row span {

    color: var(--muted);

}


.equity-tooltip-row strong {

    font-weight: 600;

}

/* =========================================
   EQUITY EVENT TOOLTIP FIX
========================================= */

.equity-chart {
    position: relative;
    overflow: visible !important;
}

.equity-chart svg {
    overflow: visible !important;
    pointer-events: auto !important;
}

.equity-event-points {
    pointer-events: auto !important;
}

.equity-event-points circle {
    pointer-events: all !important;
    cursor: pointer;
}

.equity-tooltip {
    position: absolute !important;
    z-index: 9999 !important;

    display: none;
    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    min-width: 100px !important;
    width: auto !important;
    padding: 6px 8px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    border-radius: 6px !important;


    background: rgba(20, 24, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);

    line-height: 1.5;

    transition:
        opacity 0.15s ease,
        visibility 0.15s ease;
}

.equity-tooltip.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* =========================================================
   FXpossible HEADER — BRAND CONSISTENCY
========================================================= */


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.header {
    position: relative;
    z-index: 100;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;

    margin-bottom: 24px;
}

/* ---------------------------------------------------------
   HEADER RIGHT
--------------------------------------------------------- */

.header-right {
    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    flex-shrink: 0;

    position: relative;
    z-index: 101;
}

.header .welcome {
    flex: 1;
    min-width: 0;
}

/* ---------------------------------------------------------
   SEARCH
--------------------------------------------------------- */

.search-box {
    width: 220px !important;
    height: 40px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 12px !important;

    background: var(--panel) !important;

    border: 1px solid var(--border) !important;

    border-radius: 8px;

    color: var(--muted);

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.search-box:hover,
.search-box:focus-within {

    border-color: var(--blue) !important;

    background: var(--panel-light) !important;

    box-shadow:
        0 0 0 3px var(--blue-soft);
}


/* Search icon */

.search-icon {

    flex-shrink: 0;

    color: var(--muted);

    font-size: 13px;
}


/* Search input */

.search-box input {

    width: 100%;

    min-width: 0;

    border: none;

    outline: none;

    background: transparent;

    color: var(--text);

    font-family: inherit;

    font-size: 11px;
}


.search-box input::placeholder {

    color: var(--muted);

    opacity: 1;
}


/* ---------------------------------------------------------
   NOTIFICATION BUTTON
--------------------------------------------------------- */

.notification-wrapper {

    position: relative;

    flex-shrink: 0;
}


.notification {

    width: 40px;
    height: 40px;

    padding: 0 !important;

    border: 1px solid var(--border) !important;

    border-radius: 8px;

    background: var(--panel) !important;

    color: var(--text);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.notification:hover {

    border-color: var(--blue) !important;

    background: var(--panel-light) !important;

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   NOTIFICATION BADGE
--------------------------------------------------------- */

.notification-badge {

    top: 3px !important;
    right: 3px !important;

    min-width: 15px !important;
    height: 15px !important;

    padding: 0 4px !important;

    background: var(--red) !important;

    color: var(--text) !important;

    border: 2px solid var(--panel);

    font-size: 8px !important;

    font-weight: 700;
}


/* ---------------------------------------------------------
   PROFILE
--------------------------------------------------------- */

.profile-wrapper {

    position: relative;

    flex-shrink: 0;
}


.profile {

    min-height: 40px;

    padding: 4px 7px !important;

    border: 1px solid transparent !important;

    border-radius: 9px;

    background: transparent !important;

    color: var(--text);

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.profile:hover {

    background: var(--panel) !important;

    border-color: var(--border) !important;

    opacity: 1;
}


/* ---------------------------------------------------------
   PROFILE INFO
--------------------------------------------------------- */

.profile-info {

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 2px;
}


.profile-info h4 {

    margin: 0;

    color: var(--text);

    font-size: 11px;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    max-width: 125px;
}


.profile-info p {

    margin: 0;

    color: var(--muted);

    font-size: 9px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    max-width: 125px;
}


/* ---------------------------------------------------------
   AVATAR
--------------------------------------------------------- */

.avatar {

    width: 36px !important;
    height: 36px !important;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--blue-soft) !important;

    border: 1px solid var(--blue) !important;

    color: var(--blue) !important;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   PROFILE DROPDOWN — FXpossible
========================================================= */

.profile-dropdown {

    top: calc(100% + 10px) !important;

    width: 250px;

    padding: 8px;

    background: var(--panel) !important;

    border: 1px solid var(--border) !important;

    border-radius: 10px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-7px)
        scale(0.98);

    pointer-events: none;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}


.profile-dropdown.show {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}


/* ---------------------------------------------------------
   DROPDOWN USER
--------------------------------------------------------- */

.profile-dropdown-user {

    padding: 9px;

    border-radius: 7px;

    background: var(--panel-light);

    display: flex;

    align-items: center;

    gap: 10px;
}


.profile-dropdown-user .avatar {

    width: 34px !important;
    height: 34px !important;
}


.profile-dropdown-user strong {

    display: block;

    color: var(--text);

    font-size: 11px;
}


.profile-dropdown-user span {

    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}


/* ---------------------------------------------------------
   PROFILE MENU
--------------------------------------------------------- */

.profile-menu {

    display: flex;

    flex-direction: column;

    gap: 2px;
}


.profile-menu-item {

    min-height: 36px;

    padding: 8px 9px !important;

    border: none !important;

    border-radius: 7px;

    background: transparent !important;

    color: var(--muted) !important;

    display: flex;

    align-items: center;

    gap: 9px;

    cursor: pointer;

    font-family: inherit;

    font-size: 11px;

    text-align: left;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


.profile-menu-item:hover {

    background: var(--panel-light) !important;

    color: var(--text) !important;

    transform: translateX(2px);
}


/* Logout stays within FXpossible red state */

.profile-menu-item.logout-item {

    color: var(--red) !important;
}


.profile-menu-item.logout-item:hover {

    background: var(--panel-light) !important;

    color: var(--red) !important;
}


/* ---------------------------------------------------------
   DIVIDERS
--------------------------------------------------------- */

.profile-dropdown-divider {

    height: 1px;

    margin: 6px 2px;

    background: var(--border);
}


/* =========================================================
   NOTIFICATION DROPDOWN — FXpossible
========================================================= */

.notification-dropdown {

    top: calc(100% + 10px) !important;

    right: -5px !important;

    width: 300px;

    background: var(--panel) !important;

    border: 1px solid var(--border) !important;

    border-radius: 10px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28);

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-7px)
        scale(0.98);

    pointer-events: none;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}


.notification-dropdown.show {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}


/* ---------------------------------------------------------
   NOTIFICATION HEADER
--------------------------------------------------------- */

.notification-header {

    padding: 12px 14px;

    background: var(--panel);

    border-bottom: 1px solid var(--border);
}


.notification-header h3 {

    color: var(--text);

    font-size: 12px;

    font-weight: 600;
}


.notification-header span {

    background: var(--blue-soft) !important;

    color: var(--blue) !important;

    border: 1px solid var(--border);
}


/* ---------------------------------------------------------
   EMPTY NOTIFICATION STATE
--------------------------------------------------------- */

.empty-notifications {

    min-height: 175px;

    background: var(--panel);

    color: var(--muted);
}


.empty-notification-icon {

    background: var(--panel-light) !important;

    border: 1px solid var(--border);

    color: var(--blue);

    box-shadow: 0 0 18px var(--blue-soft);
}


.empty-notifications strong {

    color: var(--text);
}


.empty-notifications p {

    color: var(--muted);
}

/* =========================================================
   FXpossible HEADER — FINAL POSITION FIX
========================================================= */

/* HEADER CONTAINER */
.header {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 40px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;

    margin: 0 0 24px 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
    z-index: 100 !important;
}

/* WELCOME SECTION */
.header .welcome {
    position: relative !important;

    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;
}

/* RIGHT SIDE OF HEADER */
.header .header-right {
    position: relative !important;

    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;

    margin: 0 0 0 auto !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;

    gap: 10px !important;

    z-index: 101 !important;
}

/* SEARCH */
.header .search-box {
    position: relative !important;

    width: 220px !important;
    height: 40px !important;

    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
}

/* NOTIFICATION WRAPPER */
.header .notification-wrapper {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: 40px !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;
}

/* NOTIFICATION BUTTON */
.header .notification {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: 40px !important;
    height: 40px !important;

    margin: 0 !important;
}

/* PROFILE WRAPPER */
.header .profile-wrapper {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: auto !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;
}

/* PROFILE BUTTON */
.header .profile {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    height: 40px !important;

    margin: 0 !important;
}

/* DROPDOWNS */
.header .profile-dropdown,
.header .notification-dropdown {
    position: absolute !important;
    z-index: 9999 !important;
}

/* KEEP DROPDOWNS OUT OF NORMAL HEADER FLOW */
.header .profile-dropdown {
    top: calc(100% + 10px) !important;
    right: 0 !important;
}

.header .notification-dropdown {
    top: calc(100% + 10px) !important;
    right: 0 !important;
}
/* =========================================================
   FXpossible — PROFESSIONAL SEARCH RESULTS
========================================================= */

.header .search-box {
    position: relative !important;
}


.dashboard-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 360px;

    padding: 6px;

    background: var(--panel) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28);

    overflow-y: auto;
    overflow-x: hidden;

    opacity: 0;
    visibility: hidden;
    transform:
        translateY(-7px)
        scale(0.98);

    pointer-events: none;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;

    z-index: 9999;
}


.dashboard-search-results.show {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}


/* SEARCH RESULT */

.dashboard-search-result {
    width: 100%;
    min-height: 48px;

    padding: 8px 9px !important;

    border: none !important;
    border-radius: 7px;

    background: transparent !important;

    color: var(--text);

    display: flex;
    align-items: center;

    gap: 9px;

    cursor: pointer;

    text-align: left;

    font-family: inherit;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}


.dashboard-search-result:hover {
    background: var(--panel-light) !important;
    transform: translateX(2px);
}


/* RESULT ICON */

.search-result-icon {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: var(--blue-soft);
    border: 1px solid var(--border);

    color: var(--blue);

    font-size: 14px;
}


/* RESULT TEXT */

.search-result-text {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.search-result-text strong {
    color: var(--text);

    font-size: 10px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.search-result-text span {
    color: var(--muted);

    font-size: 8px;
}


/* NO RESULTS */

.search-no-results {
    min-height: 150px;

    padding: 20px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background: var(--panel);
}


.search-no-results-icon {
    width: 38px;
    height: 38px;

    margin-bottom: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--panel-light);
    border: 1px solid var(--border);

    color: var(--blue);

    font-size: 17px;
}


.search-no-results strong {
    color: var(--text);

    font-size: 11px;
}


.search-no-results p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 9px;
}


/* SEARCH HIGHLIGHT */

.search-highlight {
    animation:
        fxpossibleSearchHighlight
        1.6s ease;
}


@keyframes fxpossibleSearchHighlight {

    0% {
        box-shadow:
            0 0 0 0
            var(--blue-soft);
    }

    35% {
        box-shadow:
            0 0 0 4px
            var(--blue-soft);
    }

    100% {
        box-shadow:
            0 0 0 0
            transparent;
    }

}


/* =========================================================
   FXpossible — NOTIFICATION ITEMS
========================================================= */

.notification-item {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding: 11px 12px;

    border-bottom: 1px solid var(--border);

    background: var(--panel);

    transition:
        background 0.15s ease;
}


.notification-item:hover {
    background: var(--panel-light);
}


.notification-item-icon {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: var(--blue-soft);

    border: 1px solid var(--border);

    color: var(--blue);

    font-size: 12px;
}


.notification-item-content {
    min-width: 0;
}


.notification-item-content strong {
    display: block;

    color: var(--text);

    font-size: 10px;
}


.notification-item-content p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.4;
}


.notification-item-content span {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 8px;
}

/* =========================================================
   FXpossible — NOTIFICATION DROPDOWN FINAL LAYOUT
========================================================= */

.header .notification-dropdown {
    width: 320px !important;
    max-height: 430px !important;

    padding: 0 !important;

    overflow: hidden !important;

    background: var(--panel) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;

    box-sizing: border-box !important;
}


/* HEADER */

.header .notification-header {
    width: 100% !important;
    min-height: 48px !important;

    padding: 12px 14px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    box-sizing: border-box !important;

    background: var(--panel) !important;
    border-bottom: 1px solid var(--border) !important;
}


.header .notification-header h3 {
    margin: 0 !important;

    color: var(--text) !important;

    font-size: 12px !important;
    font-weight: 600 !important;
}


.header .notification-header span {
    min-width: 20px !important;
    height: 20px !important;

    padding: 0 6px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    border-radius: 10px !important;

    background: var(--blue-soft) !important;
    border: 1px solid var(--border) !important;

    color: var(--blue) !important;

    font-size: 8px !important;
    font-weight: 700 !important;
}


/* CONTENT */

.header .notification-content {
    width: 100% !important;
    max-height: 370px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    box-sizing: border-box !important;
}


/* EMPTY STATE */

.header .empty-notifications {
    width: 100% !important;
    min-height: 190px !important;

    padding: 30px 20px !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    text-align: center !important;

    background: var(--panel) !important;
}


.header .empty-notification-icon {
    width: 44px !important;
    height: 44px !important;

    margin-bottom: 12px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;

    background: var(--panel-light) !important;
    border: 1px solid var(--border) !important;

    color: var(--blue) !important;

    font-size: 17px !important;

    box-shadow:
        0 0 18px var(--blue-soft) !important;
}


.header .empty-notifications strong {
    margin: 0 !important;

    color: var(--text) !important;

    font-size: 11px !important;
    font-weight: 600 !important;
}


.header .empty-notifications p {
    margin: 5px 0 0 !important;

    color: var(--muted) !important;

    font-size: 9px !important;
}


/* NOTIFICATION ITEMS */

.header .notification-item {
    width: 100% !important;

    box-sizing: border-box !important;

    display: flex !important;
    align-items: flex-start !important;

    gap: 10px !important;

    padding: 12px 14px !important;

    background: var(--panel) !important;

    border-bottom: 1px solid var(--border) !important;
}


.header .notification-item-icon {
    width: 30px !important;
    height: 30px !important;

    flex-shrink: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 7px !important;

    background: var(--blue-soft) !important;
    border: 1px solid var(--border) !important;

    color: var(--blue) !important;
}


.header .notification-item-content {
    min-width: 0 !important;
    flex: 1 !important;
}


.header .notification-item-content strong {
    color: var(--text) !important;

    font-size: 10px !important;
}


.header .notification-item-content p {
    color: var(--muted) !important;

    font-size: 9px !important;

    line-height: 1.4 !important;
}

/* =====================================
   FXPOSSIBLE GLOBAL SEARCH FOUND EFFECT
===================================== */

.fx-search-found {
    position: relative;
    z-index: 10;
    animation: fxSearchFound 1.8s ease-in-out;
}


@keyframes fxSearchFound {

    0% {
        transform: scale(1);
        border-color: var(--border);
        box-shadow: 0 0 0 0 transparent;
    }


    20% {
        transform: scale(1.015);
        border-color: var(--blue);
        box-shadow:
            0 0 0 3px var(--blue-soft);
    }


    40% {
        transform: scale(1);
        border-color: var(--blue);
        box-shadow:
            0 0 0 6px transparent;
    }


    60% {
        transform: scale(1.015);
        border-color: var(--blue);
        box-shadow:
            0 0 0 3px var(--blue-soft);
    }


    80% {
        transform: scale(1);
        border-color: var(--blue);
        box-shadow:
            0 0 0 6px transparent;
    }


    100% {
        transform: scale(1);
        border-color: var(--border);
        box-shadow: 0 0 0 0 transparent;
    }

}

/* =====================================
   FXPOSSIBLE GLOBAL SEARCH SUGGESTIONS
===================================== */

.fx-global-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.28);

    padding: 6px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);

    pointer-events: none;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;

    z-index: 1000;

    box-sizing: border-box;
}


.fx-global-search-suggestions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}


/* =====================================
   INDIVIDUAL SUGGESTION
===================================== */

.fx-global-search-suggestion {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px 11px;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: var(--text);

    text-align: left;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}


.fx-global-search-suggestion:hover {
    background: var(--panel-light);
    transform: translateX(2px);
}


.fx-global-search-suggestion:active {
    transform: translateX(2px) scale(0.99);
}


/* =====================================
   SEARCH ICON
===================================== */

.fx-search-suggestion-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 7px;

    background: var(--blue-soft);

    font-size: 13px;
}


/* =====================================
   SUGGESTION CONTENT
===================================== */

.fx-global-search-suggestion-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}


.fx-global-search-suggestion-content strong {
    font-size: 13px;
    font-weight: 600;

    color: var(--text);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.fx-global-search-suggestion-content small {
    font-size: 11px;

    color: var(--muted);

    white-space: nowrap;
}


/* =====================================
   SEARCH DROPDOWN SCROLLBAR
===================================== */

.fx-global-search-suggestions::-webkit-scrollbar {
    width: 5px;
}


.fx-global-search-suggestions::-webkit-scrollbar-track {
    background: transparent;
}


.fx-global-search-suggestions::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}
