 .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mp-logo {
    width: 600px;
    height: auto;
    opacity: 0.7; /* Przyciemnienie obrazka */
    margin-bottom: 30px;
}

.loading-spinner {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 18px;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay.hidden {
    display: none;
}

/* 4. Style dla nazw zestawów */
.line-title {
    color: yellow !important;
}
.loading-text {
    color: white;
    font-size: 18px;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
}

.loading-overlay {
    background-color: rgba(0, 0, 0, 0.85); /* Ciemniejsze tło */
}

/* Styl dla przycisku odświeżania */
.refresh-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 4px;
    cursor: pointer;
}

.refresh-button:hover {
    background: #45a049;
}

/* Dodaj do istniejącego CSS lub stwórz nowy plik playlist_editor_modal.css */
.modal-content {
    background-color: #222; /* Ciemne tło */
    color: #aaa;  /* Jasny tekst */
    border: 1px solid #444;
}

.modal-dialog {
    width: 95%; /* Szerszy modal */
    max-width: 1400px; /* Maksymalna szerokość */
    margin: 30px auto;
}

.panel {
    background-color: #333;
    border-color: #444;
    margin-bottom: 10px;
}

.panel-heading {
    background-color: #444;
    border-color: #555;
    color: #fff;
    padding: 5px 10px;
}

.panel-title {
    font-size: 14px;
    margin: 0;
}

.list-group-item {
    background-color: #333;
    border-color: #444;
    color: #aaa;
    padding: 5px 10px;
    font-size: 13px;
    cursor: pointer;
}

.list-group-item:hover {
    background-color: #444;
    color: #fff;
}

.btn-toolbar {
    margin-bottom: 10px;
}

.btn-dark {
    background-color: #444;
    color: #aaa;
    border-color: #555;
}

.btn-dark:hover {
    background-color: #555;
    color: #fff;
}

#songSearch {
    background-color: #333;
    border-color: #444;
    color: #aaa;
}



.modal-dialog {
    width: 98%; /* Szerszy modal */
    max-width: 1800px; /* Większa maksymalna szerokość */
}

.panel-title {
    font-size: 16px; /* Większa czcionka */
}

.list-group-item {
    font-size: 18px; /* Większa czcionka */
    padding: 8px 12px; /* Więcej miejsca */
}

.modal-title {
    font-size: 18px;
}


.panel-body {
    max-height: 70vh; /* 70% wysokości okna */
    overflow-y: auto;
    scrollbar-width: thin; /* dla Firefox */
    scrollbar-color: #666 #333; /* dla Firefox */
}

.panel-body::-webkit-scrollbar {
    width: 8px;
}

.panel-body::-webkit-scrollbar-track {
    background: #333;
}

.panel-body::-webkit-scrollbar-thumb {
    background: #666;
}

.modal .close {
    color: #fff; /* Biały krzyżyk */
    opacity: 0.8;
}

.modal .close:hover {
    opacity: 1;
}



.group-item {
    background-color: #333;
    color: #aaa;
}

.group-id {
    color: #666;
    font-size: 0.9em;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 10px;
    /* font tytułu utworu w kol. 3  */
    font-size: 18px; /* Większa czcionka */
}

.btn-add, .btn-preview {
    background: transparent;
    border: none;
    color: #666;
}

.btn-add:hover, .btn-preview:hover {
    color: #fff;
}

.song-preview-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-height: 80%;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    overflow: auto;
    z-index: 1050;
}

.preview-header {
    padding: 10px;
    background: #444;
    border-bottom: 1px solid #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-content {
    padding: 15px;
}

.section {
    margin-bottom: 15px;
}

.section-name {
    font-weight: bold;
    color: #888;
    margin-bottom: 5px;
}


.group-item {
    padding: 8px 12px;
    margin-bottom: 1px;
    cursor: pointer;
}

.group-item:hover {
    background-color: #444;
}

