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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #272c44 0%, #190c25 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgb(70, 84, 155);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #535d8f, #455292);
    color: rgb(255, 255, 255);
    text-align: center;
    border-bottom: 1px solid #190c25;
    padding: 30px 20px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    opacity: 0.9;
    font-size: 1.1em;
}

.content {
    padding: 30px;
}

#timer {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 3px solid #ff6b6b;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1em;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.checkbox-item {
    background: #764ba2;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    background: #815fa3;
    border-color: #2196f3;
}

.checkbox-item.selected {
    background: #6c32a7;
    border-color: #4caf50;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.checkbox-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.submit-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.submit-btn:disabled {
    background: #7e7d7d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

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

.stat-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card .number {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.history-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.history-item .losers {
    font-weight: bold;
    color: #ff6b6b;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.history-item .players {
    color: #666;
    margin-bottom: 5px;
}

.history-item .timestamp {
    color: #888;
    font-size: 0.9em;
}

.no-data {
    text-align: center;
    color: #000000;
    font-style: italic;
    padding: 40px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ffcdd2;
}

.success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c8e6c9;
}

@media (max-width: 600px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .content {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}