/* -----------------------------------------------------------
   FX Hunter – Neon Dark Theme (Final Production Version)
------------------------------------------------------------ */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #0c0f16;
    color: #d6e2ff;
    overflow-x: hidden;
}

/* WRAPPER */
.wrapper {
    display: flex;
    width: 100%;
}

/* -----------------------------------------------------------
   SIDEBAR
------------------------------------------------------------ */

.fxh-sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(12,18,28,0.55);
    backdrop-filter: blur(14px);
    border-right: 1px solid rgba(0,255,255,0.15);
    padding: 20px 14px;
    transition: .35s ease;
    z-index: 9999;
}

/* Collapsed */
body.sidebar-collapsed .fxh-sidebar {
    transform: translateX(-260px);
}

/* Mobile default = collapsed */
@media(max-width:900px){
    .fxh-sidebar {
        transform: translateX(-260px);
    }
    body.sidebar-collapsed .fxh-sidebar {
        transform: translateX(0) !important;
    }
}

/* Sidebar Logo */
.fxh-logo {
    width: 140px;
    max-width: 140px;
    display: block;
    margin: 0 auto 35px auto;
    filter: drop-shadow(0 0 12px #00eaff55);
}

/* Sidebar Menu */
.fxh-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fxh-menu li {
    margin-bottom: 12px;
}

.fxh-menu a {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    color: #cfeaff;
    text-decoration: none;
    transition: .25s;
}

.fxh-menu li.active > a {
    background: #00eaff22;
    color: #00eaff;
}

.fxh-menu a:hover {
    background: #00eaff11;
    color: #00eaff;
}

.logout {
    color: #ff6b6b !important;
}

.logout:hover {
    background: #ff000022 !important;
}

/* -----------------------------------------------------------
   HAMBURGER BUTTON – FIXED OVERLAP
------------------------------------------------------------ */

.fxh-hamburger {
    position: fixed;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 32px;
    background: rgba(255,255,255,0.18);
    border: none;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 15000; /* stays above everything */
}

.fxh-hamburger span {
    height: 4px;
    width: 100%;
    background: #00eaff;
    border-radius: 3px;
    transition: .3s;
}

/* Hamburger → X animation */
body.sidebar-collapsed .fxh-hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
body.sidebar-collapsed .fxh-hamburger span:nth-child(2) {
    opacity: 0;
}
body.sidebar-collapsed .fxh-hamburger span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* -----------------------------------------------------------
   MAIN CONTENT AREA
------------------------------------------------------------ */

.fxh-main {
    margin-left: 260px;
    padding: 70px 40px 40px 40px;
    transition: margin-left .35s ease;
}

body.sidebar-collapsed .fxh-main {
    margin-left: 0 !important;
}

/* Mobile */
@media(max-width:900px){
    .fxh-main {
        margin-left: 0 !important;
        padding: 70px 20px 30px 20px;
    }
}

/* Page Titles */
.fxh-main h1 {
    font-size: 32px;
    margin: 0 0 25px 0;
    font-weight: 600;
    color: #ffffff;
}

/* -----------------------------------------------------------
   DASHBOARD – FIX HUGE LOGO ISSUE
------------------------------------------------------------ */

/* Remove any background logos */
body img.bg,
body .background-logo,
.dashboard-hero,
.header-bg,
.dashboard-bg {
    display: none !important;
}

/* Prevent images expanding out of container */
img {
    max-width: 100%;
    height: auto;
}

/* -----------------------------------------------------------
   NEON CARDS
------------------------------------------------------------ */

.fx-card {
    background: #0c0f12;
    border: 1px solid rgba(0,255,255,0.15);
    border-radius: 18px;
    padding: 28px;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 0 16px rgba(0,255,255,0.12);
    transition: .25s;
}

.fx-card:hover {
    box-shadow: 0 0 25px rgba(0,255,255,0.25);
}

.fx-divider {
    height: 1px;
    background: rgba(0,255,255,0.25);
    margin: 15px 0;
}

.fx-label {
    font-size: 15px;
    color: #91a7b5;
    margin-bottom: 6px;
}

.fx-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.fx-tag {
    background: #6c2cff;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
}

.fx-plan-tag {
    background: rgba(0,255,255,0.08);
    border-radius: 10px;
    padding: 7px 15px;
    color: #00eaff;
    font-size: 14px;
    display: inline-block;
    margin-top: 18px;
}

.fx-btn {
    background: #6c2cff;
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 20px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
}

.fx-btn:hover {
    background: #8a55ff;
}

/* -----------------------------------------------------------
   CUSTOM NEON SCROLLBAR
------------------------------------------------------------ */

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0f18;
}
::-webkit-scrollbar-thumb {
    background: #00eaff;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00c6dd;
}
/* -----------------------------------------------------------
   NEON TABLE
------------------------------------------------------------ */

