/* assets/css/custom.css - Modern Trading Dashboard Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0d14;
    --bg-secondary: #0f172a;
    --bg-card: #141e33;
    --bg-card-hover: #1a2744;
    --border-subtle: #1e293b;
    --border-focus: #38bdf8;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --win-color: #10b981;
    --win-bg: rgba(16, 185, 129, 0.12);
    --loss-color: #f43f5e;
    --loss-bg: rgba(244, 63, 94, 0.12);
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.25);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.font-mono-numbers {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
}

/* Glassmorphism Cards */
.glass-card {
    background: linear-gradient(135deg, rgba(20, 30, 51, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

/* Win / Loss badges */
.badge-win {
    background: var(--win-bg);
    color: var(--win-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
}

.badge-loss {
    background: var(--loss-bg);
    color: var(--loss-color);
    border: 1px solid rgba(244, 63, 94, 0.3);
    font-weight: 600;
}

/* Progress bar styling */
.progress-bar-glow {
    box-shadow: 0 0 12px currentColor;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0b0f19;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Table styling */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.custom-table th {
    background-color: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.custom-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 0.875rem;
}
.custom-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Mobile Sidebar transitions */
.sidebar-transition {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modals */
.modal-backdrop-custom {
    background: rgba(5, 8, 15, 0.75);
    backdrop-filter: blur(8px);
}

/* Form input glow */
.custom-input {
    background-color: #0f172a;
    border: 1px solid #334155;
    color: #f8fafc;
    border-radius: 0.65rem;
    transition: all 0.2s ease;
}
.custom-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    outline: none;
}

/* Number highlights */
.val-positive {
    color: #10b981;
}
.val-negative {
    color: #f43f5e;
}
.val-neutral {
    color: #94a3b8;
}

/* Print Styles */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    .no-print {
        display: none !important;
    }
    .glass-card {
        background: #ffffff !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
        color: #000000 !important;
    }
    .custom-table td, .custom-table th {
        color: #000000 !important;
        border-color: #e2e8f0 !important;
    }
}
