/* ===== BOTONES ===== */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #cccccc !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ===== MODALES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--dark-color);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal h2 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--light-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--light-color);
}

.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* ===== NOTIFICACIONES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 1001;
    display: none;
    align-items: center;
    gap: 10px;
    max-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.warning {
    background-color: var(--warning-color);
}

.notification.error {
    background-color: var(--error-color);
}

.notification.info {
    background-color: var(--info-color);
}

/* ===== TARJETAS ===== */
.card {
    background-color: rgba(44, 62, 80, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-5px);
}

/* ===== INPUTS ===== */
.input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.input-group input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* ===== LISTAS ===== */
.history-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: var(--transition);
}

.history-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.history-teams {
    flex: 1;
    min-width: 200px;
}

.history-score {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 15px;
}

.history-info {
    font-size: 0.9rem;
    opacity: 0.8;
    width: 100%;
    margin-top: 5px;
}

.empty-history {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
    font-style: italic;
}

/* ===== SUBTÍTULOS ===== */
.subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}
