/* ========================================
   ARABISCH ALFABET CURSUS - COMPLETE STIJLEN
   ======================================== */

/* ------------------------------
   BASIS STIJLEN
   ------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* ------------------------------
   ARABISCHE LETTERS - GROOT EN LEESBAAR
   ------------------------------ */
.arabic-letter,
.arabic-word,
.arabic-word-large,
.arabic-letter-header,
.arabic-form,
.arabic-example,
.sound-symbol,
.example-text,
.word-display span,
.form-example,
.form-type-symbol,
.memory-card-back,
.dropped-letter,
.draggable-letter,
.letter-option div:first-child {
    font-family: 'Traditional Arabic', 'Scheherazade', 'Amiri', 'Lateef', 'Arial', serif;
    font-weight: normal;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}

/* Standaard lettergrootte voor verschillende elementen */
.arabic-letter {
    font-size: 5rem !important;
    text-align: center;
    color: #1a237e;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arabic-word {
    font-size: 2.5rem !important;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.arabic-word-large {
    font-size: 4rem !important;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
}

.arabic-letter-header {
    font-size: 4rem !important;
    display: block;
    text-align: center;
}

.arabic-form {
    font-size: 2.5rem !important;
    display: block;
    margin-top: 0.25rem;
    text-align: center;
}

.arabic-example {
    font-size: 1.8rem !important;
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
    color: #1a237e;
}

/* Sound symbolen groter */
.sound-symbol {
    font-size: 5rem !important;
    color: #1a237e;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-text {
    font-size: 2rem !important;
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

/* ------------------------------
   NAVIGATIE
   ------------------------------ */
.navbar {
    background-color: #1a237e;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    transition: all 0.3s;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

/* ------------------------------
   JUMBOTRON / HEADER
   ------------------------------ */
.jumbotron {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 0;
    margin-bottom: 0;
}

.jumbotron .display-4 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.jumbotron .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.jumbotron .btn-light {
    background-color: white;
    color: #1a237e;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.jumbotron .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ------------------------------
   VOORTGANG SECTIE
   ------------------------------ */
.progress-section {
    background-color: #e3f2fd;
    padding: 2rem 0;
    margin: 0;
    border-bottom: 1px solid #bbdef5;
}

.progress-section h2 {
    color: #1a237e;
    margin-bottom: 1.5rem;
}

.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    height: 25px;
}

.progress-bar {
    background-color: #1a237e;
    transition: width 0.5s ease-in-out;
    font-size: 0.9rem;
    line-height: 25px;
    font-weight: bold;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #666;
    margin-bottom: 0;
}

/* ------------------------------
   ALFABET SECTIE
   ------------------------------ */
.alphabet-intro {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.writing-direction {
    background-color: #e8f5e9;
    border-left: 5px solid #4caf50;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Letter kaarten */
.letter-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.letter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.letter-card.learned {
    border: 2px solid #4caf50;
    background-color: #f8fff8;
}

.letter-card .card-body {
    padding: 1.5rem;
}

.letter-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a237e;
    margin: 0.5rem 0;
}

.letter-pronunciation {
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
}

.example-word {
    font-size: 1.2rem;
    color: #333;
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
    margin: 0.5rem 0;
}

.letter-image {
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.letter-image:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.letter-image.playing {
    border: 3px solid #4caf50;
    animation: pulse 1s infinite;
}

.sound-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* Geleerde letter badge */
.letter-learned {
    position: relative;
}

.letter-learned::after {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #4caf50;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ------------------------------
   KLANKEN SECTIE
   ------------------------------ */
.sounds-intro {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 2px solid #e3f2fd;
}

.sound-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.sound-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #1a237e;
}

.sound-card .card-body {
    padding: 1.5rem;
}

.sound-name {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.sound-pronunciation {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.sound-description {
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.sound-example {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

/* ------------------------------
   PRAKTIJK VOORBEELDEN
   ------------------------------ */
.practice-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    border: 2px solid #e3f2fd;
}

.word-example-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    border-radius: 10px;
}

.word-example-card:hover {
    border-color: #1a237e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.word-display {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.word-info p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.translation {
    font-weight: bold;
    color: #333;
}

.pronunciation {
    color: #666;
    font-style: italic;
}

.sound-type {
    color: #1a237e;
    font-weight: bold;
}

.arabic-symbol {
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
    font-size: 1.2rem;
    color: #1a237e;
}

.example-group {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.example-group h4 {
    color: #1a237e;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e3f2fd;
    margin-bottom: 2rem;
}

/* ------------------------------
   OEFENINGEN ALGEMEEN
   ------------------------------ */
.exercise-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.exercise-title {
    color: #1a237e;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.exercise-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
}

.exercise-progress {
    background: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.exercise-progress-bar {
    background: #4caf50;
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.question-container {
    text-align: center;
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: bold;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.letter-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.letter-option:hover {
    border-color: #1a237e;
    transform: translateY(-3px);
}

.letter-option.correct {
    border-color: #4caf50;
    background-color: #e8f5e9;
}

.letter-option.incorrect {
    border-color: #f44336;
    background-color: #ffebee;
}

.feedback {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    min-height: 2rem;
    padding: 1rem;
    border-radius: 8px;
}

.correct-feedback {
    color: #4caf50;
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
}

.incorrect-feedback {
    color: #f44336;
    background-color: #ffebee;
    border: 1px solid #f44336;
}

/* ------------------------------
   KNOppen
   ------------------------------ */
.play-sound-btn {
    background: #1a237e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.play-sound-btn:hover:not(:disabled) {
    background: #3949ab;
    transform: translateY(-2px);
}

.play-sound-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.next-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

.next-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* ------------------------------
   MEMORY SPEL
   ------------------------------ */
.memory-game {
    max-width: 800px;
    margin: 0 auto;
}

.memory-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .memory-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.memory-card {
    aspect-ratio: 1;
    background: #1a237e;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    transform-style: preserve-3d;
    position: relative;
}

.memory-card.flipped {
    transform: rotateY(180deg);
}

.memory-card.matched {
    background: #4caf50;
    cursor: default;
    opacity: 0.7;
}

.memory-card-front,
.memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.memory-card-front {
    background: #1a237e;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.memory-card-back {
    background: white;
    transform: rotateY(180deg);
    font-size: 2rem;
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
    border: 2px solid #1a237e;
}

.memory-controls {
    text-align: center;
}

.memory-btn {
    background: #1a237e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 0.5rem;
}

.memory-btn:hover {
    background: #3949ab;
    transform: translateY(-2px);
}

.memory-btn.reset {
    background: #f44336;
}

.memory-btn.reset:hover {
    background: #d32f2f;
}

.memory-completion {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #4caf50;
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e9;
    border-radius: 12px;
}

/* ------------------------------
   DRAG AND DROP
   ------------------------------ */
.drag-drop-exercise {
    max-width: 900px;
    margin: 0 auto;
}

.drag-instructions {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.4;
}

.drag-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .drag-area {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.letters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.8rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    min-height: 120px;
}

.images-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.draggable-letter {
    font-size: 3rem !important;
    text-align: center;
    padding: 1rem 0.5rem;
    background: white;
    border: 2px solid #1a237e;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.3s;
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
    user-select: none;
    touch-action: none;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.draggable-letter:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.draggable-letter.dragging {
    opacity: 0.7;
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-target {
    position: relative;
    background: white;
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
    transition: all 0.3s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-target.over {
    border-color: #1a237e;
    background: #e3f2fd;
    transform: scale(1.02);
}

.image-target.correct {
    border-color: #4caf50;
    background: #e8f5e9;
}

.image-target.incorrect {
    border-color: #f44336;
    background: #ffebee;
}

.target-image {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 0.8rem;
}

.target-word {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.4rem;
    text-align: center;
}

.target-hint {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-bottom: 0.5rem;
}

.drop-zone {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 2px dashed #adb5bd;
    border-radius: 6px;
    transition: all 0.3s;
    background: #f8f9fa;
    width: 100%;
}

.drop-zone.over {
    border-color: #1a237e;
    background: #e3f2fd;
    transform: scale(1.05);
}

.dropped-letter {
    font-size: 2.5rem !important;
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
    font-weight: bold;
}

.drag-controls {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 480px) {
    .drag-controls {
        flex-direction: row;
        justify-content: center;
    }
}

.drag-btn {
    background: #1a237e;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 160px;
}

.drag-btn:hover {
    background: #3949ab;
    transform: translateY(-2px);
}

.drag-btn.check {
    background: #4caf50;
}

.drag-btn.check:hover {
    background: #45a049;
}

.drag-btn.reset {
    background: #f44336;
}

.drag-btn.reset:hover {
    background: #d32f2f;
}

.drag-feedback {
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1rem 0;
    min-height: 2rem;
    padding: 0.5rem;
    border-radius: 8px;
}

.drag-completion {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #4caf50;
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e9;
    border-radius: 12px;
}

/* ------------------------------
   LEZEN PAGINA STIJLEN
   ------------------------------ */
.reading-intro {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.form-card:hover {
    transform: translateY(-5px);
    border-color: #1a237e;
}

.form-example {
    font-size: 4rem !important;
    color: #1a237e;
    margin-bottom: 1rem;
}

.form-name {
    color: #1a237e;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.form-description {
    color: #666;
    font-size: 0.9rem;
}

.word-reading-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    height: 100%;
}

.word-reading-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #1a237e;
}

.letter-analysis {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.letter-forms-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.letter-form-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

.arabic-letter-small {
    font-size: 1.8rem !important;
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
}

.form-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: #e0e0e0;
}

.form-badge.begin {
    background: #4caf50;
    color: white;
}

.form-badge.midden {
    background: #ff9800;
    color: white;
}

.form-badge.eind {
    background: #2196f3;
    color: white;
}

.difficulty .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

/* Match oefening */
.match-exercise {
    max-width: 900px;
    margin: 0 auto;
}

.match-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
}

.match-words-container {
    min-height: 400px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
}

.match-word-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.match-word-item:hover {
    border-color: #1a237e;
    transform: translateX(5px);
}

.match-word-item.selected {
    background: #e3f2fd;
    border-color: #1a237e;
}

.match-word-item.matched {
    background: #e8f5e9;
    border-color: #4caf50;
    opacity: 0.6;
    cursor: default;
    text-decoration: line-through;
}

.match-feedback {
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
}

/* ------------------------------
   LETTERVORMEN PAGINA STIJLEN
   ------------------------------ */
.form-type-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    height: 100%;
}

.form-type-card:hover {
    border-color: #1a237e;
    transform: translateY(-5px);
}

.form-type-symbol {
    font-size: 4rem !important;
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
    color: #1a237e;
    margin-bottom: 1rem;
}

.letter-forms-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    height: 100%;
}

.letter-forms-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #1a237e;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #1a237e;
    padding: 1rem;
    text-align: center;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-item {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
}

.form-label {
    font-size: 0.7rem;
    color: #666;
    display: block;
}

.letter-notes {
    background: #fff3e0;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #666;
    border-left: 3px solid #ff9800;
}

.example-words {
    font-size: 0.85rem;
}

.example-item {
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    border-bottom: 1px dashed #e0e0e0;
}

.example-position {
    color: #4caf50;
    font-size: 0.7rem;
}

.position-text {
    font-size: 1rem;
    color: #1a237e;
    background: #fff3e0;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

/* ------------------------------
   FOOTER
   ------------------------------ */
.footer {
    background-color: #1a237e;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* ------------------------------
   ANIMATIES
   ------------------------------ */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.playing {
    animation: pulse 1s infinite;
}

/* ------------------------------
   RESPONSIVE STIJLEN
   ------------------------------ */
/* Tablets en kleinere desktops */
@media (max-width: 992px) {
    .arabic-letter {
        font-size: 4rem !important;
        min-height: 80px;
    }
    
    .arabic-word-large {
        font-size: 3.5rem !important;
    }
    
    .sound-symbol {
        font-size: 4rem !important;
        min-height: 80px;
    }
    
    .jumbotron .display-4 {
        font-size: 2.5rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .arabic-letter {
        font-size: 3.5rem !important;
        min-height: 70px;
    }
    
    .arabic-word {
        font-size: 2rem !important;
    }
    
    .arabic-word-large {
        font-size: 2.8rem !important;
    }
    
    .sound-symbol {
        font-size: 3.5rem !important;
        min-height: 70px;
    }
    
    .example-text {
        font-size: 1.5rem !important;
    }
    
    .letter-option {
        font-size: 2rem !important;
        padding: 0.75rem;
    }
    
    .arabic-letter-header {
        font-size: 3rem !important;
    }
    
    .arabic-form {
        font-size: 2rem !important;
    }
    
    .form-example,
    .form-type-symbol {
        font-size: 3rem !important;
    }
    
    .draggable-letter {
        font-size: 2.2rem !important;
        min-height: 70px;
    }
    
    .dropped-letter {
        font-size: 2rem !important;
    }
    
    .memory-card-back {
        font-size: 1.8rem !important;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exercise-stats {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .jumbotron {
        padding: 3rem 1.5rem;
    }
    
    .jumbotron .display-4 {
        font-size: 2rem;
    }
    
    .exercise-container {
        padding: 1.5rem;
    }
    
    .forms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobiele telefoons */
@media (max-width: 576px) {
    .arabic-letter {
        font-size: 2.8rem !important;
        min-height: 60px;
    }
    
    .arabic-word {
        font-size: 1.6rem !important;
    }
    
    .arabic-word-large {
        font-size: 2.2rem !important;
    }
    
    .sound-symbol {
        font-size: 2.8rem !important;
        min-height: 60px;
    }
    
    .example-text {
        font-size: 1.3rem !important;
    }
    
    .letter-option {
        font-size: 1.6rem !important;
        padding: 0.6rem;
    }
    
    .letter-option div:first-child {
        font-size: 1.6rem !important;
    }
    
    .arabic-letter-header {
        font-size: 2.5rem !important;
    }
    
    .arabic-form {
        font-size: 1.6rem !important;
    }
    
    .form-example,
    .form-type-symbol {
        font-size: 2.5rem !important;
    }
    
    .draggable-letter {
        font-size: 1.8rem !important;
        min-height: 60px;
        padding: 0.6rem;
    }
    
    .dropped-letter {
        font-size: 1.6rem !important;
    }
    
    .memory-card-back {
        font-size: 1.4rem !important;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .letters-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .images-container {
        grid-template-columns: 1fr;
    }
    
    .image-target {
        min-height: 160px;
    }
    
    .target-image {
        max-width: 70px;
        max-height: 70px;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .letter-name {
        font-size: 1.2rem;
    }
    
    .exercise-title {
        font-size: 1.4rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .play-sound-btn,
    .next-btn,
    .memory-btn,
    .drag-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .memory-grid {
        gap: 0.5rem;
    }
    
    .forms-grid {
        grid-template-columns: 1fr;
    }
    
    .form-item {
        padding: 0.3rem;
    }
    
    .letter-forms-card .card-body {
        padding: 1rem;
    }
}

/* Zeer kleine schermen */
@media (max-width: 360px) {
    .arabic-letter {
        font-size: 2.2rem !important;
    }
    
    .arabic-word-large {
        font-size: 1.8rem !important;
    }
    
    .letters-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra grote schermen */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .arabic-letter {
        font-size: 5.5rem !important;
    }
    
    .arabic-word-large {
        font-size: 4.5rem !important;
    }
    
    .sound-symbol {
        font-size: 5.5rem !important;
    }
}

/* ------------------------------
   PRINT STIJLEN
   ------------------------------ */
@media print {
    .navbar,
    .footer,
    .progress-section,
    .play-sound-btn,
    .next-btn,
    .memory-btn,
    .drag-btn,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .arabic-letter,
    .arabic-word,
    .arabic-word-large {
        color: black !important;
    }
    
    .letter-card,
    .sound-card,
    .exercise-container {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}