/* VibeAI v2 - Dark Theme Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Left Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 30px 20px;
    border-right: 1px solid #333;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: #000;
    margin-right: 12px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.my-playlists {
    margin-bottom: 40px;
}

.my-playlists h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.ready-to-go-vibes {
    margin-bottom: 40px;
}

.ready-to-go-vibes h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.playlist-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playlist-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cccccc;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.playlist-btn:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: #00ff88;
    color: #ffffff;
}

.playlist-btn i {
    font-size: 16px;
    width: 20px;
}

/* Search Home Button */
.search-home {
    margin-bottom: 30px;
}

.search-home-btn {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    color: #00ff88;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.search-home-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    color: #ffffff;
    transform: translateX(-2px);
}

.search-home-btn i {
    font-size: 14px;
}

.try-these {
    margin-bottom: 40px;
}

.try-these h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.mood-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mood-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.mood-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    transform: translateX(4px);
}

.mood-btn i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* Main Content - Results View */
.main-content.results-view {
    justify-content: flex-start;
}

.main-content.results-view .main-header {
    margin-bottom: 20px;
}

.main-content.results-view .search-container {
    margin-bottom: 20px;
}

.main-content.results-view .filters-section {
    margin-bottom: 20px;
}

/* Main Header */
.main-header {
    text-align: center;
    margin-bottom: 60px;
}

.main-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.main-logo .logo-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
    margin-right: 16px;
}

.main-logo h1 {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: #cccccc;
    font-size: 18px;
    font-weight: 400;
    margin-top: 8px;
}

/* Search Bar */
.search-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

/* Search Bar - Results View */
.main-content.results-view .search-container {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.search-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 800px;
}

.search-bar:focus-within {
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.search-bar i {
    color: #666;
    font-size: 18px;
}

.search-bar input {
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 16px;
    flex: 1;
}

.search-bar input::placeholder {
    color: #666;
}

/* Filters Section */
.filters-section {
    margin-bottom: 40px;
}

/* Filters Section - Results View */
.main-content.results-view .filters-section {
    position: fixed;
    top: 80px;
    left: 280px;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.filter-buttons-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.filter-label {
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #ffffff;
}

.filter-btn.active {
    background: #00ff88;
    border-color: #00ff88;
    color: #000;
}

.clear-all-btn {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: #ff6464;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-all-btn:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: #ff6464;
    color: #ffffff;
}

/* Toggle Filters Row (removed - no longer needed) */

/* Small Toggle Switch Styles (removed - no longer needed) */

/* Popularity Row (removed - no longer needed) */

/* Popularity Label (removed - no longer needed) */

/* Slider Container (removed - no longer needed) */

/* Slider (removed - no longer needed) */

/* Slider Labels (removed - no longer needed) */

/* Action Buttons Row */
.action-buttons-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.add-filters-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cccccc;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-filters-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.add-filters-btn.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #00ff88;
}

.add-filters-btn.active:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    color: #ffffff;
}

.add-filters-btn i {
    font-size: 14px;
}

/* Search Button Row (updated) */
.search-button-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.search-update-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cccccc;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-update-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.search-update-btn.needs-update {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #00ff88;
}

.search-update-btn.needs-update:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    color: #ffffff;
}

.search-update-btn i {
    font-size: 14px;
}

/* Action Buttons (removed - no longer needed) */

/* Suggested Searches (removed - no longer needed) */

/* Results Section */
.results-section {
    margin-top: 20px;
}

/* Results Section - Results View */
.main-content.results-view .results-section {
    padding-top: 160px;
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
    background: rgba(15, 15, 15, 0.5);
    border-radius: 12px 12px 0 0;
}

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

.playlist-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.playlist-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.spotify-playlist-btn {
    background: linear-gradient(135deg, #1db954, #1ed760);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotify-playlist-btn:hover {
    background: linear-gradient(135deg, #1ed760, #1db954);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.spotify-playlist-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spotify-playlist-btn i {
    font-size: 16px;
}

/* Results */
.results-container {
    min-height: 400px;
}

.loading, .no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
    text-align: center;
}

.loading i, .no-results i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #00ff88;
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 255, 136, 0.3);
}

.track-item.playing {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
}

.track-item.playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #00ff88;
    border-radius: 0 2px 2px 0;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-album {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-meta {
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.track-heart {
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 16px;
}

.track-heart:hover,
.track-heart.liked {
    color: #ff6b6b;
}

.track-heart.liked {
    color: #ff6b6b;
}

/* Dropdown Modals */
.dropdown-modal {
    display: none;
    position: absolute;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 200px;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-content {
    padding: 8px 0;
}

.dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    color: #ffffff;
    transition: background 0.2s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(0, 255, 136, 0.1);
}

.dropdown-item.selected {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    border: 1px solid #333;
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #ffffff;
}

.modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-primary {
    background: #00ff88;
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #00cc6a;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option label {
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
}

.filter-option input,
.filter-option select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.filter-option input:focus,
.filter-option select:focus {
    outline: none;
    border-color: #00ff88;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.checkbox-item:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
}

.checkbox-item.selected {
    background: #00ff88;
    border-color: #00ff88;
    color: #000;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        padding: 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .create-playlist-btn,
    .surprise-me-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .playlist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .main-logo h1 {
        font-size: 36px;
    }
    
    .main-logo .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Agentic Search Results (removed - no longer needed) */

/* Match Score (removed - no longer needed) */

/* Success Notification */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}