:root {
    --spotify-black: #121212;
    --spotify-dark: #070707;
    --spotify-sidebar: #121212;
    --spotify-light: #1e1e1e;
    --spotify-green: #1ed760;
    --spotify-text: #a7a7a7;
    --spotify-border: rgba(255, 255, 255, 0.08);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

body {
    background-color: var(--spotify-dark);
    color: #fff;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-bottom: 100px;
    overflow-x: hidden;
}

/* Layout flexível */
html, body {
    height: 100%;
    margin: 0;
}

.app-wrapper {
    display: flex;
    height: calc(100vh - 90px);
    width: 100%;
}

/* Barra Lateral com Vidro Fosco (Glassmorphism) */
.sidebar-mock {
    background-color: rgba(18, 18, 18, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 250px;
    padding: 28px 20px;
    border-right: 1px solid var(--spotify-border) !important;
    display: flex;
    flex-direction: column;
    height: 100% !important;
    flex-shrink: 0;
    position: relative !important;
}

.sidebar-scroll {
    flex-grow: 1;
    overflow-y: auto;
    margin-right: -10px;
    padding-right: 10px;
}

.sidebar-mock a {
    text-decoration: none;
    transition: all 0.25s ease;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 4px;
}

.sidebar-mock a:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-mock a.text-success {
    background-color: rgba(30, 215, 96, 0.1);
}

/* Conteúdo Principal */
.main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 40px;
    background: linear-gradient(180deg, #0d2218 0%, var(--spotify-dark) 45%);
}

/* Tabela estilo Spotify Premium */
.spotify-table {
    color: var(--spotify-text);
    width: 100%;
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.spotify-table th {
    color: var(--spotify-text);
    border-bottom: 1px solid var(--spotify-border) !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 12px 16px;
}

.table>:not(caption)>*>* {
    background-color: transparent !important;
    color: inherit !important;
    border-bottom: none;
    box-shadow: none !important;
}

.spotify-table tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

.spotify-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
}

.spotify-table tbody tr.musica-ativa {
    background-color: rgba(30, 215, 96, 0.08) !important;
}

.spotify-table tbody tr.musica-ativa td {
    color: var(--spotify-green) !important;
}

.spotify-table tbody tr.musica-ativa td strong {
    color: var(--spotify-green) !important;
}

.spotify-table td {
    padding: 10px 16px;
    vertical-align: middle;
}

/* Formulários e Modais */
.modal-content {
    background-color: rgba(24, 24, 24, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--spotify-border) !important;
    border-radius: 12px;
}

.form-control {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--spotify-border) !important;
    color: #fff !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--spotify-green) !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 215, 96, 0.25) !important;
}

/* Botões Customizados */
.btn-heart, .btn-options {
    background: none;
    border: none;
    color: var(--spotify-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-heart:hover, .btn-options:hover {
    color: #fff;
    transform: scale(1.15);
}

.btn-heart.active {
    color: var(--spotify-green);
    text-shadow: 0 0 10px rgba(30, 215, 96, 0.3);
}

/* Player Bar Fixo */
.spotify-player-bar {
    background-color: rgba(20, 20, 20, 0.8) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--spotify-border);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    padding: 16px 32px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

.player-track-info {
    display: flex;
    align-items: center;
    width: 30%;
    min-width: 200px;
}

.player-cover {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #282828;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.player-controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.btn-player-action {
    background: none;
    border: none;
    color: var(--spotify-text);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.btn-player-action:hover {
    color: #fff;
}

.btn-player-action.active {
    color: var(--spotify-green) !important;
}

.btn-play-pause-main {
    background-color: #fff;
    color: #000;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.15s ease, background-color 0.2s;
}

.btn-play-pause-main:hover {
    transform: scale(1.08) !important;
    background-color: var(--spotify-green);
    color: #000;
}

.repeat-badge-one {
    font-size: 0.52rem;
    position: absolute;
    top: -2px;
    right: -6px;
    font-weight: 800;
    background: var(--spotify-green);
    color: #000;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.progress-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--spotify-text);
}

.progress-bar-wrapper {
    flex-grow: 1;
    height: 4px;
    background-color: #4f4f4f;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: height 0.1s;
}

.progress-bar-wrapper:hover {
    height: 6px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
}

.progress-bar-wrapper:hover .progress-bar-fill {
    background-color: var(--spotify-green);
}

.player-volume-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 30%;
    gap: 12px;
    color: var(--spotify-text);
}

.volume-slider {
    width: 100px;
    accent-color: #fff;
    cursor: pointer;
    height: 4px;
}

.volume-slider:hover {
    accent-color: var(--spotify-green);
}

/* Barra de Navegação Inferior para Dispositivos Móveis */
.mobile-bottom-nav {
    position: fixed;
    bottom: 90px; /* Fica logo acima do player que tem 90px de altura */
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--spotify-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    padding: 4px 0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--spotify-text);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition: color 0.2s ease;
    flex: 1;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.15rem;
    margin-bottom: 2px;
    transition: transform 0.2s;
}

.mobile-bottom-nav .nav-item:hover, .mobile-bottom-nav .nav-item.active {
    color: #fff;
}

.mobile-bottom-nav .nav-item.active i {
    color: var(--spotify-green);
    transform: scale(1.05);
}

/* Responsividade Geral */
@media (max-width: 768px) {
    .sidebar-mock {
        display: none !important;
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-bottom: 40px;
    }
    body {
        padding-bottom: 150px !important; /* Espaço para o player e a barra de navegação móvel */
    }
    .app-wrapper {
        height: calc(100vh - 150px) !important;
    }
    .spotify-player-bar {
        padding: 16px;
    }
    .player-track-info {
        width: auto;
        min-width: 0;
    }
    .player-volume-container {
        display: none; /* Esconde volume no celular para liberar espaço */
    }
    .player-controls-container {
        width: 70%;
    }
}

   width: 0%;
}

/* O contêiner pai */
.progress-bar-wrapper {
    width: 100%;       /* Garante que ocupe o espaço */
    height: 6px;       /* Altura da barra */
    background: #404040; /* Cor do fundo cinza que aparece na imagem */
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;  /* Importante para não vazar a barra interna */
}

/* A parte que preenche */
.progress-bar-fill {
    height: 100%;
    background: #1db954; /* Cor verde (ou a cor que você quiser) */
    width: 0%;           /* Isso precisa mudar via JavaScript */
    transition: width 0.1s linear; /* Deixa o movimento suave */
}