/* Custom Styles for Music PWA */

:root {
    --primary-color: #1db954;
    --bg-dark: #121212;
    --bg-surface: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    margin: 0;
    padding: 0;
}

.player-container {
    max-width: 500px;
    margin: 40px auto;
    background: var(--bg-surface);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.song-list {
    margin-top: 24px;
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.song-list::-webkit-scrollbar {
    width: 6px;
}

.song-list::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 10px;
}

.song-item {
    cursor: pointer;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: background 0.2s ease;
    border-bottom: 1px solid #282828;
}

.song-item:hover {
    background: #282828;
}

.active-song {
    background: #282828;
    border-left: 4px solid var(--primary-color);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.controls .btn-link {
    padding: 5px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play {
    font-size: 3rem;
    color: var(--primary-color);
    transition: transform 0.2s;
}

.btn-play:hover {
    transform: scale(1.05);
}

.progress-container-wrapper {
    padding: 15px 0;
}

.progress {
    height: 10px;
    background-color: #3e3e3e;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.progress:hover {
    height: 14px;
}

.progress-bar {
    background-color: var(--primary-color);
    transition: width 0.1s linear;
    height: 100%;
}

/* Admin Styles */
.admin-container {
    background: white;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.delete-btn {
    transition: opacity 0.2s;
}

.delete-btn:hover {
    opacity: 0.8;
}

@media (max-width: 576px) {
    .player-container {
        margin: 10px;
        width: calc(100% - 20px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

.song-item .btn {
    z-index: 10;
    padding: 8px;
    margin-left: 10px;
}

.song-item .bi-cloud-arrow-down,
.song-item .bi-check-circle-fill {
    font-size: 1.4rem;
    display: block;
}

.text-primary {
    color: #0d6efd !important;
}

.text-success {
    color: #1db954 !important;
}
