:root {
    /* --- ULTRA MODERN PALETTE --- */
    --bg-deep: #030508;
    --bg-subtle: #090c14;
    
    /* Glass Layers */
    --glass-panel: rgba(13, 18, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    
    /* Neon Accents */
    --accent-primary: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-glow: rgba(59, 130, 246, 0.35);
    
    /* Status Colors (Neon Style) */
    --danger: #ff2d55;
    --warning: #ff9f0a;
    --success: #30d158;
    --neutral: #98989d;

    /* Text */
    --text-main: #ffffff;
    --text-muted: #86868b;
    --text-dim: #505055;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    color: var(--text-main);
    min-height: 100vh;
    padding: 24px;
    line-height: 1.6;
    /* Sophisticated Background */
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 60%),
        linear-gradient(180deg, rgba(3, 5, 8, 0) 0%, #030508 100%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm1 1h38v38H1V1z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.app-container {
    max-width: 1680px;
    margin: 0 auto;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- COMPONENT: GLASS PANEL --- */
.panel {
    background: var(--glass-panel);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.panel::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0.5;
}

/* --- HEADER --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 20px 32px;
    position: sticky; top: 20px; z-index: 100;
}

.brand { display: flex; align-items: center; gap: 18px; }

.logo-box {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(139,92,246,0.1));
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #60a5fa;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.brand-info h1 { 
    font-size: 22px; font-weight: 600; letter-spacing: -0.5px; 
    background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-info .subtitle { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-top: 2px; }

.badge-dev {
    background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 2px 8px; border-radius: 6px; font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.5px;
}

.status-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: rgba(48, 209, 88, 0.05); border: 1px solid rgba(48, 209, 88, 0.2);
    color: var(--success); border-radius: 100px;
    font-size: 11px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 1px;
}
.dot-pulse { width: 6px; height: 6px; background: var(--success); border-radius: 50%; box-shadow: 0 0 10px var(--success); animation: pulse 2s infinite; }

/* --- CONTROLS & SIDEBAR --- */
.dashboard-grid {
    display: grid; grid-template-columns: 300px 1fr; gap: 32px; margin-top: 20px;
}

.sidebar { position: sticky; top: 120px; height: fit-content; padding: 24px; }

.filter-title { 
    font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 2px; 
    color: var(--accent-primary); margin-bottom: 24px; font-weight: 700; opacity: 0.8;
}

.input-wrapper { position: relative; margin-bottom: 20px; }
.input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none; transition: color 0.2s;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 14px 12px 42px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-family: var(--font-sans);
    transition: all 0.2s ease;
}
.form-control:focus {
    outline: none; border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.input-wrapper:focus-within .input-icon { color: var(--accent-primary); }

select.form-control { cursor: pointer; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 20px; border-radius: var(--radius-sm);
    font-weight: 500; font-size: 13px; cursor: pointer;
    transition: all 0.2s ease; border: none;
}
.btn-primary {
    background: var(--text-main); color: #000;
    font-weight: 600;
}
.btn-primary:hover {
    background: #e2e2e2; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}
.btn-outline {
    background: transparent; border: 1px solid var(--glass-border); color: var(--text-muted);
}
.btn-outline:hover {
    border-color: var(--text-main); color: var(--text-main); background: rgba(255,255,255,0.05);
}

/* --- HERO INTRO --- */
.hero-intro {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(5, 11, 20, 0) 100%);
    border-left: 2px solid var(--accent-primary);
    padding: 32px;
    display: flex; gap: 24px; align-items: flex-start;
    margin-bottom: 32px;
}
.hero-icon {
    background: rgba(59, 130, 246, 0.1); padding: 16px; border-radius: 12px;
    color: var(--accent-primary); box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}
.hero-content h2 { font-size: 20px; margin-bottom: 10px; color: var(--text-main); font-weight: 500; }
.hero-content p { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 800px; }
.hero-tags { display: flex; gap: 8px; margin-top: 16px; }
.info-pill { 
    font-family: var(--font-mono); font-size: 10px; padding: 6px 10px; 
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
}

/* --- STATS CARDS --- */
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px;
}
.stat-card { 
    padding: 24px; 
    display: flex; flex-direction: column; justify-content: space-between; height: 140px;
    background: linear-gradient(165deg, var(--glass-panel) 0%, rgba(10,10,12,0.6) 100%);
}
.stat-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

.stat-label { 
    font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;
    display: flex; justify-content: space-between; align-items: center;
}
.stat-number { 
    font-size: 36px; font-weight: 400; font-family: var(--font-mono); 
    color: var(--text-main); letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* --- CHART SECTION --- */
.chart-section { padding: 32px; height: 400px; margin-bottom: 32px; position: relative; }
.chart-section::after {
    content: "DATA_VISUALIZATION_MODULE // v2.0";
    position: absolute; top: 20px; right: 32px;
    font-family: var(--font-mono); font-size: 10px; color: var(--glass-border);
}

/* --- FEED LIST --- */
.feed-section-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 24px; border-bottom: 1px solid var(--glass-border); margin-bottom: 24px;
}
.feed-title { 
    font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 12px; 
    color: var(--accent-cyan); text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.pulse-list { display: flex; flex-direction: column; gap: 16px; }

.pulse-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid transparent; border-left: 2px solid var(--text-dim);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
    transition: all 0.2s ease;
    position: relative;
}
.pulse-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--accent-primary);
    transform: translateX(4px);
}

.pulse-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.pulse-title { 
    font-size: 15px; font-weight: 600; color: var(--text-main); margin-right: 16px; 
    line-height: 1.4;
}

.tlp-badge {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 4px 8px; border-radius: 4px; 
    text-transform: uppercase; letter-spacing: 1px; min-width: 60px; text-align: center;
}
.tlp-red { background: rgba(255, 45, 85, 0.15); color: var(--danger); border: 1px solid rgba(255, 45, 85, 0.3); box-shadow: 0 0 10px rgba(255, 45, 85, 0.1); }
.tlp-amber { background: rgba(255, 159, 10, 0.15); color: var(--warning); border: 1px solid rgba(255, 159, 10, 0.3); }
.tlp-green { background: rgba(48, 209, 88, 0.15); color: var(--success); border: 1px solid rgba(48, 209, 88, 0.3); }
.tlp-white { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.2); }

.pulse-meta {
    display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; color: var(--text-muted); margin-bottom: 14px; font-family: var(--font-mono);
}
.meta-icon { display: flex; align-items: center; gap: 8px; }

/* UPDATE: Dikembalikan ke tampilan penuh (tanpa pemotongan baris) */
.pulse-desc { 
    font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; 
    opacity: 0.8;
}

.tag-container { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { 
    font-size: 11px; background: rgba(0,0,0,0.3); padding: 4px 10px; 
    border-radius: 4px; color: var(--accent-primary); font-family: var(--font-mono);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Footer */
.footer { 
    margin-top: 60px; text-align: center; font-size: 11px; color: var(--text-dim); 
    padding-top: 20px; border-top: 1px solid var(--glass-border); font-family: var(--font-mono); letter-spacing: 1px;
}

/* Loading */
.loader { 
    text-align: center; padding: 60px; color: var(--text-muted); 
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.spin { animation: spin 2s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .sidebar { position: relative; top: 0; margin-bottom: 24px; padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
    .filter-title { width: 100%; grid-column: 1 / -1; margin-bottom: 10px; }
    .input-wrapper { margin-bottom: 0; }
}
@media (max-width: 800px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .top-bar { flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-intro { flex-direction: column; }
    body { padding: 12px; }
}
