/* --- ALAPOK ÉS VÁLTOZÓK --- */
:root {
    --bg-dark: #0a0806;
    --box-bg: rgba(15, 12, 10, 0.95);
    --gold: #d4af37;
    --gold-dim: #a38945;
    --border: #443322;
    --text: #bbb;
    --text-bright: #fff;
    --red: #ff4d4d;
    --green: #4dff88;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark) url('../images/background.png') no-repeat center top fixed;
    background-size: cover;
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* --- ELRENDEZÉS (LAYOUT) --- */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 250px 1fr 250px; /* Háromoszlopos elrendezés */
    gap: 20px;
}

@media (max-width: 1000px) {
    .wrapper { grid-template-columns: 1fr; } /* Mobil nézetben egymás alá kerülnek */
}

/* A legördülő lista (Select) és az opciók stílusának javítása */
select.btn-primary, 
select.btn-primary option {
    background-color: #1a1a1a !important; /* Sötét háttér a listának */
    color: var(--gold) !important;       /* Arany szöveg */
    padding: 10px;
}

/* Chrome, Edge és Safari autofill (automatikus kitöltés) javítása */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #000 inset !important; /* Belső árnyékkal kényszerített fekete háttér */
    -webkit-text-fill-color: var(--gold) !important;      /* Kényszerített arany szövegszín */
}

/* Firefox legördülő lista javítása */
select {
    color: var(--gold);
    background-color: #000;
}

/* --- HEADER & LOGO --- */
header {
    text-align: center;
    padding: 40px 0;
}

.main-logo {
    max-width: 400px;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.8));
    transition: transform 0.3s ease;
}

.main-logo:hover { transform: scale(1.05); }

/* --- BOX RENDSZER --- */
.box {
    background: var(--box-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.box-header {
    background: linear-gradient(to bottom, #3d2f22, #1a140f);
    color: var(--gold);
    padding: 10px 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-content {
    padding: 15px;
}

/* --- MENÜ ÉS GOMBOK --- */
.menu-link {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 8px 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    background: rgba(255,255,255,0.02);
}

.menu-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-bright);
    border-left-color: var(--gold);
    padding-left: 20px;
}

.btn-primary {
    background: #4a3a2a;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 10px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--gold);
    color: #000;
}

/* --- TÁBLÁZATOK --- */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    color: var(--gold-dim);
    font-size: 11px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* --- ANIMÁCIÓK --- */
@keyframes blink {
    50% { opacity: 0.3; }
}
.live-indicator {
    color: var(--green);
    font-weight: bold;
    animation: blink 1.5s infinite;
}