:root { 
    --bg-color: #0f0f0f; 
    --panel-bg: #151515; 
    --border-color: #333; 
    --color-window: #00e676; 
}

body {
    background-color: var(--bg-color); 
    color: #e0e0e0; 
    font-family: 'Segoe UI', sans-serif;
    margin: 0; padding: 0;
    height: 100vh; overflow: hidden;
}

.status-box {
    max-width: 600px; margin: 100px auto; background: var(--panel-bg); padding: 40px; 
    border: 1px solid var(--border-color); border-radius: 8px; text-align: center;
}

.topbar { 
    background: #1a1a1a; padding: 15px 30px; border-bottom: 1px solid var(--border-color); 
    display: flex; justify-content: space-between; align-items: center; 
}

.logo-text { color: white; font-weight: bold; font-size: 20px; letter-spacing: 1px;}
.char-display { color: var(--color-window); font-weight: bold; }

.btn { background: var(--color-window); color: #000; border: none; padding: 15px 30px; font-weight: bold; cursor: pointer; border-radius: 4px; }
.btn-small { background: #222; color: #ccc; border: 1px solid #444; padding: 6px 15px; font-weight: bold; cursor: pointer; border-radius: 4px; }
.btn-small:hover { background: #444; color: white; }

.landing-content { display: flex; flex: 1; overflow: hidden; padding: 20px; gap: 20px; }
.center-panel { flex: 1; display: flex; justify-content: center; overflow-y: auto; }

/* FIX DLA ANIMACJI KAFELKÓW (MIEJSCE OD GÓRY) */
.landing-grid { 
    display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 15px; width: 100%; 
    padding-top: 10px; /* <--- O TO CHODZIŁO */
}

.landing-card { 
    background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 4px; padding: 10px 15px; 
    cursor: pointer; transition: all 0.2s ease-in-out; display: flex; flex-direction: column; align-items: center; 
    width: 140px; min-height: 160px; /* zwiększamy minimalną wysokość na statystyki */
}
.landing-card:hover { 
    border-color: var(--color-window); 
    transform: translateY(-5px) scale(1.05); 
    background: #1a1a1a; 
}

.card-img-wrapper { width: 80px; height: 80px; margin: 10px 0; display: flex; justify-content: center; align-items: center; }
/* OBRAZKI SĄ CAŁKOWICIE JASNE (OPACITY 1) */
.landing-card img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 1; transition: 0.2s; }
.card-title { font-weight: bold; color: #888; text-transform: uppercase; font-size: 11px; text-align: center; }
.landing-card:hover .card-title { color: #fff; }

/* STATYSTYKI NAD MAPĄ */
.card-stats {
    font-size: 10px;
    color: #aaa;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
    font-weight: bold;
}

/* --- AUDIO PLAYER (z pierwszej wersji) --- */
.audio-player {
    position: fixed; bottom: 20px; left: 20px; background: rgba(20, 20, 20, 0.95);
    border: 1px solid #444; border-radius: 8px; padding: 10px 15px; display: flex;
    align-items: center; gap: 10px; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    border-left: 3px solid #00e676;
}
.audio-btn { background: #333; color: white; border: 1px solid #555; border-radius: 4px; width: 30px; height: 30px; cursor: pointer; font-size: 14px; display: flex; justify-content: center; align-items: center; transition: 0.2s; }
.audio-btn:hover { background: #00e676; color: black; border-color: #00e676; }
.audio-time { font-family: monospace; font-size: 12px; color: #ccc; min-width: 80px; text-align: center; }
.audio-slider { -webkit-appearance: none; background: #222; height: 6px; border-radius: 3px; outline: none; border: 1px solid #444; }
.audio-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #00e676; cursor: pointer; }
#audioSeek { width: 150px; }
.vol-slider { width: 60px; }
.audio-icon { font-size: 14px; color: #aaa; }


.side-panel { width: 250px; background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 4px; display: flex; flex-direction: column; overflow: hidden; }
.panel-header { background: #1a1a1a; color: #888; font-weight: bold; font-size: 12px; text-align: center; padding: 10px; border-bottom: 1px solid var(--border-color); text-transform: uppercase;}
.panel-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex: 1; }
.panel-list li { padding: 10px 15px; border-bottom: 1px solid #222; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.panel-list li:hover { background: #222; }

#mapBox { flex: 1; background: #000; z-index: 1; }

/* KONSOLA ADMINA WŁADCY ŚWIATA */
.admin-layout { display: flex; height: calc(100vh - 65px); width: 100%; background: #0f0f0f; }
.admin-sidebar { width: 350px; background: #151515; border-right: 1px solid #333; display: flex; flex-direction: column; }
.admin-search-box { padding: 15px; border-bottom: 1px solid #333; }
.admin-search { width: 100%; background: #111; border: 1px solid #444; color: white; padding: 10px; box-sizing: border-box; }
.admin-user-list { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 0; }
.admin-user-item { padding: 15px; border-bottom: 1px solid #222; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; }
.admin-user-item:hover, .admin-user-item.active { background: #222; border-left: 4px solid var(--color-window); }
.au-name { font-weight: bold; color: white; font-size: 14px; }
.au-status { font-size: 11px; color: #888; margin-top: 4px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

.admin-main { flex: 1; display: flex; flex-direction: column; overflow-y: auto; padding: 20px; }
.admin-box { background: #1a1a1a; border: 1px solid #333; border-radius: 4px; padding: 20px; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #ccc; }
.admin-table th { text-align: left; padding: 10px; border-bottom: 2px solid #444; color: #888; text-transform: uppercase; }
.admin-table td { padding: 8px 10px; border-bottom: 1px solid #222; }
.admin-table tr:hover { background: #222; }

/* --- BRAKUJĄCE KLASY ZE STAREGO PROJEKTU DLA KARTY TIMERA --- */

.t-row-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.t-row-sec { display: flex; justify-content: flex-end; gap: 5px; margin-bottom: 5px; }

/* Secondary timers (okno / respawn globalny) */
.t-sec-time { font-family: monospace; font-size: 18px; font-weight: bold; line-height: 1; color: #888; white-space: nowrap; opacity: 0.9; letter-spacing: -0.5px; }
.t-sec-blue { color: var(--color-blue); } 
.t-sec-green { color: var(--color-window); } 

/* Panele z plusami i minusami w karcie */
.t-row-ctrl { min-height: 28px; background: #151515; border-top: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: space-between; padding: 0 2px; margin-top: auto;}
.ctrl-group { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 45px; flex-shrink: 0; }
.ctrl-label { font-size: 9px; color: #666; font-weight: bold; text-transform: uppercase; line-height: 1; margin-bottom: 1px; }

/* Kolorystyka przycisków na karcie */
.lbl-gradient-blue { background: linear-gradient(to bottom, #fff, #448aff); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.lbl-green { color: var(--color-window); }

.mini-btn-box { display: flex; width: 100%; justify-content: center; gap: 1px; }
.ctrl-btn { width: 20px; height: 13px; background: #222; border: 1px solid #444; color: #ccc; font-weight: bold; font-size: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1; padding: 0; }
.ctrl-btn:hover { background: #444; color: white; }

/* Stan podświetlania kolorami w CSS */
.timer-card.state-countdown { border-left: 4px solid var(--color-countdown); }
.timer-card.state-window { border-left: 4px solid var(--color-window); background: #1a2e20; }
.timer-card.state-expired { border-left: 4px solid var(--color-expired); background: #2e1c05; }