body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAF9;
    color: #0F172A;
    background-image: radial-gradient(#CBD5E1 0.75px, transparent 0.75px);
    background-size: 20px 20px;
}

.font-serif-title {
    font-family: 'Newsreader', serif;
}

.font-mono-code {
    font-family: 'JetBrains Mono', monospace;
}

/* Glass & Card Aesthetics */
.mined-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mined-card:hover {
    box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.08);
}

/* Kunci scroll halaman latar saat modal terbuka (dikelola app.js) */
body.modal-open {
    overflow: hidden;
}

/* Backdrop modal: scroll internal + cegah scroll-chaining ke halaman */
.modal-backdrop {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Highlight styling for target word */
.highlight-target {
    background-color: #FEF08A;
    color: #713F12;
    padding: 0.1em 0.35em;
    border-radius: 0.25em;
    font-weight: 700;
}

.cloze-badge {
    background-color: #E0E7FF;
    color: #3730A3;
    padding: 0.15em 0.4em;
    border-radius: 0.25em;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    border: 1px dashed #6366F1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #94A3B8;
    border-radius: 3px;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.99); }
}
.loading-pulse {
    animation: pulse-subtle 1.8s infinite ease-in-out;
}
