        /* Style CSS */
        body {
            font-family: 'Roboto', sans-serif;
        }

        .main-title {
            font-size: 28px;
            font-weight: 700;
            color: #333;
            margin-bottom: 20px;
        }

        /* Zaktualizuj .header-container */
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .watched-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 0, 0, 0.5);
            color: white;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: bold;
            z-index: 1000;
        }

        .player-container {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* Aspect ratio 16:9 */
            transition: all 0.5s ease;
            border-radius: 5px; /* Dodajemy zaokrąglenie rogów */
            overflow: hidden; /* Ważne, aby zawartość nie wystawała poza zaokrąglone rogi */
        }

        #player {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 12px; /* Dodajemy zaokrąglenie rogów również dla iframe */
        }

        /* Dodajemy cień dla lepszego efektu wizualnego 
        .player-container {
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        */
        .player-resizer {
            display: none; /* Ukrywa przycisk resize */
            position: absolute;
            right: 0;
            bottom: 0;
            width: 20px;
            height: 20px;
            background-color: rgba(0, 123, 255, 0.3);
            cursor: se-resize;
            border-top-left-radius: 5px;
        }

        /* Ukrywamy również pseudoelementy */
        .player-resizer::before,
        .player-resizer::after {
            display: none;
        }

        .autoplay-button {
            margin-top: 20px;
            padding: 10px;
            background-color: #007BFF;
            color: white;
            border: none;
            cursor: pointer;
            font-size: 16px;
        }

        .autoplay-button.active {
            background-color: #28A745;
        }

        ul {
            list-style-type: none;
            padding: 0;
        }

        ul li {
            padding: 5px 0;
            display: flex;
            align-items: center;
        }

        ul li a {
            color: #007BFF;
            text-decoration: none;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: inline-block;
            max-width: 100%;
        }

        ul li a:hover {
            text-decoration: underline;
        }

        .note-icon {
            margin-left: 10px;
            cursor: pointer;
        }

        #note-form {
            margin-top: 20px;
            max-width: 50%; /* Ograniczamy szerokość do 50% strony */
            box-sizing: border-box; /* Uwzględniamy padding w szerokości */
        }

        .clear-button {
            margin-top: 20px;
            padding: 10px 20px;
            background-color: #dc3545;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }

        .clear-button:hover {
            background-color: #c82333;
        }

        .custom-playlist-container {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            height: auto;
            margin-top: 0;
            margin-left: 5px; /* przesunięte w lewo o 20px */
        }

        .custom-playlist-container input {
            width: 302px;
            height: 36px;
            padding: 0 10px;
            font-size: 16px;
            margin-right: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
        }

        .custom-playlist-container button {
            height: 36px;
            padding: 0 20px;
            background-color: #28A745;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
            line-height: 36px;
        }

        .playlist-button-container {
            display: flex;
            align-items: center;
            margin-right: 5px; /* Zmniejszamy z 10px na 5px */
            margin-bottom: 5px; /* Zmniejszamy z 10px na 5px */
        }

        .remove-playlist-button {
            background-color: #dc3545;
            color: white;
            border: none;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 12px;
            cursor: pointer;
            margin-left: 5px;
        }

        .remove-playlist-button:hover {
            background-color: #c82333;
        }

        .playlist-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-start;
            margin-bottom: 10px;
            width: 50%; /* Ustawiamy szerokość na 50% strony */
        }

        .playlist-row {
            display: flex;
            flex-wrap: wrap;
            width: 100%; /* Ustawiamy szerokość na 100% kontenera */
            margin-bottom: 5px;
        }

        .playlist-button-container {
            margin-right: 10px;
            margin-bottom: 10px;
        }

        .playlist-button {
            padding: 10px 20px; /* Przywracamy oryginalny padding */
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 5px; /* Przywracamy oryginalny border-radius */
            cursor: pointer;
            font-size: 16px; /* Przywracamy oryginalny rozmiar czcionki */
            transition: background-color 0.3s;
        }

        .playlist-row {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 5px;
            align-items: center;
        }

        .custom-playlist-row {
            width: 100%;
            margin-top: 10px;
        }

        .playlist-button:hover {
            background-color: #0056b3;
        }

        .playlist-button.active {
            background-color: #28A745;
        }

        .trim-button {
            margin-top: 20px;
            padding: 10px 20px;
            background-color: #17a2b8;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }

        .trim-button:hover {
            background-color: #138496;
        }

        .playlist-row {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 3px; /* Zmniejszamy z 5px na 3px */
            align-items: center;
        }

        .custom-playlist-row {
            justify-content: flex-start;
            width: 100%;
            margin-top: 0; /* Usuwamy górny margines */
        }

        .last-button-row {
            margin-bottom: 3px; /* Zmniejszamy z 5px na 3px */
        }

        .toggle-input-button {
            padding: 10px 20px; /* Dostosowujemy padding do innych przycisków */
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px; /* Zmieniamy rozmiar czcionki, aby pasowa do innych przycisków */
            margin-left: 10px;
            transition: background-color 0.3s;
            line-height: 1; /* Dodajemy to, aby tekst był wycentrowany w pionie */
            height: 38px; /* Ustawiamy stałą wysokość, która powinna odpowiadać wysokości innych przycisków */
            box-sizing: border-box; /* Dodajemy to, aby padding nie zwiększał cakowitej wysokości */
        }

        .toggle-input-button:hover {
            background-color: #0056b3;
        }

        #note-form {
            margin-top: 20px;
        }

        .word-translation-pair {
            display: flex;
            margin-bottom: 5px;
        }

        .word-translation-pair textarea {
            width: 100%;
            margin-bottom: 5px;
            padding: 5px;
            border: 1px solid #ccc;
            border-radius: 3px;
            resize: none;
            overflow-y: hidden;
            box-sizing: border-box;
            min-height: 30px;
            transition: height 0.1s ease;
        }

        .note-form {
            margin-top: 10px;
            padding: 10px;
            background-color: #f8f8f8;
            border: 1px solid #ddd;
            border-radius: 5px;
        }

        .word-list-button {
            margin-top: 20px;
            padding: 10px 20px;
            background-color: #17a2b8;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }

        .word-list-button:hover {
            background-color: #138496;
        }

        #word-list-container {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 600px;
            height: 80vh;
            background-color: #f8f8f8;
            border: 1px solid #ddd;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            resize: both;
            overflow: auto; /* Zmieniamy z hidden na auto */
            min-width: 400px;
            min-height: 200px;
            border-radius: 8px;
        }

        #word-list-header {
            position: sticky;
            top: 0;
            z-index: 2;
            background-color: #007BFF;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 11px 15px; /* Zwiększamy padding z 10px na 11px */
            color: white;
            border-bottom: 1px solid #0056b3;
            user-select: none;
        }

        #word-list-header h2 {
            margin: 0;
            font-size: 19px; /* Zwiększamy rozmiar czcionki z 18px na 19px */
            font-weight: 525; /* Zwiększamy font-weight z 500 na 525 */
        }

        #word-list-content {
            flex-grow: 1;
            overflow-y: auto;
            padding: 0;
        }

        #word-list-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        #word-list-table thead {
            position: sticky;
            top: 0;
            background-color: #f2f2f2;
            z-index: 1;
        }

        #word-list-table th {
            background-color: #f2f2f2;
            font-weight: bold;
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        #word-list-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        /* Reszta stylów pozostaje bez zmian */

        #word-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background-color: #007BFF;
            color: white;
            font-weight: bold;
            border-bottom: 1px solid #0056b3;
            cursor: move;
            user-select: none;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }

        #close-word-list {
            background-color: #dc3545;
            color: white;
            border: none;
            padding: 5px 11px; /* Zwiększamy padding */
            border-radius: 3px;
            cursor: pointer;
            font-size: 15px; /* Zwiększamy rozmiar czcionki */
            transition: background-color 0.3s;
        }

        #close-word-list:hover {
            background-color: #c82333;
        }

        #word-list-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        #word-list-table th, #word-list-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        #word-list-table th {
            background-color: #f2f2f2;
            font-weight: bold;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        #word-list-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        #word-list-table tr:hover {
            background-color: transparent; /* Zmieniamy z #f0f0f0 na transparent */
        }

        /* Styl dla kolumny z numeracją */
        #word-list-table td:first-child,
        #word-list-table th:first-child {
            width: 40px;
            text-align: center;
            background-color: #e9ecef;
            font-weight: bold;
        }

        .main-container {
            display: flex;
            width: 100%;
            min-height: 105vh; /* Zmniejszamy ze 120vh na 105vh */
            padding-bottom: 5%; /* Zmniejszamy z 20% na 5% */
        }

        .left-column {
            width: 44%;
            padding-right: 15px;
            min-height: 100vh; /* Zmniejszamy ze 120vh na 105vh */
        }

        .right-column {
            width: calc(56% - 0px);
            display: flex;
            flex-direction: column;
            position: relative;
            padding-left: 20px;
            padding-right: 10px;
            min-height: 85vh;
            max-height: 131vh;
            overflow-x: visible;
            overflow-y: visible;
        }

        .right-column h3 {
            margin-bottom: 10px;
            color: #007BFF;
        }

        #dictionary-select {
            margin-bottom: 10px;
            padding: 8px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 4px;
            width: 100%;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: border-color 0.3s, box-shadow 0.3s;
            
        }

        #dictionary-select:hover, #dictionary-select:focus {
            border-color: #007BFF;
            box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
            outline: none;
        }

        #dictionary-frame {
            width: 100%;
            height: 85vh; /* Zmieniamy z 75vh na 85vh */
            border: none;
        }

        /* Dostosuj szerokość player-container */
        .player-container {
            width: 100%;
        }

        /* Dostosuj szerokość playera YouTube */
        #player {
            width: 100%;
            height: 360px;
        }

        .note-form button {
            margin-top: 5px;
            padding: 5px 10px;
            background-color: #007BFF;
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 3px;
            font-size: 14px;
        }

        .note-form button:hover {
            background-color: #0056b3;
        }

        .iframe-container {
            position: relative;
            width: 100%;
            height: 85vh;
            margin-top: 1px;
            border: 1px solid #ddd;
            border-top: 1px solid #ccc;
            border-radius: 8px;
            overflow: visible;
            background-color: #f8f9fa;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            resize: none;
        }

        .iframe-container iframe {
            border-radius: 8px;
            background-color: #f8f9fa;
        }

        #dictionary-frame {
            width: 100%;
            height: 85vh;
            border: none;
        }

        #iframe-resizer {
            display: none;
        }

        #iframe-resizer {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 20px; /* Zmniejszamy z powrotem do 20px */
            height: 20px; /* Zmniejszamy z powrotem do 20px */
            background-color: #007BFF;
            cursor: se-resize;
            border-top-left-radius: 8px;
        }

        #iframe-resizer::before,
        #iframe-resizer::after {
            content: '';
            position: absolute;
            right: 3px; /* Zmniejszamy z powrotem do 3px */
            bottom: 3px; /* Zmniejszamy z powrotem do 3px */
            width: 50%;
            height: 2px; /* Zmniejszamy z powrotem do 2px */
            background-color: white;
        }

        #iframe-resizer::after {
            transform: rotate(90deg);
            transform-origin: bottom right;
        }

        .right-column h3 {
            margin-bottom: 10px;
            color: #007BFF;
            font-size: 18px;
        }

        #dictionary-select {
            margin-bottom: 10px;
            padding: 8px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 4px;
            width: 100%;
        }

        #iframe-resizer:hover {
            background-color: #0056b3;
        }

        .right-column {
            display: flex;
            flex-direction: column;
            transition: margin-top 0.3s ease;
            
        }

        #dictionary-select {
            transition: margin-bottom 0.3s ease;
        }

        .iframe-container {
            flex-grow: 1;
            transition: height 0.3s ease;
            height: 85vh; /* Zmniejszamy z 85vh na 75vh */
        }

        .right-column {
            display: flex;
            flex-direction: column;
            position: relative;
            
        }

        .dictionary-select-container {
            position: sticky;

            z-index: 100;
            padding: 0;
        }

        .dictionary-select-container.sticky {
            position: sticky;
            top: 0px;
        }

        .note-form[style*="display: block"] ~ .right-column .dictionary-select-container {
            position: sticky;
            
            
        }

        .iframe-container {
            position: relative;
            width: 100%;
            height: 85vh; /* Zmniejszamy z 85vh na 75vh */
            margin-top: 1px;
            border: 1px solid #ddd;
            border-top: 1px solid #ccc;
            border-radius: 8px;
            overflow: visible;
            background-color: #f8f9fa; /* Dodajemy jasno-szare tło */
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            resize: none;
        }

        #separator {
            height: 130px;
            width: 100%;
           /*        border-bottom: 1px solid #ffffff; /* Zmieniamy kolor linii na biały */
            /* lub */
            /* box-shadow: 0 2px 4px rgba(255,255,255,0.05); */ /* Jeśli używasz cienia, zmieniamy go na biały */
        }

        #spacer {
            height: 10px; /* Możesz dostosować tę wartość */
            width: 100%;
            visibility: hidden; /* Element jest niewidoczny, ale zajmuje miejsce */
        }

        .note-form {
            margin-top: 10px;
            padding: 10px;
            background-color: #f8f8f8;
            border: 1px solid #ddd;
            border-radius: 5px;
            max-width: 100%;
            box-sizing: border-box;
            overflow: hidden; /* Dodajemy to, aby zapobiec wystawaniu zawartości */
        }

        .word-translation-pair {
            display: flex;
            flex-direction: column;
            margin-bottom: 10px;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 10px;
        }

        .word-translation-pair:last-child {
            border-bottom: none;
        }

        .word-translation-pair textarea {
            width: 100%;
            margin-bottom: 5px;
            padding: 5px;
            border: 1px solid #ccc;
            border-radius: 3px;
            resize: none;
            min-height: 30px;
            overflow-y: hidden;
            box-sizing: border-box;
            transition: height 0.1s ease;
        }

        .note-form button {
            margin-top: 10px;
            padding: 5px 10px;
            background-color: #007BFF;
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 3px;
            font-size: 14px;
        }

        .note-form button:hover {
            background-color: #0056b3;
        }

        body {
            min-height: 100vh;
        }

        .main-container {
            min-height: 100vh;
        }
     
        .count-normal {
            font-weight: normal;
        }

        #export-word-list {
            background-color: #28a745;
            color: white;
            border: none;
            padding: 5px 11px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 15px;
            transition: background-color 0.3s;
            margin-right: 10px;
        }

        #export-word-list:hover {
            background-color: #218838;
        }

        #word-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 11px 15px;
        }

        #word-list-header > div {
            display: flex;
            align-items: center;
        }

        .button {
            background-color: #007BFF;
            color: white;
            border: none;
            padding: 5px 11px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 15px;
            transition: background-color 0.3s;
            text-decoration: none;
            display: inline-block;
        }

        .button:hover {
            background-color: #0056b3;
        }

        /* Dodaj na początku pliku */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            background-color: #f8f9fa;
            border-bottom: 1px solid #e0e0e0;
        }

        header h1 {
            margin: 0;
            font-size: 24px;
            color: #333;
        }

        .quiz-button {
            background-color: #17a2b8; /* Taki sam kolor jak przycisk "Lista słów" */
            color: white;
            border: none;
            padding: 5px 22px;
            border-radius: 5px; /* Zmienione na 5px, aby pasowało do przycisku "Lista słów" */
            cursor: pointer;
            font-size: 16px; /* Zmienione na 16px, aby pasowało do przycisku "Lista słów" */
            text-decoration: none;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.3s;
            margin-left: 10px;
            height: 38px; /* Dostosowane do wysokości przycisku "Lista słów" */
            width: 100px;
        }

        .quiz-button:hover {
            background-color: #138496; /* Ciemniejszy odcień przy najechaniu */
        }

        /* Reszta stylów pozostaje bez zmian */

        /* Dodaj te style na początku pliku lub w odpowiednim miejscu */
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .quiz-button {
            background-color: #17a2b8; /* Błękitny kolor */
            color: white;
            border: none;
            padding: 5px 22px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 15px;
            text-decoration: none;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.3s;
            margin-left: 10px;
            height: 28px;
            width: 100px;
        }

        .quiz-button:hover {
            background-color: #138496; /* Ciemniejszy odcień błękitnego przy najechaniu */
        }

        /* Zaktualizuj .header-container */
        .header-container {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            margin-bottom: 20px;
        }

        .header-container h1 {
            margin-right: auto;
        }

        /* Usuń niepotrzebne style */
        /* Usuń lub zakomentuj poprzednie definicje .quiz-button */

        /* Style dla przycisków w formularzu Lista słów */
        #word-list-container button {
            background-color: #007BFF;
            color: white;
            border: none;
            padding: 5px 11px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 15px;
            transition: background-color 0.3s;
            margin-right: 10px;
        }

        #word-list-container button:hover {
            background-color: #0056b3;
        }

        #clear-watched-videos {
            background-color: #dc3545 !important;
        }

        #clear-watched-videos:hover {
            background-color: #c82333 !important;
        }

        /* Pozostałe style... */

        .dictionary-select-row {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .dictionary-select-row select {
            margin-right: 10px;
        }

        .dictionary-select-row label {
            display: flex;
            align-items: center;
            cursor: pointer;
            position: relative; /* Dodajemy to, aby tooltip był pozycjonowany względem tego elementu */
        }

        .dictionary-select-row input[type="checkbox"] {
            margin: 0;
            padding-left: 15px; /* Dodajemy odstęp z lewej strony */
            cursor: pointer;
            transform: translateY(-4px);
        }

        /* Zmodyfikowany styl dla tooltipa */
        .dictionary-select-row label[title]:hover:before {
            content: attr(title);
            position: absolute;
            background: #333;
            color: #fff;
            padding: 5px;
            border-radius: 3px;
            font-size: 12px;
            white-space: nowrap;
            z-index: 1000;
            right: 100%; /* Ustawiamy tooltip na lewo od checkboxa */
            top: 50%; /* Centrujemy tooltip w pionie */
            transform: translateY(-50%); /* Dokładne wycentrowanie w pionie */
            margin-right: 10px; /* Dodajemy odstęp między checkboxem a toolipem */
        }

        /* ... (pozostałe style bez zmian) ... */

        dialog {
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        dialog h3 {
            margin-top: 0;
        }

        dialog select {
            width: 100%;
            margin-bottom: 10px;
            padding: 5px;
        }

        dialog button {
            margin-right: 10px;
            padding: 5px 10px;
            cursor: pointer;
        }
/* 
        .main-container {
            display: flex;
            position: relative;
        }

       .left-column {
            width: 65%;
            transition: width 0.3s ease;
        }

        .right-column {
            width: 35%;
            transition: width 0.3s ease;
        }
*/
        .column-resizer {
            position: absolute;
            top: 50%;
            right: 55%;
            transform: translateY(-50%);
            z-index: 1000;
            transition: right 0.3s ease;
        }

        #expand-collapse-btn {
            background: #007bff;
            color: white;
            border: none;
            padding: 10px;
            cursor: pointer;
            font-size: 20px;
            transition: transform 0.3s ease;
        }

        .expanded .left-column {
            width: 100%;
        }

        .expanded .right-column {
            width: 0;
            
        }

        .expanded .column-resizer {
            right: 0;
        }

        .expanded #expand-collapse-btn {
            transform: rotate(180deg);
        }

        
