:root {
            --bg-body: #0a0a0a;
            --bg-navbar: #121212;
            --bg-card: #161616;
            --bg-item: #1e1e1e;
            --indigo-bright: #6366f1;
            --indigo-deep: #4f46e5;
            --text-main: #f4f4f5;
            --text-dim: #a1a1aa;
            --border: rgba(255, 255, 255, 0.06);
            --glow: rgba(79, 70, 229, 0.15);
        }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0; padding: 0px;
    background-image: 
        radial-gradient(circle at 0% 0%, var(--glow) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(0,0,0,1) 0%, transparent 50%);
}

.app-container {
    display: flex; gap: 30px; max-width: 1300px; margin: 0 auto;
}

/* Szachownica */
.board-pane { flex: 1.5; background: var(--bg-card); padding: 20px; border-radius: 8px; }
#board { max-width: 600px; margin: 0 auto; 
    min-width: 50vh;
    width: min(90%, 60vh);
    aspect-ratio: 1 / 1;    /* Musi być idealnym kwadratem */
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.8));}

.board-controls { display: flex; gap: 10px; margin-top: 15px; justify-content: center; }
button {
    background: #333; color: white; border: none; padding: 10px 20px;
    border-radius: 4px; cursor: pointer; transition: 0.2s;
}
button:hover { background: #444; }

/* Lista plików */
.sidebar { flex: 1; background: var(--bg-card); padding: 20px; border: 1px solid #333; border-radius: 8px; display: flex; flex-direction: column; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);}
.upload-zone { border: 2px dashed #444; padding: 20px; text-align: center; border-radius: 8px; margin-bottom: 20px; }
.btn-upload { background: #4f46e5; padding: 10px 15px; border-radius: 5px; cursor: pointer; display: inline-block; font-weight: bold; }
#pgn-input { display: none; }

/* Stylizacja listy plików */
.file-manager {
    flex-grow: 1;
    overflow-y: auto;
    background: #161616;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #333;
}

#file-list { list-style: none; padding: 0; margin: 0; }

/* Kluczowa zmiana: label jako kontener sprawia, że cała powierzchnia jest klikalna */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #252525;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer; /* Kursor rączki na całym pasku */
    border: 1px solid transparent;
    transition: 0.2s all ease;
    user-select: none; /* Zapobiega zaznaczaniu tekstu przy klikaniu */
}

.file-item:hover {
    background: #2a2a2a;
    border-color: #6366f1;
}

/* Ukrywamy brzydki, domyślny checkbox */
.file-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #444;
    border-radius: 4px;
    background: #121212;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}

/* Wygląd po zaznaczeniu (kolor Indigo) */
.file-item input[type="checkbox"]:checked {
    background-color: #4f46e5;
    border-color: #6366f1;
}

/* Dodanie "ptaszka" przez pseudo-element */
.file-item input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.file-item span {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 500;
}

/* Poprawka status baru */
#status-bar {
    margin-top: 15px;
    padding: 10px;
    background: #161616;
    border-radius: 4px;
    font-size: 0.85em;
    color: #6366f1;
    border-left: 3px solid #4f46e5;
}
/* Drzewko ruchów */
.moves-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.move-btn {
    background: #4f46e5; color: white; font-weight: bold; padding: 8px 15px;
    border-radius: 4px; cursor: pointer; border: none;
}
.move-btn:hover { background: #6366f1; }

/* Podświetlanie pola na szachownicy */
.highlight-repertoire {
    box-shadow: inset 0 0 0 5px rgba(99, 102, 241, 0.7) !important;
}

/* Klasa pomocnicza do trybu struktur */
.hide-non-pawns .square-55d63 img:not([data-piece*="P"]) {
    display: none !important;
}

/* Opcjonalnie: lekkie przyciemnienie pól, żeby pionki były lepiej widoczne */
.hide-non-pawns #board {
    filter: brightness(0.9);
}



.analysis-page { overflow-y: auto !important; }

.analysis-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.analysis-header {
    background: var(--bg-card);
    padding: 0px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #4f46e5;
}

.api-controls { display: flex; gap: 10px; }
.api-controls input, .api-controls select {
    background: #121212;
    border: 1px solid #333;
    color: white;
    padding: 8px;
    border-radius: 4px;
}

.analysis-main { 
    display: flex; 
    gap: 20px; 
    height: 85vh; 
    min-width: 750px;  /* Nie pozwoli się zwęzić bardziej */
    min-height: 600px; /* Nie pozwoli się skrócić bardziej */
}

.stats-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

#accuracy-gauge {
    font-size: 2em;
    font-weight: bold;
    color: #6366f1;
    margin: 10px 0;
}

.mistakes-list {
    flex-grow: 1;
    background: #161616;
    border-radius: 12px;
    overflow-y: auto;
    padding: 10px;
}

.mistake-item {
    background: var(--bg-item);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    border-left: 4px solid #ef4444;
    transition: 0.2s;
}

.mistake-item:hover { transform: translateX(5px); background: #252525; }

.analysis-board-section {
    flex: 1.5;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#analysis-board {
    /* Szachownica zajmie 95% szerokości LUB wysokości (zależnie co mniejsze) */
    min-width: 50vh;
    width: min(90%, 60vh);
    aspect-ratio: 1 / 1;    /* Musi być idealnym kwadratem */
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.8));
}

