/* ===== ZÁKLAD ===== */
body,
body.green-page,
body.bg-light {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #e8f7ec, #f4fff6) !important;
}

.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(46, 139, 87, 0.10);
}

h1 {
    font-weight: 700;
}

h3, h4, h5 {
    font-weight: 700;
    color: #1f6d45;
}

/* ===== NAVIGÁCIA ===== */
.custom-navbar {
    background: linear-gradient(90deg, #2e8b57, #3fa96b) !important;
    padding: 14px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.custom-navbar .navbar-brand,
.custom-brand {
    color: white !important;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.custom-navbar i {
    font-size: 1.1rem;
}

.custom-navbar .nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white !important;
    font-weight: 600;
    padding: 10px 14px !important;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.custom-navbar .nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white !important;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.2s;
}

.logout-btn:hover {
    background: #1f5f3c;
}

.navbar-toggler,
.custom-toggler {
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
}

/* ===== DASHBOARD / PROFIL ===== */
.dashboard-card {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(46, 139, 87, 0.12);
}

.page-title {
    margin-bottom: 8px;
    font-weight: 700;
    color: #198754;
}

.page-subtitle {
    margin-bottom: 0;
    color: #4a5a4e;
}

.section-title {
    font-weight: 700;
    color: #1f6d45;
}

.chooser-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2d4f38;
}

/* ===== KLIKATEĽNÉ KARTIČKY ===== */
.choice-grid {
    display: grid;
    gap: 14px;
    width: 100%;
}

.choice-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 18px 14px;
    text-align: center;
    font-weight: 700;
    color: #246b43;
    cursor: pointer;
    border: 2px solid #cfead8;
    border-radius: 18px;
    background: linear-gradient(135deg, #eefaf1, #f8fffa);
    box-shadow: 0 4px 10px rgba(46, 139, 87, 0.05);
    transition: all 0.2s ease-in-out;
}

.choice-card:hover {
    background: #dff4e6;
    border-color: #79c593;
    transform: translateY(-2px);
}

.choice-card.active {
    color: #ffffff;
    border-color: #2e8b57;
    background: linear-gradient(135deg, #2e8b57, #3fa96b);
    box-shadow: 0 8px 18px rgba(46, 139, 87, 0.22);
}

.start-test-btn,
.auth-btn,
.hero-btn-primary,
.submit-test-btn,
.btn-primary {
    color: white;
    font-weight: 700;
    border: none;
    background: linear-gradient(90deg, #2e8b57, #3fa96b);
}

.start-test-btn,
.submit-test-btn {
    padding: 14px;
    border-radius: 14px;
    font-size: 1.05rem;
}

.auth-btn {
    border-radius: 14px;
    transition: all 0.2s ease-in-out;
}

.start-test-btn:hover,
.auth-btn:hover,
.hero-btn-primary:hover,
.submit-test-btn:hover,
.btn-primary:hover {
    color: white;
    background: linear-gradient(90deg, #256f46, #318c59);
}

/* ===== TABUĽKA VÝSLEDKOV ===== */
.results-table thead th {
    color: #1f6d45;
    border-bottom: 2px solid #bfe3ca;
}

.results-table tbody tr:hover {
    background: #f1fbf4;
}

/* ===== AUTH STRÁNKY ===== */
.auth-row {
    min-height: 100vh;
}

.auth-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(46, 139, 87, 0.14);
}

.auth-side {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 2.5rem;
    color: white;
    background: linear-gradient(160deg, #2e8b57, #49b675);
}

.auth-side-content {
    text-align: left;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f6d45;
}

.auth-subtitle {
    font-size: 0.98rem;
    color: #5f7365;
}

.auth-input {
    padding: 0.9rem 1rem;
    border: 1px solid #cfe3d5;
    border-radius: 14px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: #49b675;
    box-shadow: 0 0 0 0.2rem rgba(73, 182, 117, 0.15);
}

.auth-link,
.back-link {
    font-weight: 600;
    color: #2e8b57;
    text-decoration: none;
}

.auth-link:hover,
.back-link:hover {
    color: #1f5f3c;
    text-decoration: underline;
}

/* ===== ÚVODNÁ STRÁNKA ===== */
.hero-card {
    overflow: hidden;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(46, 139, 87, 0.12);
}

.hero-badge {
    display: inline-block;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f6d45;
    border-radius: 999px;
    background: #e7f7ec;
}

.hero-title {
    margin-bottom: 1rem;
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #1f6d45;
}

.hero-text {
    max-width: 700px;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #516457;
}

.hero-btn-primary {
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(46, 139, 87, 0.18);
}

.hero-btn-secondary {
    color: #1f6d45;
    font-weight: 700;
    border: 2px solid #bfe3ca;
    border-radius: 16px;
    background: #ffffff;
}

.hero-btn-secondary:hover {
    color: #1f6d45;
    background: #f1fbf4;
    border-color: #79c593;
    transform: translateY(-1px);
}

.hero-side {
    min-height: 100%;
    padding: 3rem 2rem;
    color: white;
    background: linear-gradient(160deg, #2e8b57, #49b675);
}

.hero-graphic {
    max-width: 340px;
}

.hero-graphic h3 {
    color: #ffffff;
    font-weight: 700;
}

.hero-graphic p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.hero-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    font-size: 2.6rem;
    font-weight: 800;
    color: white;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.index-footer-text {
    font-size: 0.95rem;
    color: #5e7264;
}

/* ===== TEST ===== */
.test-container {
    max-width: 900px;
}

.q-card {
    border-radius: 18px;
}

.test-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1f6d45;
}

.test-title-light {
    font-weight: 700;
    color: #2e8b57;
}

.test-subtitle {
    font-size: 1.05rem;
    color: #5f6f63;
}

.question-block {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e4efe7;
}

.question-block:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
}

.question-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    border-radius: 10px;
    background: #2e8b57;
}

.difficulty-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f6d45;
    border-radius: 10px;
    background: #e7f7ec;
}

.question-text {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 700;
    color: #1f6d45;
}

.choice input {
    display: none;
}

.choice label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 18px 16px;
    cursor: pointer;
    user-select: none;
    border: 2px solid #cfead8;
    border-radius: 18px;
    background: #ffffff;
    transition: all 0.18s ease-in-out;
}

.choice label:hover {
    background: #f5fcf7;
    border-color: #79c593;
    box-shadow: 0 6px 16px rgba(46, 139, 87, 0.08);
}

.choice input:checked + label {
    background: #eef9f1;
    border-color: #2e8b57;
    box-shadow: 0 6px 16px rgba(46, 139, 87, 0.10);
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f6d45;
    border-radius: 16px;
    background: #e4f5e9;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1f6d45;
    border: 1px solid #cfead8;
    border-radius: 10px;
    background: #fff;
}

.btn-back:hover {
    color: #1f6d45;
    background: #f1fbf4;
    border-color: #79c593;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .choice-grid-4,
    .choice-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .auth-card {
        border-radius: 22px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.08rem;
    }

    .hero-side {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 768px) {
    .test-title {
        font-size: 1.8rem;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .choice label {
        min-height: 76px;
    }
}

@media (max-width: 575px) {
    .choice-grid-4,
    .choice-grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-card {
        border-radius: 24px;
    }
}