/* =========================================
   1. ESTILO GENERAL Y FONDO
   ========================================= */
html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    /* Un fondo gris muy suave hace que las tarjetas blancas resalten */
    background-color: #f3f4f6;
    color: #333;
}

/* =========================================
   2. TARJETAS MODERNAS (EFECTO FLOTANTE)
   ========================================= */
.card {
    border: none !important; /* Adiós borde gris feo */
    border-radius: 12px !important; /* Esquinas redondeadas */
    background-color: #ffffff !important;
    /* Sombra suave y difusa */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease; /* Animación suave */
}

    /* Al pasar el mouse, la tarjeta se levanta sutilmente */
    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    }

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1rem !important;
}

/* =========================================
   3. BOTONES ELEGANTES
   ========================================= */
.btn {
    border-radius: 8px !important; /* Botones menos cuadrados */
    padding: 0.5rem 1.2rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .btn:active {
        transform: scale(0.98); /* Efecto de clic */
    }

/* Botones de Iconos pequeños (Editar/Borrar) */
.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
}

/* =========================================
   4. INPUTS Y FORMULARIOS (MÁS LIMPIOS)
   ========================================= */
.form-control, .form-select {
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    background-color: #f9fafb !important; /* Fondo gris muy tenue */
    padding: 0.6rem 1rem !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .form-control:focus, .form-select:focus {
        background-color: #ffffff !important;
        border-color: #3b82f6 !important; /* Azul moderno */
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important; /* Resplandor azul */
    }

/* Input groups (donde están los botones ...) */
.input-group-text {
    border: 1px solid #e5e7eb !important;
    background-color: #f3f4f6 !important;
    border-radius: 8px !important;
}

/* =========================================
   5. TABLAS PROFESIONALES
   ========================================= */
.table {
    margin-bottom: 0 !important;
}

    /* Encabezado de la tabla */
    .table thead th {
        background-color: #f8f9fa !important;
        color: #6b7280 !important; /* Gris texto */
        font-weight: 700 !important;
        text-transform: uppercase;
        font-size: 0.75rem !important;
        letter-spacing: 0.05em;
        border-bottom: 2px solid #e5e7eb !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Filas */
    .table tbody td {
        vertical-align: middle !important;
        padding: 1rem 0.75rem !important; /* Más aire entre filas */
        border-bottom: 1px solid #f3f4f6 !important;
        color: #374151;
        font-size: 0.9rem;
    }

/* Efecto hover en filas */
.table-hover tbody tr:hover {
    background-color: #f9fafb !important;
}

/* =========================================
   6. BADGES (ETIQUETAS)
   ========================================= */
.badge {
    padding: 0.4em 0.8em !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

/* =========================================
   7. MODAL Y POPUPS
   ========================================= */
.modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.modal-header {
    border-bottom: 1px solid #f3f4f6 !important;
    background-color: #ffffff !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}
