﻿/* =========================================
   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;
}

/* La caja blanca del popup */
.modal {
    z-index: 2010 !important;
}

/* NUEVO ABAJO - BORRAR */

/* =========================================
   8. FIX BANDERAS TELEFONO (MODALES Y LOGIN)
   ========================================= */

/* 🟢 El menú completo (búsqueda + lista) con fondo sólido para evitar transparencias en Login */
.iti__dropdown-content {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    z-index: 999999 !important;
}

.iti__country-list {
    z-index: 999999 !important;
    background-color: white !important; /* Evita transparencias raras */
}

/* Si la librería saca el contenedor al body */
.iti-container,
.iti--container
/*.iti*/ {
    z-index: 999999 !important;
}
/* NUEVO - BORRAR */

/* 🟢 Personalización Premium del Cuadro de Búsqueda de Países */
.iti__dropdown-content input[type="text"] {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    font-size: 0.9rem !important; /* Mismo tamaño de texto que la lista */
    color: #495057 !important;
    background-color: #f9fafb !important; /* Fondo gris muy tenue, igual a tus form-control */
    border: 1px solid #e5e7eb !important; /* Adiós borde negro, hola gris sutil */
    border-radius: 8px !important; /* Esquinas modernas */
    /* 🟢 padding-right en 45px asegura que el texto jamás choque con la 'X' */
    padding: 10px 45px 10px 14px !important;
    margin: 8px !important; /* Separación elegante de los bordes del menú */
    width: calc(100% - 16px) !important; /* Se ajusta perfecto considerando el margen */
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

/* 🟢 Efecto de resplandor azul al hacer clic para buscar (Igual a tu sistema) */
.iti__dropdown-content input[type="text"]:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important; /* Azul moderno */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* MAS NUEVO - ABAJO - BORRAR */

/* 🟢 MIS CLASES MULTI-TENANT GLOBALES */

/* Fondos */
.bg-tenant {
    background-color: var(--tema-primario) !important;
    color: white;
}

.bg-tenant-secundario {
    background-color: var(--tema-secundario) !important;
    color: white;
}

/* Textos */
.text-tenant {
    color: var(--tema-primario) !important;
}

/* Botones (Sustituye a btn-primary) */
.btn-tenant {
    background-color: var(--tema-primario);
    color: white;
    border: 2px solid var(--tema-primario);
    transition: all 0.3s ease;
}

    .btn-tenant:hover {
        background-color: transparent;
        color: var(--tema-primario);
    }

/* Bordes */
.border-tenant {
    border-color: var(--tema-primario) !important;
}
/* MAS NUEVO - BORRAR */