* {
    font-family: 'Segoe UI', 'Poppins', system-ui, sans-serif;
}
body {
    background: linear-gradient(145deg, #f4f9ff 0%, #e2eafc 100%);
    padding: 1.5rem 0.5rem;
}
.worksheet-card {
    border-radius: 2rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
    border: none;
    overflow: hidden;
    margin-bottom: 1.8rem;
    background: #ffffffdd;
    transition: all 0.2s;
}
.card-header-custom {
    background: linear-gradient(135deg, #1e2f5e, #0f1c3a);
    color: white;
    padding: 1rem 1.8rem;
}
.btn-gradient {
    background: linear-gradient(95deg, #1e3c5c, #0f2b3d);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 40px;
    padding: 10px 28px;
    transition: 0.2s;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
    background: #0f2b3d;
    color: white;
}
.question-item {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9edf2;
    transition: 0.1s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.question-number {
    font-weight: 800;
    background: #1e2f5e;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    margin-right: 12px;
}
.badge-type {
    font-size: 0.7rem;
    background: #eef2ff;
    color: #1e3a8a;
    padding: 4px 12px;
    border-radius: 30px;
}
.reason-textarea, .essay-textarea {
    background: #f9fafb;
    border-radius: 20px;
}
.options-mc label {
    margin-right: 1rem;
    font-weight: 500;
}
.btn-outline-wa {
    border: 2px solid #25D366;
    color: #25D366;
    border-radius: 40px;
    background: white;
}
.btn-outline-wa:hover {
    background: #25D366;
    color: white;
}
.dice-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    background: #f1f5f9;
    padding: 12px;
    border-radius: 20px;
    margin-top: 12px;
}
.dice-cell {
    background: white;
    text-align: center;
    padding: 6px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* Style untuk tabel MathJax */
.MJXc-display {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 1rem 0;
}
.mjx-chtml {
    font-size: 1rem;
}
table {
    margin: 0 auto;
}
th, td {
    padding: 6px 10px;
    text-align: center;
}
@media (max-width: 640px) {
    .question-item { padding: 1rem; }
    .dice-cell { font-size: 0.7rem; padding: 4px; }
    .MJXc-display {
        font-size: 0.85rem;
    }
}