* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

nav {
    background: #50C443;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-login {
    background: white;
    color: #26ff00 !important;
    font-weight: bold;    
    transition: all 0.3s ease;
    border: 2px solid #26FF00;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-login::after {
    display: none !important;
}

.btn-login:link,
.btn-login:visited,
.btn-login:active {
    color: #26FF00 !important;
}

.btn-login:hover {
    background: #26FF00;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.user-display {
    background: transparent;
    color: white !important;
    font-weight: bold;
    border: 2px solid white;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    display: inline-block;
    pointer-events: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #50C443;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 80%;
}

.footer-links a:hover {
    color: #50C443;
    background: rgba(38, 255, 0, 0.1);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #50C443;
        flex-direction: column;
        gap: 0.5rem;
        display: none;
        padding: 1.5rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        width: 100%;
        padding: 1.2rem;
        border-radius: 0;
        color: white;
    }

    .nav-menu a:hover,
    .nav-menu a:hover::after {
        background: transparent;
        width: 0;
    }
    
    .nav-menu .btn-login:hover {
        width: 100% !important;
        background: white !important;
        color: #26ff00 !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0.6rem 2rem !important;
        border-radius: 50px !important;
        border: 2px solid #26FF00 !important;
    }

    .nav-menu a:active {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0.98);
    }
    
    .nav-menu .btn-login:active {
        background: white !important;
        transform: none !important;
    }

    .nav-menu .btn-login {
        transition: none !important;
        padding: 0.6rem 2rem !important;
        border-radius: 50px !important;
    }

    .user-display {
        width: 100%;
        padding: 1.2rem;
        border-radius: 0;
        text-align: center;
        border-left: none;
        border-right: none;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .footer-links {
        gap: 1.5rem;
        flex-direction: column;
    }
    
    .footer-links a {
        width: 100%;
        text-align: center;
    }
}

.btn-login {
    border-radius: 50px !important;
    padding: 0.6rem 2rem !important;
}

.btn-login:active {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(0.98);
}

.logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    height: 30px !important;
}

.logo img {
    max-height: 30px !important;
    width: auto !important;
    height: 30px !important;
    display: block !important;
    object-fit: contain !important;
}        

footer .footer-logo {
    background: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
}

footer .footer-logo img {
    height: 30px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
}        

footer {
    padding: 2rem 0 1.5rem !important;
}

footer .footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    gap: 1rem !important;
}

footer .footer-top {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    width: 100% !important;
    align-items: center !important;
}

footer .footer-logo {
    grid-column: 1 !important;
}

footer .footer-links {
    grid-column: 2 !important;
    display: flex !important;
    gap: 2rem !important;
    justify-content: center !important;
}

footer .footer-links a {
    transition: none !important;
}

footer .footer-links a::before {
    display: none !important;
}

footer .footer-links a:hover {
    background: transparent !important;
    color: #fff !important;
    transform: none !important;
}

footer .footer-copyright {
    display: block !important;
    color: #999 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    width: 100% !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

footer {
    position: relative !important;
}



.quiz-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.quiz-nav-item {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quiz-nav-item:hover {
    border-color: #50C443;
    background: #f0fff0;
}

.quiz-nav-item.active {
    background: #50C443;
    border-color: #50C443;
    color: white;
}

.quiz-nav-item.answered {
    background: #e8f5e9;
    border-color: #4CAF50;
    color: #2e7d32;
}

.quiz-nav-item.answered.active {
    background: #50C443;
    border-color: #50C443;
    color: white;
}


.quiz-layout {
    display: grid;
    grid-template-columns: auto 2fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}


.quiz-mascot-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 25px;
}

.quiz-mascot-section .mascot-img {
    width: 170px;
    height: auto;
    max-width: 200px;
}


.test-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.test-timer-container {
    animation: fadeIn 0.5s ease-in;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.quiz-question-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
}

.question-number {
    color: #50C443;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.question-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}


.quiz-answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.quiz-answer-box {
    position: relative;
}

.quiz-answer-box input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.quiz-answer-box input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.quiz-answer-box label {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 70px;
}

.quiz-answer-box input[type="radio"]:checked + label {
    border-color: #50C443;
    background: #f0fff0;
}

.quiz-answer-box input[type="checkbox"]:checked + label {
    border-color: #50C443;
    background: #f0fff0;
}

.quiz-answer-box label:hover {
    border-color: #50C443;
    background: #fafafa;
}

.answer-label {
    font-weight: 700;
    color: #50C443;
    margin-right: 8px;
    flex-shrink: 0;
}

.answer-text {
    color: #333;
    line-height: 1.4;
}


.quiz-image-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.quiz-image-section img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.no-image-placeholder {
    text-align: center;
    color: #999;
    font-style: italic;
}


.quiz-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
}

.quiz-actions .btn-submit {
    min-width: 180px;
    padding: 12px 24px;
    text-align: center;
    font-weight: 600;
}

.btn-answer {
    background: white !important;
    border: 2px solid #26FF00 !important;
    color: #26FF00 !important;
}

.btn-answer:hover {
    background: #26FF00 !important;
    color: white !important;
}

.btn-finish {
    background: #4CAF50 !important;
    border: 2px solid #4CAF50 !important;
    color: white !important;
}

.btn-finish:hover {
    background: #45a049 !important;
}

@media (max-width: 900px) {
    .quiz-layout {
        grid-template-columns: 1fr;
    }

    .test-layout {
        grid-template-columns: 1fr;
    }

    .quiz-mascot-section {
        order: -1;
        padding: 15px;
        margin-bottom: 15px;
    }

    .quiz-mascot-section .mascot-img {
        width: 130px;
    }

    .quiz-image-section {
        min-height: 250px;
    }

    .quiz-answers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quiz-navigation {
        gap: 8px;
    }

    .quiz-nav-item {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .question-title {
        font-size: 1.1rem;
    }

    .quiz-question-section {
        padding: 20px;
    }

    footer .footer-top {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    footer .footer-logo,
    footer .footer-links {
        grid-column: 1 !important;
        justify-self: center !important;
    }
    
    .logo {
        display: flex !important;
        height: 30px !important;
    }
    
    .logo img {
        display: block !important;
        height: 30px !important;
    }
}

.banner {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: stretch;
    justify-content: flex-end; 
    padding: 0;
    background-color: #50C443;
    background-image: url('../../images/emily1.svg');
    background-repeat: no-repeat;
    background-size: 20%;
    background-position: 15% center;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 1;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.banner-title {
    font-size: 2rem;
    margin: 0 0 0.25rem 0;
    font-weight: 700;
}

.banner-subtitle {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: rgba(0, 0, 0, 0.92);
    max-width: 420px;
}

.banner-block {
    width: 100%;
    max-width: 420px;
    text-align: left;
}

.btn-banner {
    display: inline-block;
    margin-top: 1rem;
    background: white;
    color: #072c00;
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(38,255,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(38,255,0,0.18);
}

@media (max-width: 1024px) {
    .banner {
        background-size: 28%;
        background-position: 8% center;
    }
    .banner-content {
        width: 55%;
    }
}

@media (max-width: 900px) {
    .banner {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        background-size: 0;
        background-image: none;
        padding: 0;
    }
    
    .banner::before {
        content: '';
        position: relative;
        width: 100%;
        min-height: 350px;
        background-image: url('../../images/emily1.svg');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center center;
        flex-shrink: 0;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .banner-content {
        position: relative;
        width: 100%;
        padding: 2rem 1.5rem 3rem;
    }
    .banner-block {
        text-align: center;
        max-width: 100%;
    }
    .banner-title {
        font-size: 1.7rem;
    }
    .banner-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .banner::before {
        min-height: 320px;
        max-width: 350px;
    }
    .banner-content {
        padding: 1.5rem 1.5rem 2.5rem;
    }
    .banner-title {
        font-size: 1.5rem;
    }
    .banner-subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .banner::before {
        min-height: 280px;
        max-width: 300px;
    }
    .banner-content {
        padding: 1rem 1rem 2rem;
    }
    .banner-title {
        font-size: 1.4rem;
    }
    .banner-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .banner::before {
        min-height: 250px;
        max-width: 250px;
    }
    .banner-content {
        padding: 1rem 1rem 2rem;
    }
    .banner-title {
        font-size: 1.3rem;
    }
    .banner-subtitle {
        font-size: 0.85rem;
    }
}

.funkcie {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    padding: 5rem 2rem;
    text-align: center;
}

.funkcie h2 {
    font-size: 2rem;
    margin: 0 0 3.5rem 0;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: inline-block;
    padding-bottom: 0.8rem;
    border-bottom: 4px solid #50C443;
}

.funkcie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.funkcie-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out forwards;
}

.funkcie-block:nth-child(1) {
    animation-delay: 0.1s;
}

.funkcie-block:nth-child(2) {
    animation-delay: 0.2s;
}

.funkcie-block:nth-child(3) {
    animation-delay: 0.3s;
}

.funkcie-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.funkcie-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transition: transform 0.3s ease;
}

.funkcie-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.funkcie-block:hover .funkcie-icon {
    transform: scale(1.1);
}

.funkcie-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
    color: #1a1a1a;
}

.funkcie-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .funkcie h2 {
        font-size: 1.7rem;
    }
    .funkcie-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .funkcie-block {
        animation-delay: 0s !important;
    }
}

.btn-primary {
    background: white;
    color: #667eea;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about {
    background: #50C443;
    padding: 4rem 2rem;
    border-top: none;
}

.about h2 {
    font-size: 2rem;
    margin: 0 0 3rem 0;
    color: Black;
    font-weight: 700;
    text-align: center;
    display: inline-block;
    width: 100%;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
}

.about-logo-img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.about-text {
    padding: 0 1rem;
}

.about-text p {
    font-size: 1rem;
    color: black;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

@media (max-width: 768px) {
    .about h2 {
        font-size: 1.7rem;
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-text {
        padding: 0;
    }
}

.ucivo-section {
    background: white;
    padding: 4rem 2rem;
    text-align: center;
}

.ucivo-section h2 {
    font-size: 2rem;
    margin: 0 0 2.5rem 0;
    color: #1a1a1a;
    font-weight: 700;
    display: inline-block;
    padding-bottom: 0.8rem;
    border-bottom: 4px solid #50C443;
}

.ucivo-content {
    max-width: 800px;
    margin: 0 auto;
}

.ucivo-content ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.ucivo-content ul li {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin: 0 0 1rem 0;
    padding-left: 2rem;
    position: relative;
}

.ucivo-content ul li::before {
    content: '•';
    color: #50C443;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.1rem;
}

@media (max-width: 768px) {
    .ucivo-section h2 {
        font-size: 1.7rem;
    }
}

.contact-section {
    background: white;
    padding: 5rem 2rem;
}

.contact-section h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    font-weight: 700;
    text-align: center;
    display: inline-block;
    padding-bottom: 0.8rem;
    border-bottom: 4px solid #50C443;
    width: 100%;
}

.contact-container {
    max-width: 1000px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    font-weight: 700;
}

.contact-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.contact-item a {
    color: #50C443;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #1ecc00;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #50C443;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: #26FF00;
    color: #072c00;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(38,255,0,0.12);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(38,255,0,0.18);
}

@media (max-width: 768px) {
    .contact-section h1 {
        font-size: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}


.main-content {
    min-height: 60vh;
    padding: 5rem 2rem;
    background: white;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.kurzy-container {
    width: 100%;
    max-width: 800px;
    background: #f5f5f5;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.kurzy-header {
    background: #50C443;
    color: white;
    padding: 2rem;
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
}

.accordion-section {
    border-bottom: 1px solid #ddd;
    background: white;
}

.accordion-section:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    background: white;
}

.accordion-header:hover {
    background: #f8f8f8;
}

.accordion-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
    transition: all 0.3s ease;
}

.accordion-toggle.active {
    color: #000;
}

.accordion-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.accordion-content.active {
    max-height: 70vh;
    overflow-y: auto;
}

.accordion-inner {
    padding: 1.5rem 2rem 1.5rem 5.5rem;
}

.content-category {
    margin-bottom: 1.5rem;
}

.content-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #50C443;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.content-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.content-link:hover {
    border-left-color: #50C443;
    background: #f0f0f0;
    transform: translateX(5px);
}

.link-icon {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.link-text {
    font-size: 0.95rem;
    color: #000;
}

@media (max-width: 768px) {
    .kurzy-container {
        max-width: 100%;
    }

    .accordion-header {
        padding: 1rem;
    }

    .accordion-toggle {
        width: 35px;
        height: 35px;
        margin-right: 1rem;
    }

    .accordion-title {
        font-size: 1.1rem;
    }

    .accordion-inner {
        padding: 1rem 1rem 1rem 3.5rem;
    }
}

.no-content {
    color: #999;
    font-style: italic;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.badge-monitored {
    background: #50C443;
    color: #072c00;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.test-deadline {
    color: #f44336;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}


.login-section {
    background: #50C443;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem;
}

.login-container {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
}

.quiz-container-wide {
    max-width: 1200px !important;
}

.login-container h1 {
    font-size: 2rem;
    margin: 0 0 2rem 0;
    color: #1a1a1a;
    font-weight: 700;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .login-container {
        padding: 2rem;
    }

    .login-container h1 {
        font-size: 1.7rem;
    }
    
    .btn-admin,
    .btn-edit,
    .btn-delete,
    .btn-view {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
}

.error-message {
    background: #f44336;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.message-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    min-width: auto;
    line-height: 1;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.message-close-btn:hover {
    opacity: 1;
}

.message-content {
    flex: 1;
    text-align: center;
}


.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.btn-group button,
.btn-group a.btn-admin,
.btn-group a.btn-submit,
.btn-group a.btn-edit,
.btn-group a.btn-delete,
.btn-group a.btn-view {
    flex: 1;
    min-width: 150px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-group button,
    .btn-group a.btn-admin,
    .btn-group a.btn-submit,
    .btn-group a.btn-edit,
    .btn-group a.btn-delete,
    .btn-group a.btn-view {
        flex: 1;
        min-width: auto;
    }
    
    .error-message,
    .success-message {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-close-btn {
        align-self: flex-end;
    }
}

.login-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #50C443;
}

.login-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
}

.login-info code {
    background: #e0e0e0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #333;
}


.admin-section {
    background: white;
    min-height: 80vh;
    padding: 3rem 2rem;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid #50C443;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-container h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #1a1a1a;
    font-weight: 700;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-info span {
    color: #555;
    font-size: 1rem;
}

.btn-logout {
    background: #f44336;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #da190b;
    transform: translateY(-2px);
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #50C443;
    background: rgba(38, 255, 0, 0.05);
}

.tab-button.active {
    color: #50C443;
    border-bottom-color: #50C443;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h2 {
    font-size: 1.8rem;
    margin: 0 0 1.5rem 0;
    color: #1a1a1a;
    font-weight: 700;
}

.tab-content h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    color: #1a1a1a;
    font-weight: 600;
}

.admin-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form .form-group:last-child {
    margin-bottom: 0;
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="datetime-local"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #50C443;
}

.admin-form textarea {
    resize: vertical;
}

.btn-admin {
    background: #26FF00;
    color: #072c00;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(38, 255, 0, 0.2);
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(38, 255, 0, 0.3);
}

.admin-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-table h3 {
    background: #50C443;
    color: #072c00;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.2rem;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f8f9fa;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.btn-edit,
.btn-delete,
.btn-view {
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    line-height: 1.5;
    vertical-align: middle;
    box-sizing: border-box;
}


.admin-table .btn-edit,
.admin-table .btn-delete,
.admin-table .btn-view {
    min-width: 95px;
    width: 95px;
    padding: 0.4rem 0.5rem;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}

.btn-edit {
    background: #4CAF50;
    color: white;
}

.btn-edit:hover {
    background: #45a049;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #da190b;
}

.btn-view {
    background: #2196F3;
    color: white;
}

.btn-view:hover {
    background: #0b7dda;
}


.btn-back-small {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #26FF00;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-back-small:hover {
    background: #20d900;
    transform: translateY(-2px);
}


.table-actions {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.table-actions .btn-edit,
.table-actions .btn-delete,
.table-actions .btn-view {
    flex: none;
    margin-right: 0;
    margin-bottom: 0;
    white-space: nowrap;
}

.questions-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.question-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #50C443;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 1rem 0;
}

.answers-grid input {
    padding: 0.6rem;
}

.btn-add-question {
    background: #2196F3;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-question:hover {
    background: #0b7dda;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .admin-container h1 {
        font-size: 2rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-user-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .tab-button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-form {
        padding: 1.5rem;
    }

    .admin-table {
        overflow-x: auto;
        background: white;
        position: relative;
    }
    
    .admin-table h3 {
        background: #50C443;
        position: sticky;
        left: 0;
        min-width: 100%;
        z-index: 10;
    }
    
    .admin-table .delete-controls {
        background: white;
    }
    
    .admin-table table {
        background: white;
    }

    .answers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-button {
        width: 100%;
        text-align: left;
        border-radius: 6px;
        border-bottom: none;
        background: #f8f9fa;
    }

    .tab-button.active {
        background: rgba(38, 255, 0, 0.12);
    }

    .table-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .table-actions .btn-edit,
    .table-actions .btn-delete,
    .table-actions .btn-view {
        flex: 1;
        min-width: auto;
        width: 100%;
        display: block;
    }

    
    .admin-table td > .btn-edit,
    .admin-table td > .btn-delete,
    .admin-table td > .btn-view,
    .admin-table td > button.btn-delete {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.6rem;
    }

    .admin-table td > .btn-edit:last-child,
    .admin-table td > .btn-delete:last-child,
    .admin-table td > .btn-view:last-child,
    .admin-table td > button.btn-delete:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 520px) {
    .quiz-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quiz-actions .btn-submit,
    .quiz-actions a.btn-submit {
        width: 100%;
        min-width: 0;
    }

    .quiz-answer-row label {
        display: block;
    }
}


.quiz-finish-buttons {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quiz-finish-buttons form {
    flex: none;
    display: flex;
}

.quiz-finish-buttons .btn-submit {
    min-width: 180px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

@media (max-width: 520px) {
    .quiz-finish-buttons {
        flex-direction: column;
        align-items: center;
    }

    .quiz-finish-buttons form {
        width: 200px;
    }

    .quiz-finish-buttons .btn-submit {
        width: 200px;
        min-width: auto;
    }
}




.status-public {
    color: #4CAF50;
    font-weight: bold;
}

.status-private {
    color: #FF9800;
    font-weight: bold;
}

.status-draft {
    color: #FF9800;
    font-weight: bold;
}

.status-published {
    color: #4CAF50;
    font-weight: bold;
}

.status-incomplete {
    color: #f44336;
    font-weight: bold;
}

.status-complete {
    color: #4CAF50;
    font-weight: bold;
}


.draft-row {
    background-color: #fff3cd;
}


.filter-container {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
}

.filter-select {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
}


.btn-save-draft {
    background: #FF9800;
}

.btn-cancel {
    background: white;
    border: 2px solid #26FF00;
    color: #26FF00;
    text-decoration: none;
    text-align: center;
}

.btn-cancel:hover {
    background: #26FF00;
    color: white;
}


.img-thumbnail-small {
    max-width: 100px;
    max-height: 100px;
}


.text-center {
    text-align: center;
}


.hidden-section {
    display: none;
}

.visible-section {
    display: block;
}


.question-answers-container {
    margin-top: 20px;
}

.question-open-answer {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}


.multiple-choice-hint {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
}


.test-timer-wrapper {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    border: 2px solid #ffc107;
}

.timer-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #856404;
}

.timer-value {
    color: #d9534f;
    font-size: 1.3rem;
}


.feedback-box {
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
}

.feedback-box.success {
    background: #4CAF50;
    color: white;
}

.feedback-box.error {
    background: #f44336;
    color: white;
}

.feedback-box.warning {
    padding: 12px;
    margin: 10px 0;
    background: #FF9800;
    color: white;
    border-radius: 12px;
    position: relative;
    border: 2px solid #FFA500;
}

.feedback-arrow {
    position: absolute;
    left: 20px;
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #FF9800;
}


.btn-full-width {
    width: 100%;
    margin-top: 10px;
}


.flex-gap-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


.test-multiple-correct-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


.delete-controls-container {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px;
}

.delete-btn-primary {
    background: #f44336;
    color: white;
    padding: 14px 50px;
    min-width: 220px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #555;
}

.checkbox-large {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-accent-red {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f44336;
}


.success-banner {
    padding: 15px 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #43a047 100%);
    color: white;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-icon {
    font-size: 20px;
}


.answer-detail-item {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid;
}

.answer-detail-item.correct {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

.answer-detail-item.incorrect {
    border-color: #f44336;
    background-color: #ffebee;
}

.answer-question-text {
    margin-bottom: 8px;
}

.answer-question-text strong {
    font-size: 1.05em;
}

.answer-status-badge {
    float: right;
    font-weight: bold;
}

.answer-choices-box {
    color: #666;
    font-size: 0.9em;
    margin: 8px 0;
    padding: 8px;
    background: white;
    border-radius: 4px;
}

.answer-choice-item {
    margin: 3px 0;
}

.answer-response-section {
    margin-top: 10px;
}

.answer-user-response {
    font-weight: 500;
}

.answer-correct-answer-box {
    margin-top: 8px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
}

.answer-correct-label {
    color: #2e7d32;
    font-weight: 500;
}


.current-file-display {
    font-size: 0.9em;
    color: #666;
}

.file-change-hint {
    color: #666;
    display: block;
    margin-top: 0.5rem;
}


.admin-inline-buttons {
    display: inline-block;
}


@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .delete-controls-container {
        flex-direction: column;
    }
    
    .delete-btn-primary {
        width: 100%;
        min-width: auto;
    }
}
