/* Archivo: estilos.css */

/* Variables de color basadas en el PDF "2 Cordilleras" */
:root {
    --cordilleras-brown: #6B4D30;
    --cordilleras-light-brown: #A07A5E;
    --cordilleras-bg: #F7F4EF;
    --cordilleras-cream: #FFFBF6;
    --cordilleras-gray-text: #4A5568;
    --cordilleras-light-gray-bg: #F9FAFB;
}

/* Estilos globales del cuerpo */
body {
    background-color: var(--cordilleras-bg);
    font-family: 'Inter', sans-serif;
    color: var(--cordilleras-gray-text);
    line-height: 1.6;
}

/* Contenedores principales (login, dashboard, cards) */
.card-container,
.login-container,
.dashboard-container {
    background-color: var(--cordilleras-cream);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 4xl;
    width: 100%;
}

/* Títulos de formularios y secciones */
.form-title,
.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--cordilleras-brown);
    margin-bottom: 1.5rem;
}

/* Mensajes de éxito o error */
.message {
    color: var(--cordilleras-light-brown);
    text-align: center;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Grupos de entrada de formulario */
.input-group {
    margin-bottom: 1.25rem;
}

.input-label {
    display: block;
    color: var(--cordilleras-brown);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-field {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    background-color: #FDF9F2;
    transition: all 0.2s ease-in-out;
}

.input-field:focus {
    outline: none;
    border-color: var(--cordilleras-light-brown);
    box-shadow: 0 0 0 2px rgba(160, 122, 94, 0.25);
}

/* Estilos de botones */
.button-primary {
    background-color: var(--cordilleras-brown);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.button-primary:hover {
    background-color: var(--cordilleras-light-brown);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.button-secondary {
    display: inline-block;
    background-color: var(--cordilleras-light-brown);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.button-secondary:hover {
    background-color: var(--cordilleras-brown);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Estilos de la tabla */
.table-container {
    overflow-x-auto;
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.table {
    min-width: 100%;
    border-collapse: collapse;
}

.table thead {
    background-color: var(--cordilleras-light-gray-bg);
}

.table th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
}

.table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    white-space: nowrap;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-action-link {
    color: var(--cordilleras-light-brown);
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.table-action-link:hover {
    color: var(--cordilleras-brown);
}

.table-action-button {
    color: #EF4444; /* Rojo para eliminar */
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.table-action-button:hover {
    color: #B91C1C;
}
