:root {
    --bg-main: #0f172a;
    --bg-panel: rgba(30, 41, 59, 0.7);
    --text-main: #e2e8f0;
    --primary: #06b6d4;
    --primary-hover: #0891b2;
    --secondary: #64748b;
    --danger: #ef4444;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    background-image: radial-gradient(circle at top right, #1e293b, #0f172a);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3 { margin-bottom: 1rem; color: #fff; }
p { line-height: 1.6; margin-bottom: 1rem; }
.glow-text { text-shadow: 0 0 10px rgba(6, 182, 212, 0.5); color: var(--primary); }
.text-center { text-align: center; }

/* Layout Components */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem; background: var(--bg-panel); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); }

#app-container { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }
.view { display: none; animation: fadeIn 0.4s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-panel); border-radius: 12px;
    padding: 2rem; backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Forms & Inputs */
.input-group { margin-bottom: 1.5rem; text-align: left; }
.input-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: #cbd5e1; }
input[type="text"], input[type="password"], textarea {
    width: 100%; padding: 0.8rem; border-radius: 6px;
    background: rgba(15, 23, 42, 0.6); border: 1px solid var(--secondary);
    color: #fff; font-size: 1rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 5px var(--primary); }
.password-wrapper { display: flex; position: relative; }
.btn-icon { position: absolute; right: 10px; top: 10px; background: none; border: none; cursor: pointer; font-size: 1.2rem; }

/* Buttons */
button { padding: 0.8rem 1.5rem; border-radius: 6px; border: none; cursor: pointer; font-weight: bold; transition: all 0.3s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-large { font-size: 1.1rem; padding: 1rem 2rem; }
.mt-2 { margin-top: 1rem; }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.tab-btn { background: transparent; color: var(--secondary); border-bottom: 2px solid transparent; border-radius: 0; }
.tab-btn.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

/* Progress Bar */
.progress-container { width: 100%; background: #334155; border-radius: 8px; height: 10px; margin-bottom: 2rem; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 8px; width: 0%; transition: width 0.3s; }

/* Navigation */
.nav-buttons { display: flex; justify-content: space-between; margin-top: 2rem; }

/* Dashboard Guru */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.filter-bar { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.data-table { width: 100%; border-collapse: collapse; background: rgba(0,0,0,0.2); }
.data-table th, .data-table td { padding: 1rem; border-bottom: 1px solid var(--glass-border); text-align: left; }
.data-table th { color: var(--primary); }

/* Drag and Drop & Simulasi */
.drag-container { display: flex; flex-direction: column; gap: 10px; background: #1e293b; padding: 15px; border-radius: 8px;}
.draggable { padding: 10px; background: var(--primary); color: white; cursor: grab; border-radius: 5px; }

/* Evaluasi */
.soal-card { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--glass-border); }
.opsi-label { display: block; margin: 0.5rem 0; cursor: pointer; padding: 0.5rem; border-radius: 4px; transition: 0.2s;}
.opsi-label:hover { background: rgba(255,255,255,0.05); }

/* Responsive */
@media (max-width: 600px) {
    .dashboard-header { flex-direction: column; gap: 1rem; }
    .nav-buttons { flex-direction: column; gap: 1rem; }
}