/* css/playlists.css */

.dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.dashboard-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: all 0.2s ease;
}

.dashboard-tab:hover {
    color: var(--text-color);
}

.dashboard-tab.active {
    color: var(--accent-color);
    position: relative;
}

.dashboard-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.65rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.playlists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.playlist-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.playlist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: var(--accent-color);
}

.playlist-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.playlist-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.playlist-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.playlist-add-song {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.playlist-add-song input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-color);
    color: var(--text-color);
}

.playlist-songs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius);
    border: 1px solid transparent;
}

.song-item:hover {
    border-color: var(--border-color);
}

.song-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.song-title {
    font-weight: 600;
    color: var(--text-color);
}

.song-url {
    font-size: 0.8rem;
    color: var(--text-muted);
}
