:root {
    --bg-dark: #0a0c10;
    --panel-bg: rgba(20, 25, 35, 0.6);
    --panel-border: rgba(6, 182, 212, 0.2);
    --cyan: #06b6d4;
    --blue: #3b82f6;
    --text-main: #fff;
    --text-dim: #8b9bb4;
    --green: #10b981;
    --red: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg-dark); color: var(--text-main); overflow-x: hidden; }

/* Neon Ambient */
.ambient-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.3; }
.glow-orb.blue { width: 400px; height: 400px; background: var(--blue); top: -10%; left: -10%; }
.glow-orb.cyan { width: 300px; height: 300px; background: var(--cyan); bottom: 10%; right: -5%; }

/* Glassmorphism */
.glass-panel { background: var(--panel-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.glass-inner { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 15px; }

/* Nav */
.top-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 30px; margin: 15px; border-radius: 12px; }
.logo-box { display: flex; align-items: center; gap: 15px; }
.logo { height: 45px; }
.badge { background: rgba(6,182,212,0.1); color: var(--cyan); border: 1px solid var(--cyan); padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.btn-glow { background: linear-gradient(90deg, var(--blue), var(--cyan)); color: #fff; text-decoration: none; padding: 10px 20px; font-weight: 700; font-size: 12px; border-radius: 6px; box-shadow: 0 0 15px rgba(6,182,212,0.4); }

/* Main */
.app-container { max-width: 1000px; margin: 0 auto; padding: 20px; }

/* Upload */
.upload-zone { text-align: center; padding: 60px 20px; border-radius: 12px; border: 2px dashed var(--cyan); cursor: pointer; transition: 0.3s; margin-top: 50px; }
.upload-zone:hover { background: rgba(6,182,212,0.05); box-shadow: inset 0 0 20px rgba(6,182,212,0.2); }
.upload-zone svg { width: 64px; color: var(--cyan); filter: drop-shadow(0 0 8px rgba(6,182,212,0.6)); margin-bottom: 15px; }
.upload-zone h2 { letter-spacing: 1px; margin-bottom: 5px; }
.btn-outline { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); padding: 10px 25px; border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.2s;}
.btn-outline:hover { background: rgba(6,182,212,0.1); }
.btn-outline:disabled { border-color: var(--text-dim); color: var(--text-dim); cursor: not-allowed; }

/* Dashboard Plugin Layout */
.dashboard { padding: 20px; border-radius: 12px; }

/* Playlist Header Baru */
.plugin-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 20px; }
.track-playlist { display: flex; gap: 8px; flex-grow: 1; overflow-x: auto; margin-right: 15px; }
.track-tab { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 4px; font-size: 11px; color: var(--text-dim); cursor: pointer; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: 0.2s; }
.track-tab:hover { background: rgba(255,255,255,0.1); }
.track-tab.active { background: rgba(6,182,212,0.15); border-color: var(--cyan); color: var(--cyan); font-weight: 700; box-shadow: inset 0 0 10px rgba(6,182,212,0.2); }
.header-controls { display: flex; gap: 10px; align-items: center; }
.btn-sm { padding: 8px 12px; font-size: 10px; font-weight: 700; border-radius: 4px; cursor: pointer; }
.btn-danger { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--red); color: var(--red); transition: 0.2s; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-play { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-weight: 700; transition: 0.2s; }
.btn-play:hover { background: rgba(6,182,212,0.2); border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 10px rgba(6,182,212,0.4); }

.plugin-layout { display: flex; gap: 20px; }

/* Kolom Kiri */
.left-col { width: 300px; background: rgba(0,0,0,0.5); border-radius: 8px; padding: 20px; border: 1px solid rgba(255,255,255,0.05); }
.meter-wrapper { display: flex; gap: 20px; }
.lufs-meter-container { display: flex; gap: 10px; height: 350px; }
.lufs-scale { display: flex; flex-direction: column; justify-content: space-between; font-family: 'Roboto Mono', monospace; font-size: 10px; color: var(--text-dim); }
.lufs-meter { width: 24px; background: #000; border-radius: 4px; border: 1px solid #333; position: relative; overflow: hidden; }
.lufs-meter::after { content: ''; position: absolute; top:0; left:0; right:0; bottom:0; background: repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(0,0,0,0.5) 4px, rgba(0,0,0,0.5) 6px); pointer-events: none; z-index: 2; }
.lufs-fill { width: 100%; height: 0%; position: absolute; bottom: 0; background: linear-gradient(0deg, var(--cyan) 0%, var(--blue) 50%, var(--green) 75%, var(--red) 100%); transition: height 0.1s; z-index: 1; box-shadow: 0 0 15px var(--cyan); }

/* Metrik Angka */
.metrics-list { display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }
.metric-item { text-align: right; background: rgba(255,255,255,0.02); padding: 10px; border-radius: 6px; }
.m-val { font-family: 'Roboto Mono', monospace; font-size: 26px; font-weight: 700; line-height: 1; margin-bottom: 5px; }
.m-lbl { font-size: 9px; font-weight: 800; color: var(--text-dim); letter-spacing: 1px; }

.neon-cyan { color: #fff; text-shadow: 0 0 10px var(--cyan); }
.neon-blue { color: #fff; text-shadow: 0 0 10px var(--blue); }
.val-warn { color: var(--red) !important; text-shadow: 0 0 10px var(--red) !important; }

/* Kolom Kanan */
.right-col { flex-grow: 1; display: flex; flex-direction: column; gap: 20px; }
.graph-area { flex-grow: 1; display: flex; flex-direction: column; }
.graph-header { font-size: 10px; font-weight: 800; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 10px; }
.waveform { flex-grow: 1; width: 100%; height: 180px; }

/* DSP Section */
.dsp-title { font-size: 10px; font-weight: 800; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 10px; text-align: center; }
.dsp-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.btn-dsp { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); padding: 12px; border-radius: 6px; cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.btn-dsp span:first-child { font-size: 10px; font-weight: 800; color: var(--text-dim); }
.btn-dsp .val { font-family: 'Roboto Mono', monospace; font-size: 18px; color: #fff; font-weight: 700; }
.btn-dsp.active { background: rgba(6,182,212,0.1); border-color: var(--cyan); box-shadow: inset 0 0 15px rgba(6,182,212,0.2); }
.btn-dsp.active .val, .btn-dsp.active span:first-child { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.btn-dsp.safe .val { color: var(--green); font-size: 14px; }
.btn-dsp.penalty .val { color: var(--red); }
.dsp-status { text-align: center; font-family: 'Roboto Mono', monospace; font-size: 11px; color: var(--cyan); background: rgba(0,0,0,0.5); padding: 8px; border-radius: 4px; }
