body {
  background:#151521;
  color:#ccc;
}

/* Links Gerais */
a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease; /* Transição suave para todos os links */
}

a:hover {
    color: #fff;
}

/* Navbar e Itens */
nav {
    background: #22223c;
}

.nav-link {
    color: #ccc !important; /* Força a cor padrão do seu tema sobre o Bootstrap */
}

/* Estados de Interação: Hover, Active e Show (Dropdown aberto) */
.nav-link:hover, 
.nav-link:focus,
.nav-link:active,
.nav-link.active,
.nav-link.show {
    color: #fff !important;
}

/* Regra específica para o Username dentro do Dropdown */
/* Removi oVisited daqui porque não faz sentido o nome do usuário mudar de cor permanentemente */
.nav-link:hover #header-username,
.nav-link:focus #header-username,
.nav-link.show #header-username {
    color: #fff !important;
}

/* Classe de destaque da página atual */
.active {
    color: #fff !important;
    font-weight: 700; /* 'bold' funciona, mas 700 é mais preciso no Google Fonts */
}

/* Botão Mobile */
.navbar-toggler {
    background-color: #7286ce;
    border: none;
}



/* Otimização: Seletor unificado para o Dropdown */
#navbarDropdown:hover, 
#navbarDropdown:focus,
#navbarDropdown:active {
    color: #fff !important;background-color: #22223c!important;
}

            .brand { fill: #ccc; font-family: 'Segoe UI', Arial, sans-serif; font-weight: 600; transition: fill 0.3s ease; }
            .logo-shape { transition: fill 0.3s ease, stroke 0.3s ease; }
            .logo:hover .brand, .logo:hover .logo-shape { fill: #fff; }
            .logo:hover path.logo-shape { stroke: #fff; fill: none; }

.card {
  background:#1e1e2d; /*#22223c;*/
  color:#ccc;
}
#update:active, .btn-light-primary {
    background-color: #7286ce;
    color: #000;
    font-weight: bold;
}
#update:active, .btn-light-primary:hover {
    background-color: #7286ce;
    color: #000;

}
#update:active, .btn-light-primary:active {
    background:#151521;
    color:#ccc;

}
.logo {
  height: 80px;
  width: auto;
  display: block;
  margin: 0 auto;
}
/*
.footer-links {
  display: flex;
  gap: 15px;
}
  */

#auth {
    height: 100vh;
    overflow-x: hidden;
}
#auth #auth-right {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background: url(../img/login-bg05.jpg); /*url(4853433.png), linear-gradient(90deg, #2d499d, #3f5491)*/
}
#auth #auth-left {
    padding: 5rem;
}
#auth #auth-left .auth-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}
#auth #auth-left .auth-subtitle {
    font-size: 1.7rem;
    line-height: 2.5rem;
    color: #a8aebb;
}
#auth #auth-left .auth-logo {
    margin-bottom: 7rem;
}
#auth #auth-left .auth-logo img {
    height: 2rem;
}
@media screen and (max-width: 1399.9px) {
    #auth #auth-left {
        padding: 3rem;
    }
}
@media screen and (max-width: 767px) {
    #auth #auth-left {
        padding: 5rem;
    }
}
@media screen and (max-width: 576px) {
    #auth #auth-left {
        padding: 5rem 3rem;
    }
}


            .playlist-scroll { overflow-y: auto; padding: 0 15px 20px; height: 480px; }
            .track-item { cursor: pointer; transition: 0.2s; border-radius: 10px; border: none; background: transparent; color: white; padding: 10px 8px; margin-bottom: 4px; display: flex; align-items: center; width: 100%; text-align: left; }
            .track-item:hover { background: rgba(255,255,255,0.05); }
            .track-item.active { background-color: #7286ce !important; color: #000 !important; }
            .track-item.active b, .track-item.active span { color: #000 !important; }
            .track-img { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; margin-right: 12px; flex-shrink: 0; }
            .track-info { flex-grow: 1; overflow: hidden; }
            
            .lyrics-section { height: 320px; overflow-y: auto; line-height: 2.2; font-size: 1.1rem; color: #a8aebb; mask-image: linear-gradient(transparent, black 15%, black 85%, transparent); -webkit-mask-image: linear-gradient(transparent, black 15%, black 85%, transparent); }
            .progress { height: 5px; background-color: rgba(255,255,255,0.1); cursor: pointer; }
            .progress-bar { background-color: #7286ce; transition: none; }
            .btn-play { width: 55px; height: 55px; border-radius: 50%; background: #7286ce; color: #000; border: none; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: 0.3s; }
            .btn-play:hover { transform: scale(1.05); }

            @media (max-width: 991px) {
                .player-header-desktop { display: none !important; }
                .playlist-scroll { height: 180px; } /*325  ~5 músicas */
                .lyrics-section { height: 250px; }

                .playlist { scroll-margin-top: 200px; scroll-behavior: smooth; }
                }

/*
#loading-overlay {
    transition: opacity 0.5s ease, visibility 0.5s;
}
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}
    */

.btn-save-profile {
    background-color: #7286ce !important;
    color: #000 !important;
    font-weight: bold;
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%; /* No mobile ocupa tudo */
}

/* Em telas médias/grandes ele volta ao tamanho normal */
@media (min-width: 768px) {
    .btn-save-profile {
        width: auto;
    }
}

.btn-save-profile:hover {
    background-color: #5d6eb3 !important; /* Um roxo um pouco mais escuro ao passar o mouse */
    color: #000 !important;
    transform: translateY(-2px); /* Pequeno efeito de "levantar" */
    box-shadow: 0 4px 15px rgba(114, 134, 206, 0.3);
}

.btn-save-profile:active {
    transform: translateY(0); /* Volta ao normal ao clicar */
}

.dropdown-item:hover {
    background-color: #7286ce !important;
    color: #000 !important;
}

.dropdown-item:active, 
.dropdown-item.active {
    background-color: #151521!important;
    color: #fff !important;
    font-weight: 400;
}


/* Ajuste opcional: garante que o dropdown-menu combine com o seu tema dark */
.dropdown-menu {
    background-color: #1e1e2d; /* Mesmo fundo dos seus cards */
    border: 1px solid rgba(255,255,255,0.1);
}

.dropdown-item {
    color: #ccc; /* Cor do texto padrão antes do hover */
    transition: all 0.2s ease;
}

.qrcode {
    max-width: 200px;
    display: block;
    margin: 0 auto;
}

td .col-pix {
    max-width: 250px; /* Define a largura máxima */
    overflow: hidden; /* Esconde o conteúdo que passa do limite */
    text-overflow: ellipsis; /* Adiciona '...' se o texto for maior */
    white-space: nowrap; /* Impede que o texto quebre linha */
}

.table-dark {
    --bs-table-color: #fff;
    --bs-table-bg: #151521;
    --bs-table-border-color: #151521;
    --bs-table-striped-bg: #22223c;
    --bs-table-striped-color: #fff;
    --bs-table-active-bg: #151521;
    --bs-table-active-color: #fff;
    --bs-table-hover-bg: #151521;
    --bs-table-hover-color: #fff;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}


.toast-custom {
    background: rgba(30, 30, 45, 0.98) !important;
    border: 1px solid rgba(74, 222, 128, 0.3) !important;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}
.toast-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #4ade80 !important;
}
.toast-progress {
    position: absolute; bottom: 0; left: 0; height: 3px;
    background: #4ade80; width: 100%;
    animation: toast-loader 7s linear forwards;
}
@keyframes toast-loader { from { width: 100%; } to { width: 0%; } }