:root {
    --primary: #6F4E37; /* Kávé barna */
    --secondary: #A67B5B;
    --bg: #FDFCFB;
    --text: #2D241E;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 1.1rem 10%;
    align-items: center;
}

.logo { font-weight: 600; font-size: 1.5rem; color: var(--primary); }

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
}

/* Hero gombok elrendezése */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.registration-container {
    max-width: 500px;
    margin: -50px auto 50px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.row { display: flex; gap: 10px; }

.btn-primary, .btn-submit {
    background-color: var(--primary);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit { width: 100%; font-size: 1rem; margin-top: 10px;}
.btn-primary:hover { background-color: var(--secondary); }

/* Másodlagos gomb stílus */
.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    padding: 12px 25px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

/* ... korábbi stílusok ... */

.hidden { display: none; }

.content-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Modal háttér (overlay) */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* Modal tartalmi doboza */
.modal-content {
    max-width: 400px;
    width: 90%;
    text-align: center;
    padding: 2rem;
    animation: slideIn 0.3s ease-out;
}

.modal.hidden {
    display: none;
}

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

/* Nyelvválasztó select stílusa */
#langSelect {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid var(--secondary);
    background: white;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px; /* Lecsökkentve 40px-ről */
    background: #2D241E;
    color: #f5f5f5;
    margin-top: 30px;
    font-size: 0.9rem;
}

footer a { color: #A67B5B; text-decoration: none; }

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--primary-color); /* Vagy amilyen színt használsz */
    font-size: 0.9rem;
}

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

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

@media (max-width: 600px) {
    .row { flex-direction: column; }
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 230px; /* A tartalom rugalmas, a sidebar fix */
    gap: 30px;
    margin-top: 20px;
    align-items: start;
  
}

/* Kifejezetten a dashboard szekció szélesítése és balra húzása */
#dashboard {
    max-width: 60%;      /* 800px helyett a képernyő 95%-át kitölti */
    margin-left: 10%;     /* Balra tolás: levesszük az auto margót */
    margin-right: auto;
}

/* Sidebar fejléc stílusa */
.sidebar-header {
    border-bottom: 2px solid var(--bg);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.sidebar-header h4 {
    margin: 0;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.sidebar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tab-btn {
    padding: 12px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text);
    transition: 0.3s;
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary);
    color: white;
}

.tab-content {
    min-height: 400px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
}

table-input {
    border: 1px solid transparent;
    background: transparent;
    padding: 5px;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    transition: all 0.2s;
}

.table-input:hover {
    border: 1px solid #ddd;
    background: #fff;
}

.table-input:focus {
    border: 1px solid var(--primary-color);
    background: #fff;
    outline: none;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between; /* A két széle felé tolja az elemeket */
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa; /* Halvány háttér a sornak */
    border-radius: 8px;
    border-left: 4px solid #6f4e37; /* Egy kis "kávé" barna díszítés */
}

.stat-label {
    font-weight: 600;
    color: #555;
}

.stat-value {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

/* Mobil nézetben a menü kerüljön felülre */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        order: -1; /* Mobilon a menü jelenjen meg először */
    }
}

/* A táblázatot befoglaló doboz */
.table-container {
    max-height: 500px; /* Itt állíthatod be a kívánt magasságot */
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 15px;
}

/* Fixált fejléc */
.table-container table thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
    box-shadow: inset 0 -2px 0 #ddd;
}

/* Táblázat alapstílusának megőrzése */
.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th, .user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* Nyelvválasztó konténer elrendezése */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px; /* Távolság a felirat és a gomb között */
}

/* A felirat stílusa */
.lang-switch label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}

/* Nyelvválasztó select stílusának finomítása */
#langSelect {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--secondary);
    background: white;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.3s;
}

#langSelect:hover {
    border-color: var(--primary);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 65px; 
    width: 160px;
    object-fit: cover; /* Kitölti a keretet */
    transform: scale(1.5); /* Nagyítunk a képen, így a szélei "lemaradnak" */
    overflow: hidden;
    border-radius: 8px;
    mix-blend-mode: multiply;
}
/* A felirat stílusa a kép mellett */
.logo-text {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
}

/* Mobil nézetben kicsit kisebb logó */
@media (max-width: 480px) {
    .nav-logo {
        width: 35px;
        height: 35px;
    }
    .logo-text {
        font-size: 1.2rem;
    }
}

#about .card {
    max-height: 400px; /* Itt korlátozzuk a magasságot */
    overflow-y: auto;  /* Csak akkor jelenik meg görgetősáv, ha kell */
    padding-right: 15px; /* Hely a görgetősávnak */
    border: 1px solid #eee; /* Kicsit hangsúlyosabb keret */
}

/* Opcionális: Szebb görgetősáv kávé-barna színben */
#about .card::-webkit-scrollbar {
    width: 8px;
}
#about .card::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}
