/* Estilos personalizados */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
}

.music-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.music-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.music-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-card .card-img-top i {
    font-size: 3rem;
    color: white;
}

.player-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.audio-player {
    width: 100%;
    margin: 10px 0;
}

.download-btn {
    transition: all 0.3s ease;
}

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

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stats-card h3 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 10px;
}

.admin-sidebar {
    background: #343a40;
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #495057;
    color: white;
}

.admin-sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #e8f0ff;
}

.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.music-player.active {
    display: block;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    height: 30px;
    gap: 3px;
}

.equalizer span {
    width: 4px;
    background: #667eea;
    animation: equalizer 0.5s ease-in-out infinite;
}

.equalizer span:nth-child(1) { animation-delay: 0s; }
.equalizer span:nth-child(2) { animation-delay: 0.1s; }
.equalizer span:nth-child(3) { animation-delay: 0.2s; }
.equalizer span:nth-child(4) { animation-delay: 0.3s; }
.equalizer span:nth-child(5) { animation-delay: 0.4s; }

@keyframes equalizer {
    0%, 100% { height: 10px; }
    50% { height: 30px; }
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    transform: translateY(-2px);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.navbar-brand {
    font-weight: bold;
}

.table-hover tbody tr:hover {
    background-color: #f8f9ff;
}

.badge-download {
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .music-card .card-img-top {
        height: 150px;
    }
    
    .music-player {
        padding: 10px;
    }
}

/* ============================================
   ESTILOS PARA AVALIAÇÕES (ESTRELAS)
   ============================================ */

.star-rating-container {
    margin-bottom: 10px;
}

.star-rating-container .btn-compartilhar {
    padding: 2px 8px;
    font-size: 0.85rem;
    line-height: 1;
    border-radius: 4px;
}

.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star-rating .star {
    font-size: 1rem;
    color: #ddd;
    cursor: default;
}

.star-rating .star.filled {
    color: #ffc107;
}

.rating-info {
    font-size: 0.85rem;
    margin-top: 5px;
}

.rating-info .media-nota {
    font-weight: bold;
    color: #ffc107;
}

.rating-info .total-avaliacoes {
    color: #6c757d;
}

.rating-info .sem-avaliacoes {
    color: #adb5bd;
    font-style: italic;
}

/* Estilos para página de detalhes */
.star-rating-container-detalhes {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.star-rating-detalhes {
    display: inline-flex;
    gap: 5px;
}

.star-rating-detalhes .star {
    font-size: 1.5rem;
    color: #ddd;
    transition: all 0.2s ease;
}

.star-rating-detalhes .star.filled {
    color: #ffc107; /* Amarelo */
}

.star-rating-detalhes .star.hover {
    color: #ffdb70;
    transform: scale(1.2);
}

.star-rating-detalhes .star.clickable {
    cursor: pointer;
}

.star-rating-detalhes .star.clickable:hover {
    color: #ffc107;
}

.star-rating-detalhes .star.user-rated {
    color: #ffc107; /* Amarelo também */
}

.star-rating-detalhes .star.user-rated.filled {
    color: #ffc107;
}