@media (max-width: 920px) and (orientation: landscape) {

    .right-column { /* kolumna słownika */
        width: 100%;
        padding-right: 45px;   /* odstep od prawej */
        min-height: 250vh;
       /* max-height: auto;*/
    }

    .left-column {
        width: 100%;
    }

    #dictionary-select {
        margin-bottom: 10px;
        padding: 8px;
        font-size: 16px;
        border: 1px solid #ddd;
        border-radius: 4px;
        width: 103%;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: border-color 0.3s, box-shadow 0.3s;
        
    }
    .iframe-container {
        height: 110vh;
        
    }
}

@media (max-width: 520px) and (orientation: portrait)     {
    .main-container {
        flex-direction: column;
    }

    .right-column { /* kolumna słownika */
        width: 100%;
        padding-right: 75px;   /* odstep od prawej */
        min-height: 110vh;
        max-height: none;
    }

    .left-column { /* kolumna palyera */
        width: 100%;
        padding-right: 40px; /* nie dziala */
        padding-left: 20px; /* Dodajemy 40px wolnej przestrzeni z lewej strony */
        margin-right: 10px;
    }

    .iframe-container {
        height: 110vh;
    }

    .column-resizer {
        display: none; /* Ukrywamy resizer na małych ekranach */
    }

    #expand-collapse-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        padding: 15px;
        font-size: 24px;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .expanded .left-column {
        display: none;
        
    }

    .expanded .right-column {
        display: block;
        width: 100%;
    }

    .mobile-view .left-column {
        
        display: block;
    }

    .mobile-view .right-column {
        display: block;
    }
}

