﻿/* =========================================================
   FusionWatch — style.css (GLOBAL COMPONENT STYLES)
   app.css stays: tokens, html/body, background, particles, scrollbars
   ========================================================= */


/* =========================================================
   1) GLOBAL GLASS UTILITIES
   ========================================================= */

.glass-divider {
    height: 2px;
    background: linear-gradient( 90deg, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.22), rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0) );
    opacity: 0.9;
}

.glass-surface {
    position: relative;
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, var(--glass-mid), var(--glass-weak));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-1);
    border-radius: 18px;
    overflow: hidden;
}

    .glass-surface::before {
        content: "";
        position: absolute;
        inset: -2px;
        pointer-events: none;
        background: radial-gradient(900px 420px at 18% 0%, rgba(34,211,238,0.14), transparent 60%), radial-gradient(900px 420px at 82% 12%, rgba(124,58,237,0.14), transparent 60%), radial-gradient(800px 420px at 50% 110%, rgba(96,165,250,0.10), transparent 60%);
        opacity: 0.95;
    }

    .glass-surface::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)), var(--noise);
        opacity: 0.30;
        mix-blend-mode: overlay;
    }

    .glass-surface > * {
        position: relative;
    }

.glass-hover {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

    .glass-hover:hover {
        transform: translateY(-2px);
        border-color: rgba(255,255,255,0.14);
        box-shadow: var(--shadow-2);
    }


/* =========================================================
   2) GLOBAL BUTTONS (used across pages)
   ========================================================= */

.btn-glass {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(245,247,255,0.92);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

    .btn-glass:hover {
        transform: translateY(-1px);
        background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
        border-color: rgba(34,211,238,0.22);
        box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    }


/* =========================================================
   3) GLOBAL CARD BASE (general purpose)
   ========================================================= */

.fw-card {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    color: var(--text);
}

    .fw-card.pad-16 {
        padding: 16px;
    }

    .fw-card.pad-18 {
        padding: 18px;
    }


/* =========================================================
   4) DASHBOARD / MARKET OVERVIEW GLOBALS
   (Use these classes anywhere to match HomeDashBoard look)
   ========================================================= */

.market-one {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 55px rgba(0,0,0,0.42);
    color: var(--text);
    position: relative;
    overflow: hidden;
}

    .market-one::before {
        content: "";
        position: absolute;
        inset: -1px;
        pointer-events: none;
        background: radial-gradient(900px 360px at 18% 0%, rgba(34,211,238,0.14), transparent 60%), radial-gradient(900px 360px at 82% 12%, rgba(124,58,237,0.14), transparent 60%), radial-gradient(800px 380px at 50% 100%, rgba(96,165,250,0.10), transparent 60%);
        opacity: 0.9;
    }

    .market-one > * {
        position: relative;
    }

/* KPI tiles inside market widgets */
/* =========================================================
   2) KPI CARDS
   ========================================================= */

.kpi {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 14px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.032));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
    position: relative;
    overflow: hidden;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

    .kpi::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
        opacity: 0.22;
    }

    .kpi:hover {
        transform: translateY(-2px);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.040));
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 18px 55px rgba(0, 0, 0, 0.36);
    }

.kpi-label {
    font-size: 0.7rem;
    color: var(--muted);
    margin-bottom: 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kpi-value {
    font-size: 1.45rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: rgba(245, 247, 255, 0.96);
}

.kpi-sub {
    font-size: 0.86rem;
    color: var(--muted);
    margin-top: 8px;
}

/* Section blocks inside dashboards */
.section {
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 14px;
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}


/* =========================================================
   5) GLOBAL TABLE WRAPPER (used in Info + anywhere)
   ========================================================= */

.fw-table-wrap {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.10);
    border-radius: 16px;
    overflow: hidden;
}

.fw-table {
    width: 100%;
    border-collapse: collapse;
}

    .fw-table thead th {
        text-align: left;
        font-size: 12px;
        color: rgba(245,247,255,0.65);
        padding: 12px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.10);
        background: rgba(255,255,255,0.03);
    }

    .fw-table td {
        padding: 12px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        vertical-align: top;
    }

    .fw-table tbody tr:hover td {
        background: rgba(255,255,255,0.03);
    }


/* =========================================================
   6) GLOBAL LIST ITEMS (referrals, clickable rows)
   ========================================================= */

.fw-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

    .fw-link-item:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,0.06);
        border-color: rgba(34,211,238,0.22);
        box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    }


/* =========================================================
   7) GLOBAL PILLS / BADGES
   ========================================================= */

.fw-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: rgba(245,247,255,0.85);
    font-weight: 800;
    font-size: 12px;
}

