/* ===================== */
/* BASIS */
/* ===================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
}

/* ===================== */
/* NAVBAR */
/* ===================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #0b2a4a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.navbar {
    background-color: #0b2a4a;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 15px;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

.navbar a:hover {
    text-decoration: underline;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ===================== */
/* LAYOUT */
/* ===================== */

.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

.page-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.main-content {
    flex: 2.6;
}

.sidebar {
    flex: 1.4;
}

/* ===================== */
/* CONTENT BLOKKEN */
/* ===================== */

.content-section {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* ===================== */
/* FORMS */
/* ===================== */

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.form-control:focus {
    outline: none;
    border-color: #0b2a4a;
    box-shadow: 0 0 0 2px rgba(11, 42, 74, 0.15);
}

/* ===================== */
/* BUTTONS */
/* ===================== */

.btn {
    background-color: #0b2a4a;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background-color: #13385f;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #5c636a;
}

/* ===================== */
/* TRAINING BUTTONS */
/* ===================== */

.training-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #0b2a4a;
    color: white;
    text-decoration: none;
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 10px;
    text-align: left;
    font-weight: bold;
    transition: all 0.2s ease;
}

.training-button:hover {
    background-color: #13385f;
    transform: translateY(-1px);
}

.training-button:active {
    transform: scale(0.97);
}

/* ===================== */
/* ANSWER CARDS */
/* ===================== */

.answer-option {
    margin-bottom: 12px;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-card {
    display: block;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-card:hover {
    border-color: #0b2a4a;
    background-color: #f2f6fa;
}

.answer-option input[type="radio"]:checked + .answer-card {
    border-color: #0b2a4a;
    background-color: #eaf1f8;
    font-weight: bold;
}

.answer-card.correct {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.answer-card.wrong {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.answer-card.disabled {
    cursor: default;
}

/* ===================== */
/* TOOLTIP */
/* ===================== */

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted #666;
}

.tooltip .tooltip-text {
    font-size: 14px;
    line-height: 1.4;
    visibility: hidden;
    opacity: 0;
    width: 420px;
    max-width: 90vw;
    background-color: #0b2a4a;
    color: #fff;
    text-align: left;
    padding: 12px 14px;
    border-radius: 8px;
    position: absolute;
    z-index: 1000;
    top: 125%;
    left: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 20px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #0b2a4a transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===================== */
/* FLASH MESSAGES */
/* ===================== */

.flash-container {
    max-width: 1100px;
    margin: 15px auto;
    padding: 0 15px;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    animation: fadeOut 4s forwards;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* ===================== */
/* STREAK BADGE */
/* ===================== */

.streak-badge {
    background-color: #0b2a4a;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
}

/* ===================== */
/* PROGRESS */
/* ===================== */

.progress-card {
    background-color: #f8f9fb;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
}

.progress-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.progress-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 14px;
}

.progress-bar-wrapper {
    width: 100%;
    height: 16px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #0b2a4a;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.progress-status {
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
}

.status-good {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-medium {
    background-color: #fff3cd;
    color: #664d03;
}

.status-hard {
    background-color: #f8d7da;
    color: #842029;
}

/* ===================== */
/* THEMES HOME */
/* ===================== */

.theme-box {
    margin-bottom: 14px;
    border: 1px solid #d9dee5;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
}

.theme-header {
    background-color: #f8f9fb;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    list-style: none;
    transition: all 0.2s ease;
}

.theme-header:hover {
    background-color: #eaf1f8;
    color: #0b2a4a;
}

.theme-box details[open] .theme-header {
    border-bottom: 1px solid #e1e5ea;
    background-color: #eef3f8;
}

.theme-content {
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.5;
}

.theme-content ul {
    margin: 8px 0;
    padding-left: 22px;
}

.theme-content li {
    margin-bottom: 8px;
}

.theme-content strong {
    font-size: 16px;
    color: #0b2a4a;
}

/* ===================== */
/* OVERVIEW PAGE */
/* ===================== */

.theme-card {
    border: 1px solid #d9dee5;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    background-color: #ffffff;
}

.topic-card {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background-color: #f8f9fb;
    border: 1px solid #e1e5ea;
}

.topic-card h3 {
    margin-top: 0;
    color: #0b2a4a;
}

.verse-row {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    background-color: white;
    border: 1px solid #eee;
}

.verse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.verse-text {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

/* ===================== */
/* OVERVIEW FILTERS */
/* ===================== */

.overview-filter-form {
    margin-top: 15px;
}

.overview-filter-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-grow {
    flex: 2;
    min-width: 280px;
}

.filter-theme {
    flex: 1;
    min-width: 220px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.admin-users-table th,
.admin-users-table td {
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #ddd;
}

.admin-users-table th {
    white-space: nowrap;
}

.admin-users-table td:nth-child(2),
.admin-users-table td:nth-child(4),
.admin-users-table td:nth-child(5) {
    white-space: nowrap;
}

.admin-users-table th:last-child,
.admin-users-table td:last-child {
    width: 1%;
    white-space: nowrap;
}

.admin-user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}

.admin-user-actions .btn {
    width: 120px;
    text-align: center;
    padding: 8px 10px;
    font-size: 14px;
}