.hidden-button {
    display: none;
}

.tabs-container {
    display: flex;
    flex-wrap: wrap; /* Dodajemy zawijanie, gdyby było zbyt wiele zakładek */
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
}

.tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-bottom: none;
    outline: none;
    transition: 0.3s;
    margin-right: 2px;
    position: relative; /* Dodajemy to */
    border-radius: 4px 4px 0 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
}

.tab span {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    pointer-events: none; /* Dodajemy to */
}

.close-tab {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 5px;
    position: relative; /* Dodajemy to */
    z-index: 1; /* Dodajemy to */
}

.close-tab:hover {
    color: #333;
}

.tab:hover {
    background-color: #ddd;
}

.tab.active {
    background-color: #fff;
    border-bottom: 2px solid #007BFF;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

#add-tab {
    padding: 5px 12px;
    background-color: #f1f1f1;
    color: #555555; /* Zmieniamy kolor na ciemniejszy odcień szarego */
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 24px;
    line-height: 1;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

#add-tab:hover {
    background-color: #ddd;
    color: #333333; /* Pozostawiamy kolor przy najechaniu bez zmian */
}

#iframe-container {
    display: flex;
    height: calc(100% - 41px); /* Wysokość kontenera minus wysokość zakładek */
}

#iframe-container iframe {
    flex: 1;
    border: none;
    border-radius: 8px;
    background-color: #f8f9fa;
}

