body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color, #333);
    background-color: var(--bg-color, #f8f9fa);
    transition: background-color 0.3s, color 0.3s;
}

/* Define CSS variables for light mode */
:root {
    --text-color: #333333;
    --bg-color: #f8f9fa;
    --primary-color: #007bff;
    --accent-color: #e0a800;
    --dark-text: #e0e0e0;
    --dark-bg: #1a1a1a;
}

/* Dark Mode Variables */
body.dark-mode {
    --text-color: #e0e0e0;
    --bg-color: #121212;
    --primary-color: #4285f4;
    --accent-color: #e0a800;
    --dark-text: #e0e0e0;
    --dark-bg: #1a1a1a;
}

/* Fejléc */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
}

.logo {
    height: 40px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px !important;
    border-radius: 4px;
    transition: all 0.3s;
    color: var(--text-color);
}

.nav-link:hover:not(.navbar-brand):not(.navbar-brand *),
.nav-link.active:not(.navbar-brand):not(.navbar-brand *) {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color) !important;
}

/* Fő tartalom */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Kezdeti loader stílusa */
#initialLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dark Mode Styles */
.dark-mode #initialLoader {
    background-color: var(--dark-bg);
}

.dark-mode .card {
    background-color: #1e1e1e !important;
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
}

/* Dark mode table styles */
.dark-mode .table {
    color: #fff;
    background-color: #1e1e1e;
}

.dark-mode .table-hover tbody tr:hover {
    background-color: #2a2a2a;
}

.dark-mode .table td,
.dark-mode .table th {
    border-color: #333;
}

.dark-mode .table thead th {
    border-bottom-color: #333;
}

.dark-mode .card-body {
    background-color: #1e1e1e !important;
    color: #fff !important;
}

.dark-mode .table-dark {
    background-color: #1e1e1e;
    color: #fff;
}

.dark-mode .alert-dark {
    background-color: #2a2a2a;
    color: #fff;
    border-color: #333;
}

.dark-mode .alert-info {
    background-color: #1a1a1a;
    color: #aaa;
    border-color: #333;
}

.dark-mode .text-light {
    color: #e0e0e0 !important;
}

.dark-mode .text-muted,
.dark-mode .text-secondary {
    color: #aaaaaa !important;
}

.dark-mode .text-primary {
    color: #4285f4 !important;
}

.dark-mode .border-bottom {
    border-bottom-color: #333 !important;
}

.dark-mode input[type="number"] {
    background: #222;
    color: #eee;
    border-color: #444;
}

/* Cikkek */
.articles {
    margin-bottom: 40px;
}

.article {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.article-meta {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-image {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
    max-height: 300px;
    object-fit: cover;
}

.article-content {
    margin-bottom: 15px;
}

.article-read-more {
    display: inline-block;
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
}

.article-read-more:hover {
    text-decoration: underline;
}

/* Lábléc */
.footer {
    background-color: #f8f9fa;
    color: #212529;
    padding: 40px 0 20px;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #212529;
}

.footer a {
    color: #495057;
    text-decoration: none;
}

.footer p {
    color: #495057;
    text-decoration: none;
}

.footer a:hover {
    color: #007bff;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: #495057;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #007bff;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
    color: #adb5bd;
}

/* Betöltő */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Gombok */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 8px 16px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* Szöveg igazítás */
.text-justify {
    text-align: justify;
}

/* Reszponzív beállítások */
@media (max-width: 768px) {
    .article-title {
        font-size: 20px;
    }
    
    .main-content {
        padding: 20px 0;
    }
}

.legal-page {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 32px;
    max-width: 850px;
}

.legal-page h1, .legal-page h2 {
    color: #1a73e8;
    font-weight: 700;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .legal-page {
        padding: 12px;
        margin-top: 12px;
        margin-bottom: 12px;
    }
}
/* AI content alapstílus */
.ai-content {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.ai-content h2 {
    color: #333333;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Card container alapstílus */
.card-container {
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.news-carousel {
    position: relative;
    overflow: hidden;
}

.news-item {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item h6 {
    margin-bottom: 5px;
    font-weight: 600;
}

.news-item a {
    transition: color 0.3s ease;
}

.news-item small {
    font-size: 12px;
}

/* Dark mode támogatás */
.dark-mode .news-carousel {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-left-color: #63b3ed;
}

/* Kompakt ENG link */
.eng-link-compact {
    font-size: 12px;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.eng-link-compact:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff !important;
    border-color: #007bff;
}

.dark-mode .eng-link-compact {
    color: #4285f4;
}

.dark-mode .eng-link-compact:hover {
    background-color: rgba(66, 133, 244, 0.1);
    color: #4285f4 !important;
    border-color: #4285f4;
}

/* CAPTCHA oldal importálása */
@import url('captcha.css');