.fx-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.fx-table thead tr {
    background: rgba(0,255,255,0.15);
}

.fx-table th {
    padding: 12px;
    text-align: left;
    font-size: 15px;
    color: #00eaff;
}

.fx-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,255,255,0.08);
    font-size: 14px;
}

.fx-table tr:hover {
    background: rgba(0,255,255,0.08);
}

.raw-cell pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    color: #9bc4ff;
    line-height: 1.3em;
}

/* Scrollbar Fix */
.fx-card {
    overflow-x: auto;
}
/* -----------------------------------------------------------
   BUY / SELL COLOR TAGS
------------------------------------------------------------ */

.dir-buy {
    color: #21f59b;
    font-weight: 600;
}

.dir-sell {
    color: #ff4e4e;
    font-weight: 600;
}

.dir-neutral {
    color: #8fa6b8;
}

/* -----------------------------------------------------------
   PAGINATION
------------------------------------------------------------ */

.fx-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 22px;
}

.fx-pagination button {
    background: rgba(0,255,255,0.15);
    border: 1px solid rgba(0,255,255,0.35);
    color: #00eaff;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: .2s;
}

.fx-pagination button:hover:not([disabled]) {
    background: rgba(0,255,255,0.35);
}

.fx-pagination button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.fx-pagination span {
    color: #fff;
    font-weight: 600;
}
/* -----------------------------------------------------------
   Direction Colors (FX-HUNTER NEON MAP)
------------------------------------------------------------ */

/* Buy = Green */
.dir-buy {
    color: #21f59b;
    font-weight: 600;
}

/* Sell = Red */
.dir-sell {
    color: #ff4e4e;
    font-weight: 600;
}

/* Close Long = Neon Magenta */
.dir-closelong {
    color: #ff40ff;
    font-weight: 600;
    text-shadow: 0 0 8px #ff40ff90;
}

/* Close Short = Neon Orange */
.dir-closeshort {
    color: #ff9b32;
    font-weight: 600;
    text-shadow: 0 0 8px #ff9b3290;
}

/* News Long = Neon Blue */
.dir-news-long {
    color: #2cc6ff;
    font-weight: 600;
    text-shadow: 0 0 8px #2cc6ff90;
}

/* News Short = Neon Yellow */
.dir-news-short {
    color: #ffe14a;
    font-weight: 600;
    text-shadow: 0 0 8px #ffe14a90;
}

/* Default Neutral */
.dir-neutral {
    color: #8fa6b8;
}
/* GRID */
.dashboard-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* LICENSE CARD */
.neon-card {
    transition: 0.35s ease;
    border-radius: 20px;
    position: relative;
}

.neon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(0,255,255,0.45);
}

/* ACTIVE CARD */
.card-active {
    border: 1px solid rgba(0,255,180,0.4);
    box-shadow: 0 0 15px rgba(0,255,150,0.3);
}

/* INACTIVE CARD */
.card-inactive {
    opacity: 0.45;
    border: 1px solid rgba(120,120,120,0.25);
}

/* PULSE BORDER FOR ACTIVE */
.pulse-border {
    animation: pulseShadow 2.2s infinite ease-in-out;
}
@keyframes pulseShadow {
    0%   { box-shadow: 0 0 8px rgba(0,255,180,0.3); }
    50%  { box-shadow: 0 0 30px rgba(0,255,180,0.8); }
    100% { box-shadow: 0 0 8px rgba(0,255,180,0.3); }
}

/* BADGES */
.badge.card-active {
    color: #00ffbf;
}
.badge.card-inactive {
    color: #888;
}

/* PnL Animation Element */
.pnl-animate {
    font-size: 32px;
    font-weight: 700;
    transition: color 0.4s;
}