/* Istniejący styl */
.dictionary-select-row label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

/* Zmodyfikowane style dla checkboxa */
.dictionary-select-row input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border: 1px solid #007BFF;
    border-radius: 2px;
    outline: none;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    margin-left: 0; /* Usuwamy lewy margines */
    padding: 0;
}

.dictionary-select-row input[type="checkbox"]:checked {
    background-color: #007BFF;
}

.dictionary-select-row input[type="checkbox"]:checked::before {
    content: '\2714';
    font-size: 12px; /* Zwiększamy rozmiar znacznika */
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Zachowaj istniejący styl dla tooltipa */
.dictionary-select-row label[title]:hover:before {
    content: attr(title);
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 10px;
}

#leitnerBoxesChart {
    margin-top: 2rem;
    max-width: 100%;
    height: auto;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.column-divider {
    width: 2%;
    background-color: transparent;
    cursor: col-resize;
    position: relative;
    transition: background-color 0.3s;
}

.column-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: transparent; /* Zmieniono z #ddd na transparent */
    transition: background-color 0.3s;
}

.column-divider:hover::after,
.column-divider:active::after {
    background-color: #007bff; /* Pojawia się tylko przy najechaniu/aktywności */
}

/* Usuwamy niepotrzebne style */
.column-divider:hover,
.column-divider:active {
    background-color: transparent; /* Zmieniono z #007bff na transparent */
}

