/* Base styles for Swedish Writing Coach */

body {
    background: #ffffff;
    min-height: 100vh;
}

.navbar {
    background-color: #005cbf;
}

.navbar-brand, .nav-link, .footer {
    color: #f7d117 !important;
}

.footer {
    background: #003580;
    color: #f7d117;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.main-content {
    margin-bottom: 60px;
}

.wordsearch-container {
    max-width: 900px;
}

.wordsearch-sidebar {
    max-width: 480px;
    margin: 0 auto;
}

/* Basic plan shared hero + card styles */
.practice-hero,
.qa-hero,
.dn-hero,
.sentence-builder-hero {
    background: linear-gradient(135deg, #0d3b66 0%, #1e6091 100%);
    color: #fff;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.practice-card,
.dn-panel,
.qa-panel,
.sentence-builder-panel {
    border-radius: 1.25rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 2rem;
    background: #fff;
}

.practice-module .btn,
.translation-buttons .btn,
.training-modes .btn,
.dn-panel .options .btn,
.qa-btn,
.option-btn {
    border: 2px solid #0d3b66;
    background: #fff;
    color: #0d3b66;
}

.practice-module .btn.correct,
.dn-panel .options .btn.correct,
.qa-btn.correct,
.option-btn.correct {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.practice-module .btn.incorrect,
.dn-panel .options .btn.incorrect,
.qa-btn.incorrect,
.option-btn.incorrect {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.qa-hero h1,
.practice-hero h1,
.dn-hero h1,
.sentence-builder-hero h1 {
    font-weight: 700;
}

.qa-card,
.sentence-card {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 3rem 4rem;
    border: 2px solid #0d3b6644;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 160px;
    text-align: center;
    font-size: 1.2rem;
}

.qa-question {
    font-size: 1.5rem;
    font-weight: 700;
    min-height: 80px;
    margin-bottom: 0.75rem;
}

.qa-options,
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 540px;
}

.qa-btn,
.option-btn {
    border-radius: 0.9rem;
    padding: 1.15rem 1.25rem;
    font-weight: 600;
    text-align: left;
    min-height: 56px;
    transition: border-color 0.2s ease, transform 0.1s ease;
}

.qa-btn:hover,
.option-btn:hover {
    border-color: #0d3b66;
    transform: translateY(-1px);
}

.qa-progress {
    font-weight: 600;
}

.option-btn.used {
    opacity: 0.5;
    pointer-events: none;
}

.modules label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.modules input {
    accent-color: #0d3b66;
}

.training-modes,
.translation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dn-panel .options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

#dn-word,
#dq-word {
    font-size: 1.4rem;
    font-weight: 700;
    min-height: 64px;
}

/* Shared sentence styling across practice modules */
#pn-sentence,
#pn-context-sentence,
#pv-sentence,
#pv-context-sentence,
#pa-sentence,
#pa-context-sentence,
#pq-sentence,
#pq-context-sentence,
#pte-sentence,
#pte-context-sentence,
#pvp-sentence,
#pvp-context-sentence,
#pd-sentence,
#pd-context-sentence,
#np-sentence,
#np-context-sentence,
#cp-sentence,
#cp-context-sentence {
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 64px;
}

.blank {
    display: inline-flex;
    min-width: 80px;
    justify-content: center;
    background: #fff3cd;
    border: 1px dashed #f0ad4e;
    border-radius: 0.5rem;
    padding: 0.25rem 0.75rem;
    margin: 0 0.2rem;
    font-weight: 600;
}

.blank.filled {
    background: #d4edda;
    border-color: #28a745;
}

.js-hidden {
    display: none;
}

.colour-square {
    width: 100%;
    height: 180px;
    border-radius: 1rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.badge.difficulty-unknown {
    background: #6c757d;
}

.badge.difficulty-easy {
    background: #198754;
}

.badge.difficulty-medium {
    background: #f7d117;
    color: #212529;
}

.badge.difficulty-hard {
    background: #d63384;
}

.admin-feedback-status-col {
    width: 170px;
}

.admin-feedback-actions-col {
    width: 180px;
}

.feedback-tag-badge {
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    background: #0d6efd;
}

.feedback-warning-list {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.85rem;
    color: #c1121f;
}

.level-select,
.sentence-builder-panel .form-select {
    border-radius: 0.75rem;
    border: 1px solid #ced4da;
    padding: 0.55rem 0.75rem;
}

.practice-module .clues p {
    margin-bottom: 0.25rem;
}
