/* GLOBAL VARIABLES - DARK ELITE MODE */
:root {
    --bg-body: #09090b; /* Hitam pekat ala terminal institusi */
    --bg-card: #121214; /* Abu-abu super gelap buat efek ngambang */
    --primary-purple: #c084fc; 
    --dark-purple: #a855f7; /* Ungu neon */
    --text-dark: #f8fafc; /* Putih terang buat angka (dulu gelap) */
    --text-muted: #8b9bb4; /* Abu-abu kebiruan buat label */
    --text-cyan: #c875ff; /* Cyan neon buat highlight edge */
    --color-green: #4ade80; /* Hijau profit terang */
    --color-red: #f87171; /* Merah loss (agak soft biar kaga sakit mata) */
    --color-yellow: #facc15;
    
    /* Efek Kaca Mahala (Glassmorphism) */
    --shadow-elite: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 15px rgba(168, 85, 247, 0.05); 
    --border-soft: 1px solid rgba(255, 255, 255, 0.06); 
}
html {
    background-color: #09090b !important;
}
/* Kalo body HTML lu belum ada stylingnya, tambahin ini biar background luar ikutan gelap */
body {
    background-color: var(--bg-body);
    color: var(--text-dark);
}

/* LAYOUT GRIDS */
.dash-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 40px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 40px; }
.grid-1-1-15 { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 20px; margin-bottom: 40px; }
.grid-15-1 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-bottom: 40px; }
.grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }

/* HEADERS */
.section-header { margin-bottom: 15px; display: flex; align-items: baseline; justify-content: space-between; }
.section-title { color: var(--primary-purple); font-weight: 900; font-size: 11px; letter-spacing: 3px; font-family: monospace; text-shadow: 0 0 10px rgba(192, 132, 252, 0.2); }
.section-subtitle { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: 1px; }

/* TYPOGRAPHY COLORS */
.text-muted { color: var(--text-muted); }
.text-green { color: var(--color-green); text-shadow: 0 0 15px rgba(74, 222, 128, 0.2); }
.text-red { color: var(--color-red); text-shadow: 0 0 15px rgba(248, 113, 113, 0.2); }
.text-purple { color: var(--primary-purple); text-shadow: 0 0 15px rgba(192, 132, 252, 0.2); }
.text-cyan { color: var(--text-cyan); text-shadow: 0 0 15px rgba(34, 211, 238, 0.2); }
.mt-1 { margin-top: 5px; margin-bottom: 0; }

/* MAC UI THUMBNAILS */
.mac-thumb-header-mini { display: flex; gap: 6px; margin-bottom: 15px; align-items: center; }
.mac-dot { width: 10px; height: 10px; border-radius: 50%; }
.bg-red { background: rgba(248, 113, 113, 0.8); }
.bg-yellow { background: rgba(250, 204, 21, 0.8); }
.bg-purple { background: rgba(192, 132, 252, 0.8); }
.mac-title { font-size: 9px; font-weight: 900; letter-spacing: 2px; margin-left: 10px; font-family: monospace; }

/* CARDS & CONTAINERS */
.analytics-stat-card { 
    margin-left: 10px;
    background: var(--bg-card); 
    border: var(--border-soft); 
    border-radius: 12px; 
    padding: 20px; 
    box-shadow: var(--shadow-elite); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative;
    overflow: hidden;
}

/* Efek nyala tipis di atas kartu pas di-hover */
.analytics-stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary-purple), transparent); opacity: 0; transition: opacity 0.3s ease;
}
.analytics-stat-card:hover::before { opacity: 1; }
.analytics-stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -10px rgba(0,0,0,1), 0 0 20px rgba(168, 85, 247, 0.1); }

.analytics-stat-card h2 { margin: 10px 0 0 0; font-size: 28px; color: var(--text-dark); font-family: monospace; }
.analytics-stat-card small { color: var(--text-muted); font-weight: 700; letter-spacing: 1px; font-size: 10px; }

.chart-glass-wrapper { 
    background: var(--bg-card); 
    border: var(--border-soft); 
    border-radius: 16px; 
    padding: 20px; 
    box-shadow: var(--shadow-elite); 
    display: flex; 
    flex-direction: column; 
}
.chart-container-300 { height: 300px; position: relative; flex: 1; }
.chart-container-250 { height: 250px; position: relative; flex: 1; }
.chart-container-240 { height: 240px; position: relative; flex: 1; }
.chart-container-220 { height: 220px; position: relative; flex: 1; }

/* HOLD DURATION CARDS */
.hold-duration-container { display: flex; flex-direction: column; justify-content: center; height: 100%; gap: 20px; padding: 0 20px; }
.hold-card { padding: 15px; border-radius: 8px; border-left: 4px solid; background: rgba(255, 255, 255, 0.02); }
.hold-card h3 { color: var(--text-dark); margin: 5px 0 0 0; font-family: monospace; }
.card-green { border-color: var(--color-green); box-shadow: inset 20px 0 30px -20px rgba(74, 222, 128, 0.1); }
.card-green small { color: var(--color-green); font-weight: 900; letter-spacing: 1px; }
.card-green h3 { color: var(--color-green) !important; text-shadow: 0 0 10px rgba(74, 222, 128, 0.3); }
.card-red { border-color: var(--color-red); box-shadow: inset 20px 0 30px -20px rgba(248, 113, 113, 0.1); }
.card-red small { color: var(--color-red); font-weight: 900; letter-spacing: 1px; }
.card-red h3 { color: var(--color-red) !important; text-shadow: 0 0 10px rgba(248, 113, 113, 0.3); }

/* TAB NAVIGATION (SMOOTH ANIMATION & DARK BORDER) */
.analytics-tab-nav { display: flex; gap: 15px; margin-bottom: 30px; border-bottom: 2px solid rgba(255, 255, 255, 0.05); padding-bottom: 10px; }
.tab-btn { background: none;margin: 15px; border: none; padding: 10px 20px; font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--text-muted); cursor: pointer; border-radius: 8px; transition: all 0.3s ease; position: relative; }
.tab-btn::after { content: ''; position: absolute; bottom: -12px; left: 0; width: 0%; height: 3px; background-color: var(--dark-purple); transition: width 0.3s ease; border-radius: 3px 3px 0 0; box-shadow: 0 -2px 10px rgba(168, 85, 247, 0.5); }
.tab-btn:hover { color: var(--text-dark); background: rgba(168, 85, 247, 0.1); }
.tab-btn.active { color: var(--text-dark); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); }
.tab-btn.active::after { width: 100%; }

.tab-content { display: none; animation: fadeSlideUp 0.5s ease forwards; }
.tab-content.active { display: block; }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }