/* Importējam fontus no Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #8FAD88;
    --accent-color: #25583c;
    --text-light: #ffffff;
    --text-dark: #000000;
    --bg-light: #f8f9fa;
    --bg-body: #fff;
    --bg-card: #fff;
    --transition-speed: 0.3s;
    --header-h: 144px; /* sticky site header height; kept in sync by calendar.js */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: fadeInPage 0.6s ease-out;
}

main {
    flex: 1;
}

/* Galvene un Navigācija */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    padding: 0.5rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.nav-logo img {
    border-radius: 50%;
    height: 80px;
    width: auto;
    background-color: #ffffff;
    display: block;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    margin-left: 2rem; /* Spacing from logo */
    margin-right: auto;
    gap: 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-mobile-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color var(--transition-speed);
}

/* Navigācijas saišu animācija */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

nav a:hover {
    color: var(--accent-color);
}

nav a:hover::after {
    width: 100%;
}

/* Tēmas pārslēgšanas poga */
.theme-btn {
    background-color: #ccc;
    border: none;
    border-radius: 30px;
    width: 60px;
    height: 30px;
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: inherit;
    font-size: 1.2rem;
    color: #555;
    box-sizing: border-box;
}

/* Helper classes for responsive visibility */
.mobile-only { display: none; }

.theme-btn::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1;
}

.theme-btn .toggle-icon {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.3s;
    line-height: 1;
    font-size: 16px;
}

/* Sekciju stili */
section {
    padding: 2rem 2rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

h1, h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    margin-top: 0;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

h3 {
    color: var(--text-dark);
}

h6 {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: normal;
}

p {
    max-width: 700px;
    font-size: 1.1rem;
}

/* Tests sekcijas īpašais stils (iepriekš sakums) */
#tests,
.fading-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    flex: 1;
}

/* Par mums sekcijas samazināšana */
#par-mums {
    min-height: auto;
    padding: 3rem 2rem;
}

/* Animācijas */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

body.page-exit {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease-in, transform 0.4s ease-in;
    transition: opacity 0.4s ease-in;
}

.hero-text {
    animation: fadeIn 1.5s ease-out;
}

/* Kartīšu stili */
.card-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem auto;
    width: 100%;
    max-width: 1200px;
}

.card {
    background-color: var(--bg-card);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
    max-width: 450px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.card h3 {
    color: var(--text-dark);
    margin-top: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card > p:not(.price-tag) {
    margin: 0.25rem 0;
}

.card-details {
    width: 100%;
    text-align: left;
    margin-top: 1rem;
}

.card-details ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
    text-align: left;
}

.price-tag {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 1rem 0;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Pārējo sekciju foni */
section:nth-child(even) {
    background-color: var(--bg-light);
}

#progress-text {
    color: var(--text-dark);
}

/* Testa (Quiz) stili */
.question {
    background: var(--bg-card);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    color: var(--text-dark);
    text-align: left;
    width: 600px;
    max-width: 100%;
    box-sizing: border-box;
}

.question h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 0;
    min-height: 6em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.question label {
    display: block;
    margin: 0.8rem 0;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
}

.question label:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: rgba(37, 88, 60, 0.05);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform 0.2s;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Dropdown izvēlne */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content:not(.login-content) {
    display: block;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.9rem;
    text-transform: none;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
}

.dropdown-content a.btn, .dropdown-content button.btn {
    text-align: center !important;
    font-weight: bold !important;
}

/* Noņemam svītru animāciju dropdown saitēm */
.dropdown-content a::after {
    content: none;
}

.dropdown-content a.logout-link {
    color: #e74c3c;
    font-weight: bold;
}

/* Noderīgi sekcijas saraksts */
.useful-links {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.useful-links li {
    margin-bottom: 0.5rem;
}

.useful-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.useful-links a:hover {
    text-decoration: underline;
}

/* Kājene (Footer) */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

footer .footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr 3fr 3fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
}

footer img {
    height: 150px;
    width: auto;
    border-radius: 50%;
    /* Lets center the logo  */
    display: block;
    margin: 0 auto;
    margin-bottom: 1rem;
    align-self: flex-start;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Kontakti lapas stili */
#kontakti {
    min-height: auto;
    padding: 2rem 2rem calc(2rem + 32px) 2rem;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    align-items: flex-start;
}

.contact-column {
    flex: 1;
    min-width: 300px;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
    color: var(--text-dark);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: var(--accent-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(37, 88, 60, 0.3);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Tumšais režīms (Dark Mode) - aktivizēts ar klasi */
body.dark-mode {
        --primary-color: #1b2e1e;
        --accent-color: #66bb6a;
        --text-dark: #ffffff;
        --bg-light: #1e1e1e;
        --bg-body: #121212;
        --bg-card: #2d2d2d;
}

body.dark-mode .theme-btn {
    background-color: #66bb6a;
}

body.dark-mode .theme-btn::before {
    transform: translateX(30px);
}

body.dark-mode .theme-btn .toggle-icon {
    transform: translateX(30px);
    color: #121212;
}

body.dark-mode .btn {
    color: #121212;
}

body.dark-mode .price-tag {
    color: #121212;
}

body.dark-mode .dropdown-content a:hover {
    background-color: #3d3d3d;
}

body.dark-mode .question label {
    border-color: #444;
}

body.dark-mode .question label:hover {
    background-color: #3d3d3d;
    border-color: var(--accent-color);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: #3d3d3d;
    color: var(--text-dark);
    border-color: #555;
}

/* Responsīvais dizains mobilajām ierīcēm */
@media (max-width: 768px) {
    :root {
        /* header is not pinned on mobile, so the table header sticks to the top */
        --header-h: 0px;
    }

    header {
        position: relative;
    }
    
    .nav-wrapper {
        padding: 0 1rem;
        justify-content: space-between;
    }

    .hamburger {
        display: block;
    }

    .nav-mobile-left {
        order: 1;
    }

    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        animation: slideDown 0.3s ease forwards;
        margin: 0;
    }

    .nav-actions {
        order: 3;
    }

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

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 1rem;
        min-height: auto;
    }

    footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    footer img {
        align-self: center;
    }

    footer ul {
        align-items: center;
    }

    /* Mobile Dropdown adjustments */
    .nav-links .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: rgba(0,0,0,0.1);
        width: 100%;
        transform: none;
        display: none;
    }
    
    /* Profile dropdown adjustments for mobile */
    .dropdown-content.login-content {
        position: absolute;
        right: 0;
        left: auto;
        width: 300px;
        max-width: 90vw;
        min-width: auto;
    }
    
    /* Show dropdown content when parent has active class on mobile */
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    /* Disable hover effect on mobile to prevent glitches */
    .dropdown:hover .dropdown-content:not(.login-content) {
        display: none;
    }
    
    /* Re-enable display block if active class is present */
    .dropdown.active:hover .dropdown-content {
        display: block;
    }

    .nav-links .theme-btn {
        margin: 1rem auto;
    }
}

/* Desktop Ordering */
@media (min-width: 769px) {
    .nav-mobile-left { order: 4; margin-left: 1rem; }
    .nav-logo { order: 1; }
    .nav-links { order: 2; }
    .nav-actions { order: 3; }
}

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

/* Bootstrap stila paziņojumi */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

#alert-container {
    min-height: 60px;
    margin-top: 10px;
}

/* Jaunumi sekcijas stili */
#jaunumi {
    background-color: var(--bg-light);
    text-align: center;
}

.news-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
}

.news-item {
    background-color: var(--bg-card);
    color: var(--text-dark);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.news-item.hidden {
    display: none;
}

/* Login Dropdown Styles */
.dropdown-content.login-content {
    min-width: 260px;
    padding: 1.5rem;
    cursor: default;
    right: 0;
    left: auto;
    transform: none;
    border: 2px solid #000;
}

.login-form, .register-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.login-form input, .register-form input {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.form-options {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-options label {
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.login-form .form-options input {
    width: auto;
    margin-right: 8px;
}

.login-form button, .register-form button {
    width: 100%;
    margin-top: 0.5rem;
}

.google-login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 44px; /* Ensure visibility even if empty */
}

.social-login {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.social-login p {
    margin: 0 0 0.8rem 0;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.social-btn {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.social-btn:hover {
    opacity: 0.9;
}

.google-btn {
    background-color: #db4437;
}

.facebook-btn {
    background-color: #4267B2;
}

.register-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.register-section p {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.register-section .btn {
    width: 100%;
    margin-top: 0;
}

/* Review Mode Styles */
.question label.correct {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.question label.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Statistics Page Styles */
.stats-container,
.calendar-container {
    max-width: 1200px;
    width: 95%;
    margin: 40px auto;
    padding: 20px;
    background: var(--bg-card, #fff);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.stats-table th, .stats-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.stats-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    white-space: nowrap;
}

/* Sticky calendar header: months stay visible while scrolling the species list */
.calendar-container .stats-table thead th {
    position: relative; /* fallback + positioning context for the "today" line */
    position: -webkit-sticky;
    position: sticky;
    top: var(--header-h, 0px);
    z-index: 5;
    /* borders are not painted on sticky cells with border-collapse: collapse */
    border-bottom: none;
    box-shadow: inset 0 -1px 0 #ddd;
}

/* Table Container for horizontal scrolling */
.table-container {
    width: 100%;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .stats-table th, .stats-table td { padding: 8px; font-size: 0.82rem; }
}
.status-passed { color: #2ecc71; font-weight: bold; }
.status-failed { color: #e74c3c; font-weight: bold; }

.stats-summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.stat-card {
    flex: 1;
    min-width: 200px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.stat-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #666;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* Dark mode adjustments for statistics */
body.dark-mode .stats-container,
body.dark-mode .calendar-container {
    background: var(--bg-card);
    color: var(--text-dark);
}
body.dark-mode .stats-table th {
    background-color: var(--primary-color);
    color: var(--text-dark);
}
body.dark-mode .calendar-container .stats-table thead th {
    box-shadow: inset 0 -1px 0 #444;
}
body.dark-mode .stats-table td {
    border-bottom-color: #444;
}
body.dark-mode .stat-card {
    background: var(--bg-light);
    border: 1px solid #333;
}
body.dark-mode .stat-card h3 {
    color: #aaa;
}
body.dark-mode .stat-card .stat-value {
    color: var(--accent-color);
}

/* Basic Long Social Buttons */
.google-custom-btn, .fb-custom-btn {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif; /* Standard font for auth buttons */
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    margin-bottom: 10px;
}

.google-custom-btn {
    background-color: #ffffff;
    color: #1f1f1f;
    border: 1px solid #747775;
}
.google-custom-btn:hover {
    background-color: #f0f4f9;
    border-color: #1f1f1f;
}

.fb-custom-btn {
    background-color: #1877F2;
    color: #ffffff;
    border: 1px solid #1877F2;
}
.fb-custom-btn:hover {
    background-color: #166fe5;
    border-color: #166fe5;
}

/* Custom Google Button - Modern Pill Style */
.google-custom-btn {
    width: 100%;
    background-color: #ffffff;
    color: #1f1f1f;
    border: 1px solid #dadce0; /* Modern lighter border */
    border-radius: 20px;       /* Pill shape */
    padding: 8px 16px;
    font-weight: 500;
    font-family: 'Roboto', 'Segoe UI', Tahoma, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
    transition: background-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.google-custom-btn:hover {
    background-color: #f8f9fa;
    border-color: #d2e3fc;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.google-custom-btn svg {
    width: 18px;
    height: 18px;
}

/* Custom Facebook Button - Modern Pill Style */
.fb-custom-btn {
    width: 100%;
    background-color: #1877F2; /* Official Facebook Blue */
    color: #ffffff;
    border: none;              /* Modern FB buttons usually drop the border */
    border-radius: 20px;       /* Pill shape */
    padding: 8px 16px;
    font-weight: 600;          /* Facebook text is slightly bolder */
    font-family: Helvetica, Arial, sans-serif; /* FB standard fonts */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
    transition: background-color 0.2s, filter 0.2s;
    white-space: nowrap;
}

.fb-custom-btn:hover {
    background-color: #166fe5;
    filter: brightness(1.05);  /* Subtle pop on hover */
}

.fb-custom-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* Calendar Page Styles */
.calendar-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: transparent;
    color: var(--text-dark);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover {
    background-color: var(--bg-light);
    border-color: var(--accent-color);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
}

body.dark-mode .filter-btn.active {
    color: var(--text-dark);
}

/* Privacy Policy Modal Styles */
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.privacy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.privacy-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff !important;
    color: #000000 !important;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px 25px 25px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.privacy-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    background: transparent !important;
    border: none;
    color: #000000 !important;
    cursor: pointer;
    z-index: 1;
}

.privacy-modal-body,
.privacy-modal-body p,
.privacy-modal-body li,
.privacy-modal-body span,
.privacy-modal-body div {
    font-size: 10pt !important;
    color: #000000 !important;
    line-height: 1.5;
}

.privacy-modal-body h1,
.privacy-modal-body h2,
.privacy-modal-body h3,
.privacy-modal-body h4,
.privacy-modal-body h5,
.privacy-modal-body h6 {
    font-size: 12pt !important;
    color: #000000 !important;
    margin-bottom: 10px;
    margin-top: 15px;
}

/* Force white background and black text in Dark Mode */
body.dark-mode .privacy-modal-content {
    background-color: #ffffff !important;
}

body.dark-mode .privacy-modal-content,
body.dark-mode .privacy-modal-content * {
    color: #000000 !important;
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cookie Consent Banner Styles */
.site-prefs-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9) !important;
    text-align: center;
    padding: 1.5rem 1rem;
    z-index: 9999;
    box-sizing: border-box;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    animation: slideUpBanner 0.6s ease-out forwards;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-content p {
    margin: 0 0 1rem 0;
    color: #000000 !important;
    max-width: 100%;
}

.cookie-consent-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-prefs-banner .btn {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
    border: none !important;
    margin: 0;
}

.site-prefs-banner .btn:hover {
    background-color: #2980b9 !important;
}
.contact-sym-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.contact-sym-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    align-items: stretch;
}
.contact-sym-box {
    flex: 1;
    min-width: 300px;
    background: var(--bg-card, #ffffff);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
    color: var(--text-dark, #333);
    display: flex;
    flex-direction: column;
}
.contact-sym-box.full {
    flex: 1 1 100%;
    align-items: center;
    text-align: center;
}
.contact-sym-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color, #333);
}
.contact-sym-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.contact-sym-form label {
    margin-bottom: 5px;
    font-weight: bold;
}
.contact-sym-form input, .contact-sym-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--text-dark, #333);
    background: #fff;
}
.contact-sym-form button {
    margin-top: auto;
    width: 100%;
}
body.dark-mode .contact-sym-box {
    background: var(--bg-card, #1e1e1e);
    color: var(--text-light, #f1f1f1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
body.dark-mode .contact-sym-box h3,
body.dark-mode .contact-sym-box p,
body.dark-mode .contact-sym-box label,
body.dark-mode .contact-sym-box strong {
    color: var(--text-light, #f1f1f1);
}
body.dark-mode .contact-sym-box input,
body.dark-mode .contact-sym-box textarea {
    background: #2a2a2a;
    color: var(--text-light, #f1f1f1);
    border: 1px solid #444;
}
body.dark-mode .contact-sym-box input::placeholder,
body.dark-mode .contact-sym-box textarea::placeholder {
    color: #aaa;
}
@media (max-width: 600px) {
    .contact-sym-box { padding: 25px; }
}

/* --- Global Utility Classes --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-100 { width: 100%; }
.m-0 { margin: 0; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.fw-bold { font-weight: bold; }
.flex-grow { flex-grow: 1; }
.relative { position: relative; }
.flex-col { flex-direction: column; }
.block-btn { display: block; box-sizing: border-box; line-height: normal; }

/* --- Buttons --- */
.btn-full { width: 100%; box-sizing: border-box; display: block; text-align: center; }
.btn-disabled { pointer-events: none; }
.btn-danger { background-color: #e74c3c !important; color: white !important; border: none; }
.btn-secondary { background-color: #6c757d !important; color: white !important; border: none; }
.btn-sm { padding: 5px 15px; font-size: 0.9rem; }
.btn-edit { margin-right: 5px; }

/* --- Forms & Inputs --- */
.form-input { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; }
.block-label { display: block; margin-bottom: 10px; }
.radio-label { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.checkbox-label { cursor: pointer; font-weight: normal; display: flex; align-items: flex-start; gap: 10px; }
.checkbox-input { width: auto; margin-top: 5px; }
.grid-form { display: grid; gap: 10px; }

/* --- Alerts --- */
.alert-success { background-color: #eaf7ef; color: #1b662f; border: 1px solid #b6e2c4; }

/* --- Article Specific --- */
.article-container { max-width: 800px; margin: 0 auto; padding: 20px; background: var(--bg-card); border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); text-align: left; color: var(--text-dark); }
.article-container h1 { text-align: center; }
.article-image { width: 100%; max-height: 400px; object-fit: cover; border-radius: 10px; margin-bottom: 20px; }
.article-meta { color: #666; font-size: 0.9em; margin-bottom: 20px; }
body.dark-mode .article-meta { color: #aaa; }
.article-content { line-height: 1.8; font-size: 1.1rem; white-space: pre-wrap; color: var(--text-dark); }
.article-actions { float: right; margin-bottom: 10px; margin-top: 20px; }
.inline-form { display: inline; }

/* --- Exam / Quiz Specific --- */
.hunter-container { max-width: 1200px; margin: 0 auto; padding: 20px; box-sizing: border-box; width: 100%; }
.hunter-options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 40px; }
.hunter-card { background: var(--bg-card, #fff); padding: 40px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hunter-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.hunter-card h3 { color: var(--text-dark); font-size: 24px; margin-bottom: 15px; }
.hunter-card p { color: var(--text-dark); margin-bottom: 25px; line-height: 1.6; }
.hunter-select { width: 100%; padding: 12px 15px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 16px; margin-bottom: 20px; background-color: #fff; cursor: pointer; }
.clickable-card { cursor: pointer; }
.exam-selection-title { color: var(--text-light); font-size: 2rem; margin-bottom: 0; }
.card-action { margin-top: auto; padding-top: 20px; }
#quiz-form { max-width: 800px; margin: 40px auto; background: var(--bg-card, #fff); padding: 30px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); box-sizing: border-box; }
.quiz-layout { display: flex; flex-direction: column; min-height: 400px; height: auto; width: 100%; max-width: 100%; box-sizing: border-box; }
.quiz-header { flex: 0 0 auto; border-bottom: 1px solid #eee; margin-bottom: 15px; padding-bottom: 10px; }
.quiz-header img { max-width: 100%; height: auto; margin-bottom: 10px; }
.quiz-header h3 { margin-top: 0; }
.quiz-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; }
.quiz-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-top: 1px solid #eee; margin-top: 20px; padding-top: 15px; }
.option-label { display: block; }
.result-box { text-align: center; justify-content: center; align-items: center; }
.action-btn-container { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; width: 100%; }

/* --- Progress Bar --- */
/* --- Exam Progress Tracker --- */
:root {
    --dot-idle: #ffffff;
    --dot-idle-border: #c3cbd1;
    --dot-answered: #8FAD88;
    --dot-correct: #2e9e63;
    --dot-incorrect: #d64545;
    --dot-ring: #25583c;
    --dot-track: rgba(0, 0, 0, 0.12);
}

body.dark-mode {
    --dot-idle: #3b3b3b;
    --dot-idle-border: #5a5a5a;
    --dot-answered: #7d9c76;
    --dot-correct: #46b97c;
    --dot-incorrect: #ef6b6b;
    --dot-ring: #9fe0b0;
    --dot-track: rgba(255, 255, 255, 0.16);
}

.progress-panel { width: 100%; max-width: 600px; margin: 0 auto 20px; }

/* Linear meter: readable at a glance, no counting of dots required */
.progress-meter { height: 6px; border-radius: 999px; background-color: var(--dot-track); overflow: hidden; margin-bottom: 12px; }
.progress-meter__fill { display: block; height: 100%; width: 0; border-radius: 999px; background-color: var(--accent-color); transition: width 0.25s ease; }

.progress-bar-container { display: flex; flex-wrap: wrap; gap: 1px; justify-content: center; width: 100%; }

.progress-dot {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    margin: 0;
    padding: 5px;
    line-height: 0;
    border-radius: 50%;
    cursor: default;
    flex-shrink: 0;
}

.progress-dot__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--dot-idle);
    box-shadow: inset 0 0 0 1px var(--dot-idle-border);
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0;
    color: transparent;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.progress-dot.answered .progress-dot__mark { background-color: var(--dot-answered); box-shadow: inset 0 0 0 1px var(--dot-answered); }
.progress-dot.correct .progress-dot__mark { background-color: var(--dot-correct); box-shadow: inset 0 0 0 1px var(--dot-correct); }
.progress-dot.incorrect .progress-dot__mark { background-color: var(--dot-incorrect); box-shadow: inset 0 0 0 1px var(--dot-incorrect); }

/* Current question during the exam */
.progress-dot.is-current .progress-dot__mark {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--dot-ring);
}

/* Review mode: dots become numbered, clickable chips */
.progress-bar-container.is-review { gap: 2px; }
.progress-bar-container.is-review .progress-dot { padding: 4px; cursor: pointer; }
.progress-bar-container.is-review .progress-dot__mark { width: 26px; height: 26px; font-size: 11px; color: #fff; }
.progress-bar-container.is-review .progress-dot:hover .progress-dot__mark { transform: scale(1.12); }
.progress-bar-container.is-review .progress-dot.is-active .progress-dot__mark {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 3px var(--dot-ring);
}
/* "Only mistakes" filter dims the answers the user got right */
.progress-bar-container.filter-errors .progress-dot.correct { opacity: 0.3; }

.progress-dot:focus-visible { outline: 2px solid var(--dot-ring); outline-offset: 1px; }

/* Legend + filter */
.progress-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center; margin-top: 12px; font-size: 0.85rem; color: var(--text-dark); }
.progress-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.progress-legend__swatch { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.progress-legend__swatch--correct { background-color: var(--dot-correct); }
.progress-legend__swatch--incorrect { background-color: var(--dot-incorrect); }
.progress-filter {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding: 5px 12px;
    min-height: 32px;
    border-radius: 999px;
    border: 1px solid var(--dot-idle-border);
    background: transparent;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-family: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.progress-filter:hover { border-color: var(--accent-color); }
.progress-filter[aria-pressed="true"] { background-color: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.progress-filter:focus-visible { outline: 2px solid var(--dot-ring); outline-offset: 2px; }

.correct-answer-tag { display: inline-block; margin-left: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }

@media (max-width: 480px) {
    .progress-bar-container.is-review .progress-dot__mark { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .progress-meter__fill,
    .progress-dot__mark { transition: none; }
}
.correct-answer { background-color: #d4edda !important; border-color: #c3e6cb !important; }
.incorrect-answer { background-color: #f8d7da !important; border-color: #f5c6cb !important; }

/* --- Access & Form Specific --- */
.access-container { max-width: 860px; margin: 40px auto; padding: 20px; }
.access-card { background: var(--bg-card,#fff); border-radius: 14px; padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.access-card p { color: var(--text-color, #333); }
.access-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.access-section { flex: 1 1 280px; border: 1px solid #e1e1e1; border-radius: 10px; padding: 20px; }
.access-section h3 { margin-top: 0; }
body.dark-mode .access-card p { color: #e0e0e0; }
body.dark-mode .access-section { border-color: #444; }

/* --- Checkout Progress --- */
.progress-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.progress-step { flex: 1; text-align: center; position: relative; }
.progress-step:not(:last-child)::after { content: ''; position: absolute; top: 24px; left: 50%; right: -50%; height: 2px; background-color: #ddd; z-index: 0; }
.progress-step.active:not(:last-child)::after { background-color: var(--accent-color, #25583c); }
.progress-circle { width: 50px; height: 50px; border-radius: 50%; background-color: #f0f0f0; border: 2px solid #ddd; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-weight: bold; transition: all 0.3s ease; position: relative; z-index: 1; }
.progress-step.active .progress-circle, .progress-step.completed .progress-circle { background-color: var(--accent-color, #25583c); border-color: var(--accent-color, #25583c); color: white; }
.progress-step.completed .progress-circle::after { content: '✓'; position: absolute; }
.progress-label { font-size: 14px; font-weight: 500; color: #666; margin-top: 8px; }
.progress-step.active .progress-label { color: var(--accent-color, #25583c); font-weight: 600; }
.checkout-container { max-width: 900px; margin: 40px auto; padding: 20px; width: 100%; box-sizing: border-box; }
.checkout-card { background: var(--bg-card, #fff); border-radius: 12px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); width: 100%; box-sizing: border-box; color: var(--text-dark); }
.summary-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; background: var(--bg-body, #fff); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.summary-table th, .summary-table td { padding: 16px; border-bottom: 1px solid #eee; text-align: left; }
.summary-table th { background-color: var(--bg-light, #f8f9fa); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }
.summary-table tfoot td { font-weight: bold; font-size: 1.15rem; border-bottom: none; border-top: 2px solid #ddd; }
body.dark-mode .summary-table th, body.dark-mode .summary-table td { border-bottom: 1px solid #444; }
body.dark-mode .summary-table tfoot td { border-top: 2px solid #555; }
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 250px; }
.form-group.flex-2 { flex: 2; }
.form-group.flex-3 { flex: 3; }
.form-step { display: none; }
.form-step.active { display: block; }
.step-title { font-size: 22px; font-weight: 600; margin-bottom: 20px; text-align: center; color: var(--text-dark); }
.person-type-selector { display: flex; gap: 20px; justify-content: center; background: var(--bg-light); padding: 15px; border-radius: 8px; margin-bottom: 25px; }
.form-actions { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 30px; }

/* --- Toast Notifications --- */
.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { padding: 16px 24px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-weight: 500; animation: slideIn 0.3s ease-out; max-width: 400px; word-wrap: break-word; }
.toast.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.toast.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.toast.info { background-color: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
@keyframes slideIn { from { transform: translateX(-50%) translateY(-20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(-50%) translateY(0); opacity: 1; } to { transform: translateX(-50%) translateY(-20px); opacity: 0; } }
.toast.removing { animation: slideOut 0.3s ease-out; }

/* --- Auth & Profile --- */
.auth-box { max-width: 400px; margin: 50px auto; }
.auth-divider { border: 0; border-top: 1px solid #ddd; margin-bottom: 10px; }
.auth-or { background: var(--bg-card, #fff); padding: 0 10px; position: relative; top: -22px; color: #666; font-size: 0.9em; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; margin-bottom: 20px; object-fit: cover; }
.text-danger { color: #b00000; }
.text-success { color: #1b662f; }
.google-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.0001; overflow: hidden; z-index: 10; }

/* --- Admin Specific --- */
body.dark-mode .admin-container, .admin-container { background: #ffffff !important; color: #000000 !important; }
body.dark-mode .admin-container h2, body.dark-mode .admin-container h3, body.dark-mode .admin-container label, body.dark-mode .admin-container p, body.dark-mode .admin-container td, body.dark-mode .admin-container th, .admin-container h2, .admin-container h3, .admin-container label, .admin-container p, .admin-container td, .admin-container th { color: #000000 !important; }
body.dark-mode .admin-container .stats-table th, .admin-container .stats-table th { background-color: #f8f9fa !important; color: #000000 !important; }
body.dark-mode .admin-container .contact-form input, body.dark-mode .admin-container .contact-form textarea, body.dark-mode .admin-container .contact-form select, .admin-container .contact-form input, .admin-container .contact-form textarea, .admin-container .contact-form select { background-color: #ffffff !important; color: #000000 !important; border: 1px solid #cccccc !important; }
.stats-table input[type="text"], .stats-table input[type="number"] { width: 100%; padding: 6px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.stats-table input[type="checkbox"] { transform: scale(1.5); }
.admin-task-buttons { display: flex; justify-content: center; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
body.dark-mode #admin-task-buttons .filter-btn, #admin-task-buttons .filter-btn { background-color: #000000 !important; color: #ffffff !important; border: 1px solid #000000 !important; }
body.dark-mode #admin-task-buttons .filter-btn.active, #admin-task-buttons .filter-btn.active { background-color: #444444 !important; border-color: #444444 !important; }
.promo-result { background: #eaf7ef; border: 1px solid #b6e2c4; border-radius: 8px; padding: 10px; }
.admin-actions { margin: 8px 0; display: flex; gap: 8px; align-items: center; }
.text-muted { color: #6c757d; }
.text-sm { font-size: 0.9rem; }
.expired-row { background-color: #fff0f0; }
.active-row { background-color: #f4fff1; }
.align-end { align-items: flex-end; }

/* --- Debug / DB Specific --- */
.db-table { width: 100%; border-collapse: collapse; background: #f9f9f9; margin-bottom: 20px; }
.db-table th { background: #8FAD88; color: white; padding: 8px; text-align: left; }
.db-table td { padding: 8px; border-bottom: 1px solid #ddd; }
.break-word { word-break: break-all; }
.debug-console { background: #1e1e1e; color: #d4d4d4; padding: 20px; border-radius: 8px; font-family: 'Courier New', monospace; font-size: 0.95rem; overflow-x: auto; line-height: 1.6; }
.debug-box { background: #e7f3ff; border: 1px solid #b3d9ff; padding: 15px; border-radius: 4px; margin: 10px 0; color: #004085; }

/* --- Macibu Materiali (Videos) --- */
#materiali h2 { text-align: center; margin-bottom: 24px; color: var(--text-dark, #00394d); font-size: 2.05rem; letter-spacing: 0.02em; }
body.dark-mode #materiali h2 { color: #fff; }
.material-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 1280px; margin: 0 auto; padding: 0 14px; box-sizing: border-box; }
.material-grid > * { min-width: 0; width: 100%; box-sizing: border-box; }
.video-card { background: var(--bg-card, #fff); border-radius: 14px; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12); border: 1px solid var(--border-color, #e5ecf5); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; display: flex; flex-direction: column; min-height: 340px; width: 100%; max-width: 100%; }
.video-card button { display: flex; flex-direction: column; width: 100%; height: 100%; border: none; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.video-card button:focus { outline: 2px solid #0785c9; outline-offset: 2px; }
.video-card-content { padding: 18px 16px 20px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22); }
.video-card a { display: block; color: inherit; text-decoration: none; }
.video-thumb { height: 172px; background-position: center; background-size: cover; position: relative; }
.video-thumb::after { content: '\25B6'; position: absolute; inset: 0; color: rgba(255, 255, 255, 0.95); font-size: 48px; font-weight: 900; display: grid; place-items: center; text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); background: rgba(0,0,0,0.15); }
.video-card h3 { font-size: 1.18rem; margin: 0 0 8px; color: var(--text-dark, #1f3f57); line-height: 1.35; text-align: center; }
.video-card p { text-align: center; margin: 0; color: var(--text-dark); font-size: 0.95rem; line-height: 1.5; min-height: 56px; }
.video-card-content p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.video-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 9999; }
.video-modal.active { display: flex; }
.video-modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(2px); }
.video-modal-content { position: relative; max-width: 900px; width: min(95%, 900px); background: #041123; border-radius: 14px; overflow: hidden; z-index: 2; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4); }
.video-modal-close { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(15, 15, 15,0.85); color: #fff; font-size: 1.25rem; cursor: pointer; z-index: 3; }
.video-embed-wrapper { position: relative; overflow: hidden; width: 100%; padding-top: 56.25%; }
.video-embed-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.no-scroll { overflow: hidden; }
.payment-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 10001; }
.payment-modal-content { background: white; padding: 40px; border-radius: 12px; max-width: 500px; width: 90%; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* Responsive adjustments */
@media (max-width: 960px) {
    .material-grid { gap: 14px; padding: 0 12px; }
    .video-card { min-height: auto; padding: 0; border-radius: 12px; }
    .video-card h3 { font-size: 1.06rem; }
    .video-card p { font-size: 0.92rem; }
    .video-thumb { height: 160px; }
}
@media (max-width: 760px) {
    .material-grid { grid-template-columns: 1fr !important; }
    .video-card { min-width: 0; }
    .video-thumb { height: 160px; }
}
@media (max-width: 600px) {
    .quiz-layout { min-height: auto; }
    .option-label { padding: 12px; background-color: var(--bg-light); border-radius: 8px; border: 1px solid #ddd; display: block; cursor: pointer; }
    .option-label input { margin-right: 10px; }
    #tests { padding: 10px; }
    .question { padding: 15px; }
    #quiz-form { padding: 15px; }
    .hunter-options-grid { grid-template-columns: 1fr; }
    .checkout-card { padding: 20px; }
    .form-row { flex-direction: column; gap: 0; }
    .summary-table th, .summary-table td { padding: 12px; }
    .progress-bar { margin-bottom: 30px; }
    .progress-circle { width: 40px; height: 40px; font-size: 14px; }
    .progress-label { font-size: 12px; }
}
@media (max-width: 640px) {
    #materiali h2 { font-size: 1.7rem; }
    .video-thumb { height: 152px; }
    .video-card h3 { font-size: 1.02rem; }
    .video-card p { font-size: 0.9rem; }
    .video-card .video-card-content {padding: 14px 12px 16px;}
    .material-grid {gap: 10px; padding: 0 8px;}
    .video-modal-content { width: 100%; padding: 0; border-radius: 0; }
}
@media (max-width: 420px) {
    .video-thumb { height: 138px; }
    .video-card-content { padding: 12px 10px 14px; }
    #materiali h2 { font-size: 1.45rem; }
    .video-card h3 { font-size: 0.98rem; line-height: 1.3; }
    .video-card p { font-size: 0.85rem; min-height: 48px; }
}

/* --- Calendar Specific Mobile Adjustments --- */
@media (max-width: 768px) {
    /* Set a fixed height for the month header container on small screens */
    .stats-table thead th:nth-child(2) > div {
        height: 50px;
        align-items: flex-end; /* Align text to the bottom for better look */
    }
    /* Rotate the month labels to be vertical */
    .stats-table thead th:nth-child(2) > div > div {
        writing-mode: vertical-lr;
        transform: rotate(180deg);
        padding-bottom: 5px;
    }
}
/* deploy test Sat Aug 29 10:17:05 UTC 2026 */
