/* ==========================================================================
   ZENDA APP - KINETIC MINIMALISM THEME
   Sobrescribe Bootstrap 5 para un aspecto de SaaS de clase mundial
   ========================================================================== */

/* 1. Importar Tipografía Inter desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Tipografía base de la app */
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Paleta de colores SaaS */
    --zenda-bg: #F9FAFB; /* Gris off-white, reduce fatiga visual */
    /*--zenda-text-main: #111827;*/ /* Negro/Gris profundo para lectura óptima */
    --zenda-text-muted: #6B7280;
    --zenda-primary: #6366F1; /* Color Primario (Índigo moderno). Cámbialo si tu logo tiene otro color */
    
    /* Curvas de físicas para microinteracciones */
    --kinetic-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --kinetic-transition-fast: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   ESTILOS GLOBALES
   ========================================= */
body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--zenda-bg);
    color: var(--zenda-text-main);
    /* Optimización de renderizado de fuentes en pantallas HD */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Títulos más limpios, con un tracking más ajustado */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--zenda-text-main);
}

/* =========================================
   SOBRESCRITURA DE BOOTSTRAP (CORE)
   ========================================= */

/* Tarjetas (Cards) - Sin bordes, sombras difusas */
.card {
    border: none !important;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: var(--kinetic-transition);
}

/* Efecto de levitación sutil al interactuar */
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #F3F4F6;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Botones - Físicas táctiles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0.5rem 1rem;
    transition: var(--kinetic-transition-fast);
    border: none;
}

/* La regla de oro del Minimalismo Cinético: "Hundimiento" al hacer clic */
.btn:active {
    transform: scale(0.96) !important;
}

/* Botón Primario */
.btn-primary {
    background-color: var(--zenda-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #4F46E5;
    color: white;
    box-shadow: 0 6px 8px -1px rgba(99, 102, 241, 0.3);
}

/* Formularios e Inputs */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background-color: #F9FAFB;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: var(--kinetic-transition);
}

/* Anillo de foco accesible y estético */
.form-control:focus, .form-select:focus {
    background-color: #FFFFFF;
    border-color: var(--zenda-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--zenda-text-muted);
    margin-bottom: 0.4rem;
}

/* Tablas Modernas (Ej: Lista de Prestadores/Turnos) */
.table {
    vertical-align: middle;
}
.table th {
    font-weight: 500;
    color: var(--zenda-text-muted);
    border-bottom-width: 1px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em; /* Facilita la lectura de headers en mayúscula */
}

/* Modales */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* =========================================
   WIDGET DE SOPORTE FLOTANTE (FAB)
   ========================================= */
.support-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
}

.btn-support-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Color de marca de WhatsApp */
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: var(--kinetic-transition);
}

.btn-support-fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-support-fab:active {
    transform: scale(0.95);
}

/* Tooltip animado */
.tooltip-text {
    display: none;
    position: absolute;
    right: 75px;
    background-color: #111827;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-support-fab:hover .tooltip-text {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =========================================
   BLAZOR ESPECÍFICO (Manejo de Errores)
   ========================================= */
#blazor-error-ui {
    background: #FEF2F2;
    color: #991B1B;
    bottom: 0;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #F87171;
    font-weight: 500;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
}