.group-item i {
    margin-right: 10px;
    color: #666;
}

.list-header {
    padding: 10px;
    border-bottom: 1px solid #444;
}

.search-box {
    display: flex;
    gap: 5px;
}

.sort-toggle {
    min-width: 34px;
}


.group-header {
    padding: 8px 12px;
    background-color: #333;
    color: #ffd700; /* żółty */
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.group-songs {
    display: none; /* domyślnie ukryte */
    padding-left: 15px;
    background-color: #2a2a2a;
}

.group-songs.active {
    display: block;
}

.song-item {
    padding: 6px 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-song-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 2px 6px;
}

.add-song-btn:hover {
    color: #ffd700;
}

.group-toggle {
    float: right;
    color: #666;
}


.group-header {
    padding: 10px;
    background-color: #222;
    color: #ffd700; /* żółty */
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid #333;
}

.group-songs {
    display: none;
    background-color: #333;
    padding-left: 15px;
}

.group-songs.active {
    display: block;
}

.song-item {
    padding: 8px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-toggle {
    float: right;
    color: #666;
}

.modal-dialog {
    width: 95%;
    margin: 30px auto;
}

.modal-content {
    background-color: #222;
    color: #aaa;
}

.modal-header {
    border-bottom: 1px solid #333;
}

.modal-header .close {
    color: #fff;
    opacity: 0.8;
}



/* style dla oznaczenia dodanych utworów: */
.song-item.in-playlist {
    opacity: 0.7;
    background-color: rgba(255, 192, 203, 0.1); /* Lekko różowy */
    font-style: italic;
}

.song-item.in-playlist .btn-add {
    opacity: 0.5;
    cursor: not-allowed;
}

.song-item .btn-add:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.song-item {
    transition: all 0.3s ease;
}

.song-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


.column-header {
    padding: 10px;
    border-bottom: 1px solid #444;
    background: #222;
}

.search-box {
    margin-bottom: 8px;
}

.sort-buttons {
    display: flex;
    gap: 5px;
}

.sort-btn {
    background: #333;
    border: 1px solid #444;
    color: #aaa;
}

.sort-btn:hover {
    background: #444;
    color: #fff;
}

.just-added {
    background-color: rgba(76, 175, 80, 0.1);
    animation: highlightNew 3s ease-out;
}

@keyframes highlightNew {
    0% { background-color: rgba(76, 175, 80, 0.3); }
    100% { background-color: rgba(76, 175, 80, 0); }
}



.btn-dark {
    background-color: #333;
    border-color: #444;
    color: #aaa;
}

.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
    background-color: #444;
    border-color: #555;
    color: #fff !important;
}

.sort-btn.active {
    background-color: #444;
    color: #ffd700 !important;
}

.playlist-title {
    font-size: 22px;
    font-weight: bold;
    color: darkblue;
    margin-left: 10px;
}   

button {
    cursor: pointer;
    background-color: #333  !important;
    color: white !important;
    font-size: 16px !important;
}

.active-playlist {
    background-color: #2a5934 !important;
    color: white !important;
    font-weight: bold;
}

/* Hover effect dla aktywnego zestawu */
.active-playlist:hover {
    background-color: #1e4025 !important;
    color: white !important;
}



/* style do wyszukiwarki w kol. 3 */
.song-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 4px;
    background: #2b2b2b;
    border: none;
}

.song-item-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.btn-add {
    padding: 4px 8px;
    background: #2a5934;
    border: none;
    color: white;
    margin-right: 8px;
}

.btn-add:hover {
    background: #1e4025;
}

.song-title {
    flex-grow: 1;
    color: #e0e0e0;
}

.group-id {
    color: #888;
    font-size: 0.9em;
    margin-left: 8px;
}






.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
}

.search-count {
    background: #2a5934;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}



.song-added {
    background-color: #1e2b1e !important;
}

.song-title-added {
    font-style: italic;
    color: #888 !important;
}

.btn-add[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dla głównej aplikacji (lewa kolumna) */
.main-search-container {
    width: 100%;
    height: 30px;
}

/* Dla modalu edytora */
.modal-search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    width: 100%;
}

.search-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-toggle, .sort-toggle {
    padding: 4px 8px;
    background: #333;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.view-toggle.active {
    background: #2a5934;
}

.swal2-confirm {
    background-color: #ff0000 !important; /* Czerwony przycisk */
    border-color: #ff0000 !important;
    color: #fff !important; /* Biały tekst */
}

.swal2-cancel {
    background-color: #00aa00 !important; /* Zielony przycisk */
    border-color: #00aa00 !important;
    color: #fff !important; /* Biały tekst */
}


.sort-toggle {
    transform: rotate(0deg);
    transition: transform 0.3s;
}

.sort-toggle.desc {
    transform: rotate(180deg);
}

.view-toggle.active {
    background-color: #2a5934;
}


.playlist-song {
    cursor: move;
    transition: background-color 0.2s;
}

.playlist-song.selected {
    background-color: #2a5934 !important;
    color: white;
}

.playlist-song.dragging {
    opacity: 0.5;
    background-color: #333;
}

.song-number {
    color: yellow !important;
    margin-right: 8px;
    user-select: none;
}

.order-controls {
    padding: 8px;
    border-bottom: 1px solid #444;
    display: flex;
    gap: 8px;
    align-items: center;
}

.position-input {
    display: flex;
    gap: 4px;
    align-items: center;
}

.position-input input {
    width: 60px;
    text-align: center;
}




.header-controls {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.order-controls {
    display: flex;
    gap: 4px;
    align-items: center;
}

.group-header-main {
    padding: 8px;
    background: #2a5934;
    color: white;
    font-weight: bold;
}


/* grupy w kol. 3 */
.sticky-top {
    position: sticky;
    top: 0;
    background: #333;
    z-index: 100;
    padding: 8px;
    border-bottom: 1px solid #444;
}

.group-songs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.group-songs.expanded {
    max-height: none;
}




.group-songs {
    display: none;
    padding-left: 20px;
}

.group-songs.expanded {
    display: block;
}

.group-header {
    cursor: pointer;
    padding: 8px;
    background: #333;
    border-bottom: 1px solid #444;
}

.group-header:hover {
    background: #2a5934;
}



.header-controls button,
.header-controls input {
    transform: scale(1.5);
    margin: 5px 10px;
}

.header-controls {
    padding: 15px 0;
}


/* Style dla kolumny 2 */
#playlistContent-header .header-controls button,
#playlistContent-header .header-controls input {
    transform: scale(1.5);
    margin: 5px 10px;
}

#playlistContent-header .header-controls {
    padding: 15px 0;
}

/* Normalne style dla kolumny 1 */
#playlistsList-header .header-controls button,
#playlistsList-header .header-controls input {
    transform: none;
    margin: initial;
}

/* Style dla przycisków w jednej linii: */
.buttons-2-in-row-editor {
    display: flex !important;
    gap: 10px;
    width: 100%;
}

.buttons-2-in-row-editor .small-button {
    flex: 1;
    width: auto !important;
}

/* // edytor tekstów */
.sections-scroll {
   max-height: 500px;
   overflow-y: auto;
   padding: 10px;
}

.section-wrapper {
   border: 1px solid #444;
   padding: 10px;
   border-radius: 4px;
   background: #333;
}

.section-container textarea {
   resize: vertical;
   min-height: 100px;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    color: #000 !important;
    background-color: #fff !important;
}

.section-wrapper {
    background-color: #2a2a2a;
    border: 1px solid #444;
    padding: 15px;
    margin-bottom: 15px;
}

.song-item-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-right: 10px;
}

.btn-edit {
    opacity: 0.7;
}

.btn-edit:hover {
    opacity: 1;
}