.settings-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
    margin-left: 10px;
    position: relative; /* Dodane dla pozycjonowania tooltipa */
}

/* Dodajemy style dla tooltipa */
.settings-button::after {
    content: "Settings";
    position: absolute;
    bottom: 25px;
    left: 70%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.settings-button:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Usuwamy hover effect z obracaniem 
.settings-button:hover {
     color: #777; Opcjonalnie: delikatna zmiana koloru przy najechaniu 
}*/

.settings-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 90%;
    max-width: 300px; /* Zmniejszamy szerokość */
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settings-header h3 {
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    color: #666;
}

.close-button:hover {
    color: #333;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.settings-overlay {
    position: fixed;
    visibility: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.settings-group {
    margin-bottom: 15px;
}

.settings-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.settings-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.algorithm-description {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
}

.description-text {
    font-size: 14px;
    color: #667;
    margin: 5px 0;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Style dla przycisku trybu ciemnego */
#index-dark-mode {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background-color 0.3s;
}

#index-dark-mode:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Takie samo podświetlenie jak settings */
    border-radius: 4px; /* Zaokrąglone rogi jak w settings */
}

body.index-dark-mode #index-dark-mode:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Jaśniejsze podświetlenie w trybie ciemnym */
}

.dark-mode-icon {
    font-size: 22px;
    line-height: 1;
}


