:root {
    --primary: #0d47a1;
    --primary-dark: #002171;
    --accent: #ff6f00;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-800: #424242;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --radius-md: 12px;
    --radius-xl: 20px;
}
* { margin:0; padding:0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e8eaf6 0%, #f5f5f5 50%, #e3f2fd 100%);
    min-height: 100vh;
    color: #212121;
    line-height: 1.5;
}
/* Landing Page */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.landing-header { margin-bottom: 40px; }
.logo-icon { font-size: 4rem; animation: pulse 2s infinite; }
@keyframes pulse {
    0%,100%{transform:scale(1);}
    50%{transform:scale(1.08);}
}
.landing-header h1 { font-size: 2rem; font-weight: 800; color: var(--primary); }
.landing-header h2 { font-size: 1.3rem; color: var(--primary-dark); }
.tagline { font-style: italic; color: #616161; }
.landing-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.landing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 30px 20px;
    text-decoration: none;
    color: #212121;
    width: 280px;
    box-shadow: var(--shadow-md);
    transition: 0.3s;
}
.landing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card-icon { font-size: 3rem; }
.btn-landing {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    border-radius: 40px;
    background: var(--primary);
    color: white;
    font-weight: 600;
}
.card-siswa .btn-landing { background: var(--accent); }
.landing-footer {
    margin-top: 50px;
    font-size: 0.8rem;
    color: #757575;
}

/* Container & Card Umum */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-danger { background: #c62828; color: white; }
.btn-secondary { background: #757575; color: white; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 12px; border-bottom: 1px solid #ddd; text-align: left; }
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
}
label { font-weight: 500; }

/* Responsive */
@media (max-width: 768px) {
    
    th {
    background: white !important;
    color: black !important;
    font-weight: bold !important;
    border-bottom: 1px solid #000;
}
.kelas-title {
    background: #ddd !important;
    color: black !important;
    font-weight: bold !important;
    border: 1px solid #000;
}



    .landing-header h1 { font-size: 1.5rem; }
    .landing-cards { flex-direction: column; align-items: center; }
    .landing-card { width: 90%; }
    table, thead, tbody, th, td, tr { display: block; }
    th { display: none; }
    td { display: flex; justify-content: space-between; align-items: center; padding: 8px; border-bottom: 1px solid #eee; }
    td:before { content: attr(data-label); font-weight: bold; width: 40%; }
    .card { padding: 15px; }
}

/* Soal & Ujian */
.soal-card { margin-bottom: 20px; }
.nav-buttons { display: flex; gap: 10px; margin-top: 20px; justify-content: space-between; }
.preview-img { max-width: 100%; max-height: 150px; margin: 5px 0; }
.warning-badge { background: #ffeb3b; color: #b71c1c; padding: 5px 10px; border-radius: 20px; font-size: 12px; }

/* Perbaikan tampilan radio button pada soal ujian */
.soal-card label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    line-height: 1.4;
}
.soal-card input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}
.soal-card .opsi-teks {
    flex: 1;
}
.soal-card .preview-img {
    display: block;
    margin-top: 8px;
    max-width: 200px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Perbaikan tampilan ujian siswa - rapi dan nyaman */
.ujian-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #0d47a1;
    color: white;
    padding: 12px 16px;
    text-align: center;
    z-index: 1000;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.timer-box {
    background: #002171;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 40px;
    font-family: monospace;
    font-size: 1.1rem;
}
.soal-container {
    margin-top: 80px;
    padding: 16px;
}
.question-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.5;
    background: #f5f7fb;
    padding: 12px;
    border-radius: 16px;
}
.preview-img {
    max-width: 100%;
    border-radius: 12px;
    margin: 10px 0;
    border: 1px solid #e0e0e0;
}
.pg-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 16px;
    transition: 0.2s;
    border: 1px solid #eee;
}
.pg-option:hover {
    background: #eef2ff;
    border-color: #0d47a1;
}
.pg-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #0d47a1;
    cursor: pointer;
}
.pg-option .option-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #1e1e1e;
    cursor: pointer;
}
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}
.btn {
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}
.btn-primary { background: #0d47a1; color: white; }
.btn-secondary { background: #757575; color: white; }
.btn-accent { background: #ff6f00; color: white; }
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #ccc;
    font-family: inherit;
    resize: vertical;
    font-size: 0.95rem;
}
@media (max-width: 640px) {
    .ujian-header { flex-direction: column; gap: 6px; padding: 8px; }
    .soal-container { margin-top: 100px; }
    .pg-option { gap: 8px; padding: 6px 10px; }
    .pg-option input[type="radio"] { width: 18px; height: 18px; }
    .btn { padding: 6px 14px; font-size: 0.8rem; }
}
.btn-action-warning { background: #ea580c; color: white; }