.mistake-info {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: #121212;
    border-radius: 8px;
}

.btn-back {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.9em;
    padding: 8px;
}

.btn-red {
    text-decoration: none;
    color: white;
    background-color: #470900;
    font-size: 0.9em;
    padding: 8px;
}

.btn-red:hover {
    background-color: #AB1700;
    color: white;
}

/* Stylizacja Topbaru */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-navbar);
    padding: 0 40px;
    height: 60px;
    border-bottom: 2px solid #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.topbar-logo {
    color: #6366f1;
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: 1px;
}

.topbar-menu {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 6px;
}

.nav-btn:hover {
    color: white;
    background: #2d2d2d;
}

.nav-btn.active {
    color: white;
    background: #4f46e5;
}

/* Poprawka kontenera */
.app-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Kontener dla całego przełącznika */
.custom-toggle {
    display: block;
    cursor: pointer;
    user-select: none;
    margin-top: 10px;
}

/* Ukrywamy oryginalny checkbox */
.custom-toggle input {
    display: none;
}

/* Tło przełącznika - dopasowane do Twoich .file-item */
.toggle-track {
    display: flex;
    align-items: center;
    position: relative;
    background: #252525; /* Takie jak Twoje file-item */
    border: 1px solid #444;
    padding: 10px 15px;
    border-radius: 6px;
    transition: 0.3s all ease;
    min-height: 25px;
}

/* Tekst wewnątrz */
.toggle-text {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-left: 35px; /* Miejsce na kółko */
    font-weight: 500;
}

