* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

header h1 {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.9;
}

.chart-container {
    background: #fafafa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    height: 400px;
}

.results-table {
    margin-bottom: 30px;
}

.results-table h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

tbody tr:hover {
    background: #f8f9ff;
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 15px;
}

.winner-badge {
    background: #ffd700;
    color: #333;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 10px;
}

.voters-section {
    margin-bottom: 30px;
}

.voters-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

.voters-list {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.voter-tag {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.95em;
}

.comments-section {
    margin-bottom: 30px;
}

.comments-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

.comments-list {
    display: grid;
    gap: 15px;
}

.comment-card {
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.comment-text {
    color: #555;
    font-style: italic;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

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

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:active, .btn-secondary:active {
    transform: translateY(0);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .chart-container {
        padding: 15px;
        height: 300px;
    }

    .stat-number {
        font-size: 2.5em;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 10px;
    }

    .actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}
