/* ===== ROOT VARIABLES ===== */
:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --cyan-600: #0891b2;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --indigo-600: #4f46e5;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --pink-600: #db2777;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --yellow-300: #fde047;
    --yellow-500: #eab308;
    --orange-500: #f97316;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--slate-50), var(--white), var(--slate-100));
    color: var(--slate-800);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.logo-text h1 {
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--emerald-600), var(--teal-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--slate-500);
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: all 0.2s;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.nav-link.active {
    background: linear-gradient(to right, var(--emerald-500), var(--teal-600));
    color: white;
}

.nav-link.active:hover {
    opacity: 0.9;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--slate-200);
}

.nav-user-info {
    text-align: right;
}

.nav-user-info .name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-800);
}

.nav-user-info .role {
    font-size: 0.7rem;
    color: var(--slate-500);
    text-transform: capitalize;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald-400), var(--teal-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ===== MAIN CONTENT ===== */
.main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--emerald-500), var(--teal-500), var(--cyan-600));
    padding: 3rem;
    color: white;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h2 span {
    color: var(--yellow-300);
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(to right, var(--emerald-500), var(--teal-600));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-white {
    background: white;
    color: var(--emerald-600);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background: var(--slate-50);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border-color: var(--slate-300);
    color: var(--slate-700);
}

.btn-outline:hover {
    background: var(--slate-50);
    border-color: var(--slate-400);
}

.btn-outline-white {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: var(--red-500);
    color: white;
}

.btn-danger:hover {
    background: var(--red-600);
}

.btn-warning {
    background: var(--orange-500);
    color: white;
}

.btn-warning:hover {
    opacity: 0.9;
}

.btn-blue {
    background: linear-gradient(to right, var(--blue-500), var(--indigo-600));
    color: white;
}

.btn-blue:hover {
    opacity: 0.9;
}

.btn-purple {
    background: linear-gradient(to right, var(--purple-500), var(--pink-600));
    color: white;
}

.btn-purple:hover {
    opacity: 0.9;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--slate-100);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--slate-100);
    background: var(--slate-50);
}

/* ===== STAT CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
}

.stat-icon.emerald {
    background: var(--emerald-100);
    color: var(--emerald-600);
}

.stat-icon.blue {
    background: #dbeafe;
    color: var(--blue-600);
}

.stat-icon.purple {
    background: #f3e8ff;
    color: var(--purple-600);
}

.stat-icon.orange {
    background: #ffedd5;
    color: var(--orange-500);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--emerald-600);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* ===== FEATURE CARDS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    cursor: pointer;
    animation: fadeInUp 0.6s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
}

.feature-icon.green {
    background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
}

.feature-icon.blue {
    background: linear-gradient(135deg, var(--blue-500), var(--indigo-600));
}

.feature-icon.purple {
    background: linear-gradient(135deg, var(--purple-500), var(--pink-600));
}

.feature-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.feature-card:hover h4 {
    color: var(--emerald-600);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--slate-500);
    flex: 1;
    margin-bottom: 1rem;
}

/* ===== SECTION ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-800);
}

/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.content-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.content-card-header {
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.content-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.content-card-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.content-card-info p {
    font-size: 0.8rem;
    color: var(--slate-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card-meta {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--slate-400);
    border-top: 1px solid var(--slate-100);
}

.content-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.content-card-actions {
    padding: 0.75rem 1.25rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--slate-100);
    background: var(--slate-50);
}

/* ===== FORMS ===== */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: var(--red-500);
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--slate-800);
    background: white;
    transition: all 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-control::placeholder {
    color: var(--slate-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-200);
}

/* ===== SOAL FORM ===== */
.soal-container {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--slate-50);
    position: relative;
    animation: fadeInUp 0.3s ease;
}

.soal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.soal-number {
    font-weight: 700;
    color: var(--emerald-600);
    font-size: 0.95rem;
}

.opsi-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.opsi-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opsi-item label {
    margin-bottom: 0 !important;
    font-weight: 600;
    color: var(--emerald-600);
    min-width: 20px;
}

.opsi-item input[type="text"] {
    flex: 1;
}

