.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.modal-score-input {
    width: 150px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    margin: 10px auto;
    display: block;
}

.modal-score-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.modal-score-input.valid {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

.modal-score-input.invalid {
    border-color: #f44336;
    background-color: #ffebee;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.modal-btn.secondary {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.modal-btn.cancel {
    background: linear-gradient(135deg, #757575, #616161);
    color: white;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* team modal */

.team-modal .modal {
    max-width: 400px;
}

.team-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin: 15px 0;
    box-sizing: border-box;
}

.team-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.team-input.invalid {
    border-color: #f44336;
    background-color: #ffebee;
}

.team-input.valid {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.color-picker {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.selected {
    border-color: #333;
    transform: scale(1.2);
}

.color-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 16px;
}