/* Kółko (thumb) */
.toggle-thumb {
    position: absolute;
    left: 10px;
    width: 18px;
    height: 18px;
    background: #444;
    border-radius: 4px; /* Kwadratowy z lekkim zaokrągleniem jak Twoje przyciski */
    transition: 0.3s all cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stan aktywny (Checked) */
.custom-toggle input:checked + .toggle-track {
    background: rgba(79, 70, 229, 0.15); /* Delikatne Indigo tło */
    border-color: #6366f1;
}

.custom-toggle input:checked + .toggle-track .toggle-thumb {
    background: #6366f1; /* Jasne Indigo */
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* Hover efekt */
.custom-toggle:hover .toggle-track {
    background: #2a2a2a;
    border-color: #6366f1;
}

/* --- NOWOCZESNY SYSTEM PRZYCISKÓW --- */

.controls-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* Wspólne bazowe style */
.btn-primary, .btn-secondary, .btn-outline, .btn-danger-ghost {
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 1. Przycisk Główny (Indigo) */
.btn-primary {
    background: #4f46e5;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #6366f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* 2. Przyciski Pomocnicze (Ciemne) */
.button-grid {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background: #252525; /* Jak Twoje file-item */
    color: #e0e0e0;
    border: 1px solid #444;
    flex: 1;
}

.btn-secondary:hover {
    background: #2d2d2d;
    border-color: #6366f1;
    color: white;
}

/* 3. Przycisk Outline (Zapisz start) */
.btn-outline {
    background: transparent;
    border: 1px solid #4f46e5;
    color: #6366f1;
}

.btn-outline:hover {
    background: rgba(79, 70, 229, 0.1);
}

/* 4. Przycisk Danger (Reset startu) */
.btn-danger-ghost {
    background: transparent;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 400;
}

.btn-danger-ghost:hover {
    color: #ef4444;
}

/* Ikony w przyciskach */
.icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* --- KONTENER SIDEBARU --- */
.analysis-sidebar {
    background: var(--bg-navbar);
    width: min(350px, 80%);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* --- KARTA STATUSU --- */
.stats-card {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #4f46e5;
}

.stats-card h3 {
    margin: 0 0 8px 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.status-msg {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

/* --- ETYKIETY SEKCJI --- */
.control-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

/* --- STYLIZACJA SELECTA (KOLOR) --- */
.select-wrapper {
    position: relative;
    background: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

/* Własna strzałka "V" po prawej stronie */
.select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    color: #64748b;
    position: absolute;
    right: 15px;
    pointer-events: none; /* Kliknięcie przechodzi przez strzałkę do selecta */
}

.select-wrapper:hover::after {
    color: #6366f1;
}

.select-wrapper:hover {
    border-color: #6366f1;
    background: #2a2a2a;
}

.select-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #6366f1;
}

.select-wrapper select {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none; /* Ukrycie systemowej strzałki */
}

/* Stylizacja samej listy rozwijanej (Option) */
.select-wrapper select option {
    background-color: #1e1e1e; /* Ciemne tło listy */
    color: #ffffff;            /* Biały tekst */
    padding: 10px;
    font-size: 0.95rem;
}

.select-wrapper select:focus {
    background-color: #252525;
    border-radius: 8px;
}
/* Usunięcie niebieskiego podświetlenia w niektórych przeglądarkach */
.select-wrapper select option:hover,
.select-wrapper select option:focus,
.select-wrapper select option:active {
    background-color: #4f46e5 !important;
    color: white !important;
}

/* --- PRZYCISKI GŁÓWNE I SIATKA --- */
.btn-primary {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary:hover {
    background: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.button-grid {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    flex: 1;
    background: #252525;
    border: 1px solid #444;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: #333;
    border-color: #6366f1;
    color: #fff;
}

/* --- PRZEŁĄCZNIK (SWITCH) --- */
.custom-toggle {
    display: block;
    cursor: pointer;
    margin: 8px 0;
}

.custom-toggle input { display: none; }

.toggle-track {
    display: flex;
    align-items: center;
    background: #252525;
    border: 1px solid #444;
    padding: 12px 16px;
    border-radius: 8px;
    transition: 0.3s;
}

.toggle-thumb {
    width: 16px;
    height: 16px;
    background: #64748b;
    border-radius: 4px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-text {
    margin-left: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #cbd5e1;
}

.custom-toggle input:checked + .toggle-track {
    border-color: #6366f1;
    background: rgba(79, 70, 229, 0.1);
}

.custom-toggle input:checked + .toggle-track .toggle-thumb {
    background: #6366f1;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

/* --- STOPKA SIDEBARU (ZAPIS) --- */
.footer-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-outline:hover {
    border-color: #6366f1;
    color: #fff;
    background: rgba(99, 102, 241, 0.05);
}

.btn-danger-ghost {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.75rem;
    padding: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-danger-ghost:hover {
    color: #ef4444;
}

/* Ikony */
.icon {
    font-size: 1.1rem;
    line-height: 1;
}

#training-board {
    /* Szachownica zajmie 95% szerokości LUB wysokości (zależnie co mniejsze) */
    min-width: 60vh;
    width: min(95%, 75vh);
    aspect-ratio: 1 / 1;    /* Musi być idealnym kwadratem */
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.8));
}

/* --- ANALIZA API: NOWE STYLE --- */

/* Specjalny grid dla opcji API */
.api-options-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

/* Ikony wewnątrz inputów */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.api-input {
    padding-left: 35px !important;
}

/* Karta Skuteczności - Efekt WOW */
.highlight-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, #252525 100%);
    border: 1px solid #4f46e5 !important;
    text-align: center;
}

.accuracy-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #6366f1;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    margin: 10px 0;
}

.stats-subtext {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filtry i Lista */
.filters-compact {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.select-wrapper.mini select {
    padding: 6px 10px;
    font-size: 0.75rem;
}

.scrollable-results {
    background: #141414;
    border-radius: 8px;
    min-height: 50px;
    height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
}

/* Karta błędu pod szachownicą */
.info-panel-card {
    width: 95%;
    max-width: 800px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-top: 25px;
    border: 1px solid #333;
    overflow: hidden;
}

.info-panel-card .card-header {
    background: #252525;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #333;
}

.info-panel-card .card-header h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin: 0;
    color: #94a3b8;
}

.info-panel-card .dot {
    width: 8px;
    height: 8px;
    background: #4f46e5;
    border-radius: 50%;
}

.info-panel-card .card-body {
    padding: 20px;
    color: #cbd5e1;
}

/* --- REAKTYWACJA OSTRZEŻENIA --- */
#screen-size-warning {
    display: none;
    position: fixed;
    inset: 0;
    background: #0f172a;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

@media (max-width: 749px), (max-height: 349px) {
    #screen-size-warning { display: flex; }
    body { overflow: hidden; }
}

/* --- ULEPSZONE INPUTY --- */
.api-input {
    width: 100%;
    background: #161616;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 14px 12px 40px; /* Miejsce na ikonę */
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.api-input:focus {
    border-color: #4f46e5;
    background: #1a1a1a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Sekcja listy gier - przejmuje resztę wolnego miejsca */
.results-section {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    min-height: 0; /* Ważne dla flexboxa, aby scroll działał poprawnie */
}

.scrollable-results {
    flex-grow: 1; /* Lista wypełnia całą pozostałą przestrzeń w sekcji */
    background: #141414;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    overflow-y: auto;
    margin-top: 10px;
}

/* --- CENTRALIZACJA FILTRÓW (Sortowanie) --- */
.filters-compact {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Równe kolumny */
    gap: 10px;
    width: 100%;
}

.select-wrapper.mini {
    width: 100%;
}

.select-wrapper.mini select {
    width: 100%;
    text-align: center; /* Centralizacja tekstu wewnątrz selecta */
    padding: 10px;
    background: #1c1c1c;
    border-radius: 8px;
    border: 1px solid #333;
}

/* --- CUSTOM SCROLLBAR DLA LISTY GIER --- */

/* Ukrywamy scroll poziomy i konfigurujemy pionowy */
.scrollable-results {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden; /* Całkowita blokada dolnego scrolla */
    padding-right: 5px; /* Miejsce na ładny scroll */
}

/* Wygląd całego paska scrolla */
.scrollable-results::-webkit-scrollbar {
    width: 6px; /* Cienki, elegancki pasek */
}

/* Tło scrolla (tor) */
.scrollable-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

/* Suwak (to co przesuwasz) */
.scrollable-results::-webkit-scrollbar-thumb {
    background: #334155; /* Ciemny stalowy */
    border-radius: 10px;
    transition: background 0.3s;
}

/* Suwak po najechaniu - fioletowy akcent */
.scrollable-results::-webkit-scrollbar-thumb:hover {
    background: #4f46e5; 
}

/* Firefox (alternatywna metoda stylizacji) */
.scrollable-results {
    scrollbar-width: thin;
    scrollbar-color: #334155 rgba(0, 0, 0, 0);
}

/* --- NAPRAWA FILTRÓW (SORTOWANIE I KOLOR) --- */

.filters-compact {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dwie równe kolumny */
    gap: 8px; /* Odstęp między nimi */
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

/* Resetujemy ogólne style 'select-wrapper' tylko dla filtrów */
.filters-compact .select-wrapper {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0 8px; /* Mniejszy padding wewnętrzny */
    margin: 0;      /* Usuwamy marginesy zewnętrzne, które wywalały layout */
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden; /* Gwarancja, że nic nie wyjdzie poza border-radius */
}

/* Stylizacja samego napisu wewnątrz */
.filters-compact .select-wrapper select {
    background: transparent;
    border: none;
    color: #94a3b8; /* Delikatniejszy kolor dla filtrów */
    font-size: 0.8rem;
    padding: 8px 0;
    width: 100%;
    outline: none;
    cursor: pointer;
    text-align: center;
}

/* Efekt hover tylko dla tych małych boxów */
.filters-compact .select-wrapper:hover {
    border-color: #4f46e5;
    background: #222;
}

.btn-control {
            background: #222;
            color: #fff;
            border: 1px solid var(--border);
            padding: 10px 20px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
        }

.btn-control:hover { border-color: var(--indigo-bright); background: #2a2a2a; }

.upload-zone {
    border: 2px dashed #2a2a2a;
    padding: 24px;
    text-align: center;
    border-radius: 16px;
    cursor: pointer;
    background: rgba(0,0,0,0.2);
    margin-bottom: 20px;
    transition: 0.3s;
}

.upload-zone:hover { border-color: var(--indigo-bright); background: rgba(99,102,241,0.05); }

.topbar-logo { 
    font-weight: 800; 
    font-size: 1.4rem; 
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-btn {
    background: transparent;
    color: var(--text-dim);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.85rem;
}

.nav-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-btn.active { background-color: var(--indigo-deep); color: white; }

.topbar {
    height: 64px;
    background-color: var(--bg-navbar);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.lang-opt:hover {
    background: rgba(255,255,255,0.1) !important;
}

.lang-dropdown {
    user-select: none;
}