/* Style dla trybu ciemnego w index.html */
body.index-dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* Aktualizujemy wszystkie selektory */
body.index-dark-mode .main-title {
    color: #e0e0e0;
}

body.index-dark-mode .player-container {
    background-color: #1a1a1a;
}

/* ... i tak dalej dla wszystkich selektorów używających .dark-mode */

/* Style dla trybu ciemnego w index.html */
body.index-dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.index-dark-mode .main-title {
    color: #e0e0e0;
}

body.index-dark-mode .player-container {
    background-color: #1a1a1a;
}

body.index-dark-mode ul li a {
    color: #66b3ff;
}

body.index-dark-mode .word-list-button,
body.index-dark-mode .settings-button,
body.index-dark-mode #autoplay-btn {
    background-color: #333;
    color: #e0e0e0;
}

body.index-dark-mode #separator {
    border-color: #404040;
    background-color: #1a1a1a;
    border-bottom: 1px solid #1a1a1a; /* Zmieniamy kolor linii na biały */
}

body.index-dark-mode .dictionary-select-container {
    background-color: #1a1a1a;
}

body.index-dark-mode .dictionary-select-container h3 {
    color: #e0e0e0;
}

body.index-dark-mode #dictionary-select {
    background-color: #333;
    color: #e0e0e0;
    border-color: #404040;
}

