/* Playlist Settings Modal Styles */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.settings-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    border: 2px solid #444;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: #fff;
    position: relative;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #444;
    background: linear-gradient(90deg, #333, #444);
    border-radius: 13px 13px 0 0;
}

.settings-header h2 {
    margin: 0;
    font-size: 1.4em;
    color: #00ff88;
}

.close-button {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background-color: #ff4444;
    color: white;
    transform: rotate(90deg);
}

.settings-body {
    padding: 25px;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section h3 {
    margin: 0 0 15px 0;
    color: #00ff88;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-weight: 500;
    color: #ccc;
    font-size: 0.95em;
}

.setting-select {
    background-color: #333;
    border: 2px solid #555;
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.setting-select:hover {
    border-color: #00ff88;
}

.setting-select:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
}

.checkbox-item {
    flex-direction: row !important;
    align-items: center;
    gap: 12px !important;
    cursor: pointer;
}

.setting-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #00ff88;
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    flex: 1;
}

.action-button {
    background: linear-gradient(135deg, #444 0%, #555 100%);
    border: 2px solid #666;
    border-radius: 8px;
    padding: 12px 20px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-button:hover {
    background: linear-gradient(135deg, #555 0%, #666 100%);
    border-color: #00ff88;
    transform: translateY(-1px);
}

.reset-button {
    background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
    border-color: #ff6666;
}

.reset-button:hover {
    background: linear-gradient(135deg, #ff5555 0%, #dd4444 100%);
    border-color: #ff8888;
}

.settings-footer {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-top: 2px solid #444;
    background: linear-gradient(90deg, #2a2a2a, #333);
    border-radius: 0 0 13px 13px;
}

.settings-footer button {
    flex: 1;
    padding: 12px 24px;
    border: 2px solid #555;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-settings {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: #fff;
}

.cancel-settings:hover {
    background: linear-gradient(135deg, #777 0%, #666 100%);
    border-color: #888;
}

.save-settings {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
    border-color: #00ff88;
}

.save-settings:hover {
    background: linear-gradient(135deg, #11ff99 0%, #00dd77 100%);
    border-color: #11ff99;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.settings-button {
    position: relative;
}

.settings-button.active {
    background-color: #00ff88 !important;
    color: #000 !important;
    transform: scale(1.1);
}

/* Color Settings Styles */
.color-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.color-setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #333;
    border: 2px solid #555;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.color-input-wrapper:hover {
    border-color: #00ff88;
}

.color-input {
    width: 40px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 4px;
}

.color-input::-webkit-color-swatch {
    border: 2px solid #666;
    border-radius: 4px;
}

.color-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #ccc;
    background-color: #222;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 70px;
    text-align: center;
}

.range-input {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.range-value {
    font-family: 'Courier New', monospace;
    color: #00ff88;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
}

.color-presets {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.color-presets label {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
    font-weight: 500;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.preset-btn {
    padding: 12px 8px;
    border: 2px solid #555;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.preset-btn:hover {
    border-color: #00ff88;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.preset-btn:active {
    transform: translateY(0);
}

.gradient-only {
    display: none;
}

#custom-colors-section {
    display: none;
}

/* Enhanced Theme Styles */
.playlist.theme-custom {
    transition: all 0.3s ease;
}

.playlist.theme-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    border: 2px solid #444;
}

.playlist.theme-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    border: 2px solid #dee2e6;
}

.playlist.theme-neon {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 100%);
    color: #00ff88;
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.playlist.theme-classic {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: #fff;
    border: 2px solid #cd853f;
}

/* Display Style Variations */
.playlist.playlist-minimal .playlist-item {
    padding: 8px 12px;
    font-size: 0.9em;
}

.playlist.playlist-detailed .playlist-item {
    padding: 15px 18px;
    font-size: 1.1em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2px;
}

.playlist.playlist-compact .playlist-item {
    padding: 5px 10px;
    font-size: 0.85em;
    line-height: 1.2;
}

/* Font Size Variations */
.playlist.font-small {
    font-size: 0.85em;
}

.playlist.font-medium {
    font-size: 1em;
}

.playlist.font-large {
    font-size: 1.15em;
}

/* Spacing Variations */
.playlist.spacing-compact .playlist-item {
    margin-bottom: 1px;
}

.playlist.spacing-normal .playlist-item {
    margin-bottom: 3px;
}

.playlist.spacing-spacious .playlist-item {
    margin-bottom: 6px;
}

/* Hover Effects */
.playlist:not(.no-hover-effect) .playlist-item:hover {
    background-color: rgba(0, 255, 136, 0.1) !important;
    transform: translateX(3px);
}

/* Animation Control */
.playlist.no-animations,
.playlist.no-animations * {
    transition: none !important;
    animation: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .settings-header,
    .settings-body,
    .settings-footer {
        padding: 15px 20px;
    }
    
    .settings-footer {
        flex-direction: column;
    }
    
    .setting-item {
        margin-bottom: 12px;
    }
    
    .settings-section {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .settings-modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .settings-header h2 {
        font-size: 1.2em;
    }
    
    .settings-section h3 {
        font-size: 1em;
    }
}
 
