/* ============================================================
   ESTILOS PERSONALIZADOS - Pythones Flask App
   ============================================================ */

/* ---- Barra de navegación ---- */
.navbar {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.navbar .navbar-brand {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.navbar .navbar-brand:hover {
    color: #27ae60;
}

.navbar .navbar-nav .nav-link {
    color: #555;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem;
}

.navbar .navbar-nav .nav-link:hover {
    color: #27ae60;
}

/* Elemento activo del menú */
.navbar .navbar-nav .nav-item.active .nav-link {
    color: #27ae60;
    font-weight: 600;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 0.3rem;
}

/* ---- Pie de página ---- */
footer {
    background-color: #f8f9fa;
    color: #7f8c8d;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* ---- Mejoras generales ---- */
body {
    background-color: #fcfcfc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Tablas con un poco más de estilo */
.table {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.table thead th {
    background-color: #f1f2f6;
    border-bottom: 2px solid #dcdde1;
    font-weight: 600;
    color: #2c3e50;
}

/* Botones mejorados */
.btn {
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 500;
    font-size: 0.85rem;
}

.btn-success {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-success:hover {
    background-color: #219a52;
    border-color: #219a52;
}

.btn-warning {
    background-color: #f39c12;
    border-color: #f39c12;
    color: #fff;
}

.btn-warning:hover {
    background-color: #d68910;
    border-color: #d68910;
}

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Títulos */
h1,
h2,
h3,
h4 {
    color: #2c3e50;
}

h1 {
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    font-weight: 600;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Cards con efecto hover */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Alertas y mensajes */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}