body.index-dark-mode .tabs-container {
    background-color: #1a1a1a;
}

body.index-dark-mode .tab {
    background-color: #333;
    color: #e0e0e0;
    border-color: #555;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.index-dark-mode .tab.active {
    background-color: #404040;
    border-bottom: 2px solid #007BFF;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

body.index-dark-mode #add-tab {
    background-color: #333;
    color: #e0e0e0;
}

body.index-dark-mode #word-list-container {
    background-color: #1a1a1a;
    border-color: #404040;
}

body.index-dark-mode #word-list-table th {
    background-color: #333;
    color: #e0e0e0;
    border-color: #404040;
}

body.index-dark-mode #word-list-table td {
    color: #e0e0e0;
    border-color: #404040;
}

body.index-dark-mode #word-list-table tr:nth-child(even) {
    background-color: #262626;
}

body.index-dark-mode #word-list-table td:first-child,
body.index-dark-mode #word-list-table th:first-child {
    background-color: #333;
}

body.index-dark-mode .note-form {
    background-color: #333;
    border-color: #404040;
}

body.index-dark-mode .note-form textarea {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border-color: #404040;
}

body.index-dark-mode .settings-form {
    background-color: #404040;
    color: #e0e0e0;
    border-color: #404040;
}

body.index-dark-mode .iframe-container {
    border: 1px solid #404040;
    background-color: #1a1a1a;
}

body.index-dark-mode .iframe-container iframe {
    background-color: #1a1a1a;
}

body.index-dark-mode .iframe-container .tabs-container {
    border-color: #404040;
    background-color: #1a1a1a;
}

/* Podstawowy styl dla ikony */
#index-dark-mode {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background-color 0.3s;
}

/* Hover w trybie jasnym */
#index-dark-mode:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Kolor ikony w trybie ciemnym */
body.index-dark-mode #index-dark-mode {
    color: #e0e0e0; /* Jasny kolor dla ikony w trybie ciemnym */
}

/* Hover w trybie ciemnym */
body.index-dark-mode #index-dark-mode:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dodaj te style na końcu pliku CSS */
.column-divider-tooltip {
    position: absolute;
    top: 20%;
    left: 20px; /* Zmieniamy z 50% na stałą wartość */
    transform: translate(0, -50%); /* Zmieniamy transform, usuwamy przesunięcie w poziomie */
    background-color: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.column-divider-tooltip::before {
    content: '';
    position: absolute;
    top:50%;
    right: 100%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: #333;
    margin-right: 0; /* Usuwamy margines, jeśli był */
}

.tooltip-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    padding: 0 0 0 10px;
    cursor: pointer;
    vertical-align: middle;
}

