:root {
    --fc-primary: #4a90e2;
    --fc-secondary: #f5f7fa;
    --fc-dark: #333;
    --fc-light: #fff;
    --fc-correct: #50e3c2;
    --fc-incorrect: #e35050;
    --fc-border-radius: 8px;
    --fc-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.flashcard-app-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--fc-secondary);
    padding: 20px;
    border-radius: var(--fc-border-radius);
    box-shadow: var(--fc-shadow);
    max-width: 600px;
    margin: 2em auto;
}
#flashcard-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}
.fc-button {
    background: var(--fc-light);
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: var(--fc-border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}
.fc-button:hover {
    background: #e9e9e9;
    border-color: #aaa;
}
.fc-button.active {
    background: var(--fc-primary);
    color: var(--fc-light);
    border-color: var(--fc-primary);
}
#flashcard-container {
    min-height: 250px;
    margin-bottom: 20px;
}
#flashcard {
    width: 100%;
    height: 250px;
    position: relative;
    cursor: pointer;
}
.flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    text-align: center;
    padding: 20px;
    background: var(--fc-light);
    box-shadow: var(--fc-shadow);
    border-radius: var(--fc-border-radius);
    color: var(--fc-dark);
    box-sizing: border-box;
}
.flashcard-front { z-index: 2; }
.flashcard-back { display: none; }

#flashcard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#card-counter {
    font-size: 0.9em;
    color: #777;
}
.fc-mode-content { width: 100%; }
#mcq-question, #fill-question { color: #001f3f; }
#mcq-options { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.mcq-option-btn { width: 100%; text-align: left; background: var(--fc-light); border: 1px solid #ccc; padding: 15px; border-radius: 5px; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease; }
.mcq-option-btn.correct { background-color: var(--fc-correct); color: var(--fc-light); border-color: var(--fc-correct); }
.mcq-option-btn.incorrect { background-color: var(--fc-incorrect); color: var(--fc-light); border-color: var(--fc-incorrect); }
.mcq-option-btn:disabled { cursor: not-allowed; }
#mcq-feedback, #fill-feedback, #match-feedback { margin-top: 15px; font-weight: bold; min-height: 24px; }
#mcq-next, #fill-next { margin-top: 15px; }

.fill-input-container { display: flex; gap: 10px; margin-top: 15px; }
#fill-answer { flex-grow: 1; padding: 10px; border: 1px solid #ccc; border-radius: 5px; }

.matching-game-container { display: flex; justify-content: space-between; gap: 20px; }
.match-column { width: 48%; }
.match-item { background: var(--fc-light); border: 1px solid #ccc; padding: 10px; margin-bottom: 10px; border-radius: 5px; cursor: pointer; transition: background-color 0.2s ease; }
.match-item.selected { background-color: var(--fc-primary); color: white; border-color: var(--fc-primary); }
.match-item.matched { background-color: #28a745; border-color: #1e7e34; color: white; cursor: default; opacity: 0.8; }

.quiz-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

