/* Dodaj to do <style> w index.html */

/* DARK MODE */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .header {
    background-color: #222;
    border-bottom-color: #333;
}

body.dark-mode .header h1 {
    color: #ffcc00;
}

body.dark-mode .top-banner {
    background-color: #111;
    border-bottom-color: #333;
}

body.dark-mode .container,
body.dark-mode .playlist {
    background-color: #222;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode .song-item {
    border-bottom-color: #333;
}

body.dark-mode .song-title {
    color: #ffcc00;
}

body.dark-mode .custom-player {
    background-color: #333;
    border-color: #444;
}

body.dark-mode .progress-bar {
    background-color: #444;
}

body.dark-mode .time-display {
    color: #aaa;
}

body.dark-mode .volume-btn {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .modal-content,
body.dark-mode .auth-content,
body.dark-mode .panel-content,
body.dark-mode .settings-content {
    background-color: #222;
    border-color: #ffcc00;
    color: #e0e0e0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode select {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .form-group input:focus {
    border-color: #ffcc00;
}

body.dark-mode .settings-group {
    background-color: #333;
    border: 1px solid #444;
}

/* Settings Button */
.settings-btn {
    background-color: #003366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    position: fixed;
    top: 20px;
    right: 180px;
    z-index: 100;
}

.settings-btn:hover {
    background-color: #004488;
}

@media (max-width: 768px) {
    .settings-btn {
        right: auto;
        left: 20px;
        top: auto;
        bottom: 80px;
    }

    .auth-btn {
        right: auto;
        left: 20px;
        bottom: 20px;
        top: auto;
    }
}

/* Settings Modal */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9998;
    overflow-y: auto;
}

.settings-modal.active {
    display: flex;
}

.settings-content {
    background-color: #f0f0f0;
    border: 3px solid #003366;
    border-radius: 5px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: auto;
}

.settings-content h2 {
    color: #003366;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 10px;
    font-size: 20px;
}

.settings-group {
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
}

.settings-group h3 {
    margin: 0 0 10px 0;
    color: #003366;
    font-size: 14px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.toggle-switch label:first-child {
    margin: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #003366;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.settings-close-btn {
    background-color: #ccc;
    color: #333;
    border: none;
    border-radius: 3px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    display: block;
    margin: 20px auto 0;
    width: 100%;
}

.settings-close-btn:hover {
    background-color: #aaa;
}

/* History Display */
.history-item {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:last-child {
    border-bottom: none;
}

.history-song {
    flex: 1;
}

.history-title {
    font-weight: bold;
    color: #003366;
}

.history-artist {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.history-time {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-left: 10px;
}

body.dark-mode .history-item {
    border-bottom-color: #444;
}

body.dark-mode .history-title {
    color: #ffcc00;
}

body.dark-mode .history-artist {
    color: #aaa;
}

#historyStats {
    color: #333;
}

body.dark-mode #historyStats {
    background-color: #333;
    color: #e0e0e0;
}