.fw-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: rgba(245,247,255,0.86);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.02em;
}

/* Tabs - Glass/Gradient Look */
.nav-tabs {
    border-bottom: none;
    margin-bottom: 18px;
    background: none;
}

    .nav-tabs .nav-item {
        margin-right: 8px;
    }

    .nav-tabs .nav-link {
        border-radius: 5px;
        border: 1px solid var(--glass-edge-soft);
        background: linear-gradient(180deg, var(--glass-mid), var(--glass-weak));
        color: var(--text) !important;
        padding: 8px 28px 8px 20px;
        font-weight: 600;
        transition: background 140ms, border-color 140ms, color 140ms, box-shadow 140ms;
        box-shadow: 0 4px 18px rgba(0,0,0,0.18);
        position: relative;
        z-index: 1;
    }

        .nav-tabs .nav-link:not(.active):hover {
            background: var(--glass-hover);
            border-color: var(--glass-edge);
            color: var(--accent3) !important;
        }

        .nav-tabs .nav-link.active {
            background: linear-gradient(90deg, rgba(34,211,238,0.18), rgba(124,58,237,0.18));
            border-color: rgba(255,255,255,0.10);
            color: var(--accent3) !important;
            box-shadow: 0 8px 30px rgba(34,211,238,0.10), 0 2px 8px rgba(124,58,237,0.10);
            font-weight: 700;
        }

@media (max-width: 600px) {
    .nav-tabs .nav-link {
        padding: 8px 14px;
        font-size: 15px;
    }
}

/* =========================================================
   INPUT FIELD NUMBER (Glass Style)
   ========================================================= */

.input-field-number-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-field-number {
    width: 100%;
    padding: 12px 38px 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.032));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    text-align: right;
    transition: all 160ms ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
    position: relative;
    z-index: 1;
}

    .input-field-number::placeholder {
        color: rgba(245, 247, 255, 0.45);
        text-align: right;
    }

    .input-field-number:hover {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.040));
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 18px 55px rgba(0, 0, 0, 0.36);
    }

    .input-field-number:focus, 
    .input-field-number:focus-visible {
        outline: none !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.040)) !important;
        border-color: rgba(34, 211, 238, 0.24) !important;
        box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.24), 0 18px 55px rgba(0, 0, 0, 0.36) !important;
    }

    .input-field-number:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.input-clear-icon {
    z-index: 2;
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: rgba(245, 247, 255, 0.50);
    font-size: 14px;
    transition: color 140ms ease;
    pointer-events: auto;
    top: 50%;
    transform: translateY(-50%);
}

    .input-clear-icon:hover {
        color: rgba(245, 247, 255, 0.85);
    }

/* =========================================================
   YIELD CALCULATOR (Bonds Card)
   ========================================================= */

.yield-calculator-card {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    color: var(--text);
    position: relative;
    overflow: hidden;
}

    .yield-calculator-card::before {
        content: "";
        position: absolute;
        inset: -1px;
        pointer-events: none;
        background: radial-gradient(900px 360px at 18% 0%, rgba(34, 211, 238, 0.14), transparent 60%), radial-gradient(900px 360px at 82% 12%, rgba(124, 58, 237, 0.14), transparent 60%), radial-gradient(800px 380px at 50% 100%, rgba(96, 165, 250, 0.10), transparent 60%);
        opacity: 0.9;
    }

    .yield-calculator-card > * {
        position: relative;
    }

.yield-calculator-header {
    padding: 18px 18px 14px;
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.08);*/
}

    .yield-calculator-header h4 {
        margin: 0;
        font-size: 18px;
        font-weight: 650;
        letter-spacing: -0.01em;
        color: rgba(245, 247, 255, 0.96);
    }

.yield-calculator-body {
    padding: 18px;
    font-weight: 100;
}

.yield-calculator-input-group {
    margin-bottom: 20px;
}

    .yield-calculator-input-group:last-child {
        margin-bottom: 0;
    }

.yield-calculator-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(245, 247, 255, 0.75);
    letter-spacing: 0.01em;
    margin-bottom: 10px;
    display: block;
}

.yield-calculator-input-wrapper {
    margin-bottom: 12px;
}

.yield-calculator-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    padding: 16px 18px;
    /*border-top: 1px solid rgba(255, 255, 255, 0.08);*/
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.yield-calculator-footer-item {
    text-align: center;
    padding: 0 8px;
}

    .yield-calculator-footer-item:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

.yield-calculator-footer-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(245, 247, 255, 0.65);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.yield-calculator-footer-value {
    font-size: 16px;
    font-weight: 700;
    color: rgba(245, 247, 255, 0.92);
    white-space: nowrap;
    letter-spacing: -0.01em;
}
