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

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

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

header {
    text-align: center;
    margin-bottom: 40px;
}

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

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

.prediction-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-group select:hover:not(:disabled) {
    border-color: #667eea;
}

.form-group select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.predict-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.predict-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.predict-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results {
    margin-top: 30px;
}

.results h2 {
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.average-prediction h3 {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.prediction-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.prediction-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.prediction-card.home {
    border-color: #4CAF50;
}

.prediction-card.draw {
    border-color: #FF9800;
}

.prediction-card.away {
    border-color: #2196F3;
}

.prediction-label {
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.prediction-value {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.prediction-percentage {
    font-size: 1.2em;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 600;
}

.certainty-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.certainty-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.certainty-info {
    text-align: center;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    margin-top: 20px;
}

.certainty-info p {
    font-size: 1.1em;
    color: #555;
}

.certainty-info span {
    font-weight: bold;
    color: #667eea;
    font-size: 1.2em;
}

.advanced-section {
    margin-top: 30px;
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
}

.toggle-button {
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.toggle-button:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.toggle-button .arrow {
    transition: transform 0.3s;
}

.toggle-button.expanded .arrow {
    transform: rotate(180deg);
}

.advanced-content {
    margin-top: 20px;
}

.advanced-content h3 {
    color: #555;
    margin-bottom: 15px;
}

.model-predictions {
    display: grid;
    gap: 15px;
}

.model-prediction-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #667eea;
}

.model-prediction-item h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1em;
}

.model-prediction-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.model-prediction-value {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

.model-prediction-value .label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.model-prediction-value .value {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.model-prediction-value .percentage {
    font-size: 0.9em;
    color: #667eea;
    margin-top: 5px;
}

.error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #c33;
    margin-top: 20px;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .prediction-cards {
        grid-template-columns: 1fr;
    }

    .model-prediction-values {
        grid-template-columns: 1fr;
    }
}