.jawaban-group {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jawaban-group label {
    margin-bottom: 0 !important;
}

.jawaban-group select {
    width: auto;
}

/* ===== AUTH PAGES ===== */
.auth-container {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.auth-header {
    background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
    padding: 2rem;
    text-align: center;
    color: white;
}

.auth-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.auth-header p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.auth-footer a {
    color: var(--emerald-600);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== ALERTS ===== */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.3s ease;
}

.alert-success {
    background: var(--emerald-50);
    color: var(--emerald-700);
    border: 1px solid var(--emerald-200);
}

.alert-error {
    background: #fef2f2;
    color: var(--red-600);
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #eff6ff;
    color: var(--blue-600);
    border: 1px solid #bfdbfe;
}

/* ===== QUIZ TAKING ===== */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-progress {
    background: var(--slate-200);
    border-radius: 999px;
    height: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.quiz-progress-bar {
    background: linear-gradient(to right, var(--emerald-500), var(--teal-500));
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.quiz-question {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.quiz-question h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--slate-800);
}

.quiz-question .question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--emerald-100);
    color: var(--emerald-700);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    border-color: var(--emerald-300);
    background: var(--emerald-50);
}

.quiz-option input[type="radio"] {
    accent-color: var(--emerald-600);
    width: 18px;
    height: 18px;
}

.quiz-option.selected {
    border-color: var(--emerald-500);
    background: var(--emerald-50);
}

.quiz-option label {
    cursor: pointer;
    flex: 1;
    font-size: 0.9rem;
}

.quiz-option .option-label {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--slate-600);
    flex-shrink: 0;
}

.quiz-option.selected .option-label {
    background: var(--emerald-500);
    color: white;
}

/* ===== RESULT ===== */
.result-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 2rem auto;
    animation: fadeInUp 0.6s ease;
}

.result-score {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.result-score.excellent {
    background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
}

.result-score.good {
    background: linear-gradient(135deg, var(--blue-500), var(--indigo-600));
}

.result-score.average {
    background: linear-gradient(135deg, var(--yellow-500), var(--orange-500));
}

.result-score.poor {
    background: linear-gradient(135deg, var(--red-500), var(--red-600));
}

.result-score small {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

.result-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.result-detail-item {
    text-align: center;
}

.result-detail-item .number {
    font-size: 1.5rem;
    font-weight: 700;
}

.result-detail-item .label {
    font-size: 0.8rem;
    color: var(--slate-500);
}

.result-detail-item .number.correct {
    color: var(--emerald-600);
}

.result-detail-item .number.wrong {
    color: var(--red-500);
}

/* ===== TABLE ===== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: var(--slate-50);
}

th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--slate-200);
}

td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-700);
}

tr:hover td {
    background: var(--slate-50);
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-emerald {
    background: var(--emerald-100);
    color: var(--emerald-700);
}

.badge-blue {
    background: #dbeafe;
    color: var(--blue-600);
}

.badge-purple {
    background: #f3e8ff;
    color: var(--purple-600);
}

.badge-red {
    background: #fef2f2;
    color: var(--red-600);
}

.badge-orange {
    background: #ffedd5;
    color: #c2410c;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--slate-400);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h4 {
    font-size: 1.125rem;
    color: var(--slate-600);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--slate-200);
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.footer-right span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== MATERI DETAIL ===== */
.materi-content {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    line-height: 1.8;
}

.materi-content h1, .materi-content h2, .materi-content h3 {
    color: var(--slate-800);
    margin: 1.5rem 0 0.75rem;
}

.materi-content p {
    margin-bottom: 1rem;
    color: var(--slate-700);
}

.materi-content ul, .materi-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.file-download {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.file-download .file-icon {
    font-size: 2rem;
}

.file-download .file-info h4 {
    font-size: 0.9rem;
    color: var(--slate-800);
}

.file-download .file-info p {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin: 0;
}

/* ===== HAMBURGER MOBILE ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--slate-600);
    padding: 0.25rem;
}

.mobile-nav {
    display: none;
    background: white;
    border-bottom: 1px solid var(--slate-200);
    padding: 0.75rem 1.5rem;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .nav-link {
    display: flex;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav.active {
        display: block;
    }

    .hero {
        padding: 2rem 1.5rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .opsi-group {
        grid-template-columns: 1fr;
    }

    .nav-user {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .result-details {
        gap: 1rem;
    }

    .header-inner {
        padding: 0 1rem;
    }

    .main {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }