/* Dark mode theme */
body {
    background-color: #121212;
    color: #e0e0e0;
}

.navbar {
    margin-bottom: 2rem;
    background-color: #000000 !important;
}

.table {
    background-color: #1e1e1e;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    color: #e0e0e0;
}

.btn-group {
    gap: 0.25rem;
}

.alert {
    margin-bottom: 2rem;
}

.badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
}

.container {
    max-width: 1200px;
    padding: 0 1rem;
} 

.card {
    background-color: #1e1e1e;
    border: 1px solid #2d2d2d;
    color: #e0e0e0;
}

.card-header {
    background-color: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
    color: #ffffff;
}

.card-body .progress {
    background-color: rgba(255,255,255,0.1);
}

.card-body .progress-bar {
    background-color: #1DB954;
}

.fas {
    margin-right: 5px;
}

.now-playing-container {
    margin-bottom: 2rem;
}

.playback-controls {
    margin-top: 1rem;
}

.playback-controls .btn-group {
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.playback-controls .btn {
    padding: 8px 20px;
}

.btn-outline-secondary {
    color: #e0e0e0;
    border-color: #404040;
}

.btn-outline-secondary:hover {
    background-color: #404040;
    border-color: #505050;
    color: #ffffff;
}

.progress {
    height: 6px;
    background-color: #2d2d2d;
}

.progress-bar {
    background-color: #1DB954;
}

#album-artwork {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Playlist Card Styles */
.playlist-thumbnail {
    width: 120px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.card .d-flex {
    align-items: start;
}

.card-body {
    padding: 1rem;
    flex-grow: 1;
}

.song-artwork {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.table > tbody > tr > td {
    vertical-align: middle;
    border-color: #2d2d2d;
}

.current-playback {
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.artwork-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.artwork-container img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.now-playing-info {
    flex: 1;
}

.playback-controls {
    margin-top: 1rem;
}

.playback-controls .btn-group {
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-controls {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.playlist-cover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.text-muted {
    color: #909090 !important;
}

.dropdown-menu {
    background-color: #1e1e1e;
    border: 1px solid #2d2d2d;
}

.dropdown-item {
    color: #e0e0e0;
}

.dropdown-item:hover {
    background-color: #2d2d2d;
    color: #ffffff;
}

.dropdown-divider {
    border-color: #2d2d2d;
}

/* Now Playing Mobile Styles */
@media (max-width: 576px) {
    .current-playback {
        padding: 0.75rem;
    }

    .artwork-container {
        gap: 0.5rem;
        justify-content: space-between;
    }

    .artwork-container a {
        width: 48%;
        position: relative;
        padding-bottom: 48%;
    }

    .artwork-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }

    .action-controls {
        flex-direction: column;
    }

    .action-controls .btn {
        width: 100%;
    }

    .playback-controls .btn-group {
        width: 100%;
        justify-content: center;
    }
}

/* Modern Playlist Cards */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.playlist-card {
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.playlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: #1db954;
}

.playlist-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #1db954, #1ed760);
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.playlist-card:hover .playlist-cover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-card:hover .play-overlay {
    opacity: 1;
}

.play-btn-large {
    width: 50px;
    height: 50px;
    background: #1db954;
    border: none;
    border-radius: 50%;
    color: black;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn-large:hover {
    background: #1ed760;
    transform: scale(1.1);
}

.playlist-info {
    padding: 0.75rem;
}

.playlist-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-type-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.playlist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.4rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 0.65rem;
    color: #e0e0e0;
}

.stat-badge.validated {
    background: rgba(29, 185, 84, 0.2);
    color: #1db954;
}

.stat-badge i {
    font-size: 0.6rem;
}

.playlist-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.btn-action {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.btn-details {
    background: rgba(255,255,255,0.1);
    color: #e0e0e0;
}

.btn-details:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.btn-paired {
    background: rgba(29, 185, 84, 0.2);
    color: #1db954;
}

.btn-paired:hover {
    background: rgba(29, 185, 84, 0.3);
    color: #1ed760;
}

/* Filter Chips */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 20px;
    color: #e0e0e0;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-chip:hover {
    background: rgba(29, 185, 84, 0.1);
    border-color: #1db954;
    color: #1db954;
    transform: translateY(-1px);
}

.filter-chip.active {
    background: #1db954;
    border-color: #1db954;
    color: #000;
}

.filter-chip i {
    font-size: 0.75rem;
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
}

.search-input:focus {
    border-color: #1db954;
    box-shadow: 0 0 0 0.2rem rgba(29, 185, 84, 0.25);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-btn {
    padding: 0.75rem 1.25rem;
    background: #1db954;
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: #1ed760;
    color: #000;
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #404040;
}

.action-btn.secondary:hover {
    background: #404040;
    color: #fff;
}