@import url('./modern-responsive.css');

/*
    PALETA DE COLORES VICTORIA SOCCER
    - Fondo: #f5f5f5 (Aperlado claro)
    - Contenedor principal: #FFFFFF (Blanco)
    - Elementos interactivos (botones, bordes activos): #1565c0 (Azul oscuro)
    - Texto principal: #283593 (Azul muy oscuro)
    - Texto secundario: #757575 (Gris medio)
    - Botones de acción: #1565c0 (Guardar) y #d32f2f (Borrar - Rojo oscuro)
*/

/* --- Estilos Generales y Tipografía --- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    color: #283593;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.main-container {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 30px;
    margin: 35px auto 20px;
    width: 98%;
    max-width: 1400px;
}

/* --- Encabezado --- */
.main-header {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-message {
    font-weight: 600;
    color: #757575;
    display: block;
    text-align: right;
    margin-bottom: 10px;
    font-size: 1rem;
}

.main-title {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    color: #283593;
    font-size: 2.5rem;
    margin: 0;
}

/* --- Estructura de dos Columnas --- */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.form-column {
    flex: 1;
    min-width: 300px;
}

.table-column {
    flex: 2;
    min-width: 400px;
}

/* --- Tarjetas (Formulario y Tabla) --- */
.form-card, .table-card {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    height: 100%;
}

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

.form-label {
    font-weight: 600;
    color: #283593;
    margin-bottom: 8px;
    display: block;
    font-size: 1rem;
}

/* Contenedor principal para el campo y el icono */
.input-with-icon {
    position: relative;
    display: flex; /* Nuevo: para alinear el input y el icono */
    align-items: center; /* Nuevo: para centrar el icono verticalmente */
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.2);
    outline: none;
    background-color: #FFFFFF;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #757575;
    pointer-events: none;
    transition: color 0.3s;
}

.form-control:focus ~ .input-icon {
    color: #1565c0;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
    min-width: 150px;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #1565c0;
}

.checkbox-group label {
    font-weight: 500;
    color: #283593;
}

/* Botón de enviar */
.submit-btn {
    background-color: #1565c0;
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #0d47a1;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* --- Tabla --- */
.table-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #283593;
    margin-bottom: 20px;
    text-align: center;
}

.ligas-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 1rem;
}

.ligas-table th {
    background-color: #283593;
    color: white;
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    text-transform: uppercase;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.ligas-table th .fas {
    font-size: 1.2rem;
    margin-right: 5px;
}

.ligas-table td {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
}

.ligas-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.ligas-table tr:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ligas-table td > div {
    display: inline-block;
    padding: 6px 10px;
    background-color: #f0f0f0;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-weight: bold;
    color: #444;
    font-size: 0.9rem;
    margin: 2px;
}

.ligas-table .btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.ligas-table .btn-group .table-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
    border-radius: 50%;
}

.ligas-table .btn-group .edit-btn {
    color: #1565c0;
}

.ligas-table .btn-group .delete-btn {
    color: #d32f2f;
}

.ligas-table .btn-group .table-btn:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.05);
}



/* --- Responsive Design --- */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .form-column, .table-column {
        min-width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .input-icon {
        display: none;
    }
    .form-control {
        padding: 12px 15px;
    }
}