.tooltip-close:hover {
    color: #ff4444;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(10px, -50%); /* Dostosowujemy animację */
    }
    to {
        opacity: 1;
        transform: translate(0, -50%); /* Dostosowujemy animację */
    }
}

/* Dodaj style dla trybu ciemnego */
body.index-dark-mode .column-divider-tooltip {
    background-color: #404040;
    color: #e0e0e0;
}

body.index-dark-mode .column-divider-tooltip::before {
    border-right-color: #404040;
}

/* Dodaj nową klasę dla podświetlonego dividera */
.column-divider.highlighted::after {
    background-color: #007bff !important; /* Używamy !important aby nadpisać hover */
    opacity: 0.5;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Dla trybu ciemnego */
body.index-dark-mode .column-divider.highlighted::after {
    background-color: #4da3ff !important; /* Jaśniejszy niebieski w trybie ciemnym */
    opacity: 0.6;
}

/* Dodaj style dla suwaka ratio */
.ratio-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.ratio-slider {
    flex-grow: 1;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
}

.ratio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.ratio-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #007bff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.ratio-slider:hover::-webkit-slider-thumb {
    background: #0056b3;
}

.ratio-slider:hover::-moz-range-thumb {
    background: #0056b3;
}

/* Style dla trybu ciemnego */
body.index-dark-mode .ratio-slider {
    background: #404040;
}

body.index-dark-mode .ratio-slider::-webkit-slider-thumb {
    background: #4da3ff;
}

body.index-dark-mode .ratio-slider::-moz-range-thumb {
    background: #4da3ff;
}

body.index-dark-mode .ratio-slider:hover::-webkit-slider-thumb {
    background: #3385ff;
}

body.index-dark-mode .ratio-slider:hover::-moz-range-thumb {
    background: #3385ff;
}

/* Style dla etykiet w ustawieniach w trybie ciemnym */
body.dark-mode .settings-group label {
    color: #bbb;  /* Szary kolor dla etykiet */
}

/* Style dla nagłówków sekcji w trybie ciemnym */
body.dark-mode .settings-section h3 {
    color: #bbb;  /* Szary kolor dla nagłówków sekcji */
}

/* Style dla tekstu w trybie ciemnym */
body.dark-mode .settings-group span,
body.dark-mode .settings-description,
body.dark-mode #ratioValue {
    color: #bbb;  /* Szary kolor dla tekstu */
}

/* Style dla checkboxów i ich etykiet w trybie ciemnym */
body.dark-mode .checkbox-label {
    color: #bbb;  /* Szary kolor dla tekstu obok checkboxów */
}

/* Style dla tooltipów w trybie ciemnym */
body.dark-mode .settings-group .checkbox-label[data-tooltip]::before {
    color: #e0e0e0;  /* Jaśniejszy kolor dla tekstu w tooltipie */
}

/* Style dla różnych orientacji na urządzeniach mobilnych */
@media (max-width: 520px) {


    /* Style dla trybu ciemnego */
    body.index-dark-mode.portrait-mode {
        background-color: #1a1a1a;
    }

    body.index-dark-mode.landscape-mode {
        background-color: #222222;
    }
}

/* Style dla przycisku Buy Me a Coffee */
.bmc-button {
    margin: 0 !important;
    height: 24px !important;
    line-height: 24px !important;
    min-width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    transform: scale(0.9) !important;
}

/* Dostosowanie dla małych ekranów */
@media (max-width: 768px) {
    .bmc-button {
        margin-left: 0 !important;
        margin-top: 5px !important;
        width: 100% !important;
        height: 36px !important;
        line-height: 36px !important;
    }
}

/* Style dla kontenera przycisku Buy Me a Coffee */
.bmc-button-container {
    display :none;  /* ukryj */
    position: absolute;
    top: -10px;
    right: -10px;
    transform: scale(0.6);
    z-index: 100;
}

/* Dodajemy pozycjonowanie względne dla kontenera nadrzędnego */
.right-column {
    position: relative;
}

.example-text {
    font-size: 0.8em;
    color: #666;
    margin-left: 10px;
    font-style: italic;
}

.example-text a {
    color: #2196F3;
    text-decoration: none;
    font-weight: bold;
}

.example-text a:hover {
    text-decoration: underline;
    color: #1976D2;
}

