/* Charts Manager v2 Frontend Styles */
.chart-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px 0;
}

.chart-header {
    padding: 20px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
}

.chart-title {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.chart-description {
    opacity: 0.9;
    font-size: 16px;
}

.chart-content {
    padding: 0;
}

.chart-artists-list {
    display: flex;
    flex-direction: column;
}

.chart-artist-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
    transition: background-color 0.3s ease;
}

.chart-artist-item:hover {
    background: #f8f9fa;
}

.chart-artist-item:last-child {
    border-bottom: none;
}

.artist-position {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 60px;
}

.position-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    min-width: 30px;
}

.trend {
    font-size: 16px;
    font-weight: bold;
}

.trend-up {
    color: #46b450;
}

.trend-down {
    color: #dc3232;
}

.trend-same {
    color: #ffb900;
}

.artist-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.artist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-info {
    flex: 1;
}

.artist-name {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.artist-name a {
    color: #333;
    text-decoration: none;
}

.artist-name a:hover {
    color: #0073aa;
}

.artist-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.artist-votes {
    text-align: center;
    min-width: 80px;
}

.artist-votes strong {
    display: block;
    font-size: 20px;
    color: #0073aa;
}

.artist-votes span {
    font-size: 12px;
    color: #666;
}

/* Compact style */
.chart-style-compact .artist-photo,
.chart-style-compact .artist-stats,
.chart-style-compact .artist-votes {
    display: none;
}

.chart-style-compact .chart-artist-item {
    padding: 12px 20px;
}

.chart-style-compact .artist-name {
    font-size: 16px;
}

/* Voting form */
.chart-voting-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.voting-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.voting-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voting-option:hover {
    background: #f8f9fa;
    border-color: #0073aa;
}

.voting-option input[type="radio"] {
    margin: 0;
}

.artist-name {
    font-weight: 500;
}

.artist-position {
    color: #666;
    font-size: 14px;
}

.voting-submit {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.voting-submit:hover:not(:disabled) {
    background: #005a87;
}

.voting-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.voting-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.voting-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.voting-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .chart-style-extended .artist-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .chart-style-extended .artist-votes {
        display: none;
    }
    
    .chart-artist-item {
        padding: 12px 15px;
    }
    
    .position-number {
        font-size: 20px;
    }
    
    .artist-name {
        font-size: 16px;
    }
    
    .voting-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .chart-style-extended .artist-photo {
        display: none;
    }
    
    .chart-header {
        padding: 15px;
    }
    
    .chart-title {
        font-size: 24px;
    }
    
    .chart-artist-item {
        flex-wrap: wrap;
    }
    
    .artist-position {
        min-width: 50px;
    }
}

