/* =======================================================
   🎨 ESTILOS GLOBAL SIMBA - BASE Y LAYOUT
   ======================================================= */

/* Estilos de fondo y cuerpo */
body {
    background-color: #212529 !important; /* Fondo principal oscuro */
    min-height: 100vh;
    position: relative;
    padding-bottom: 50px; 
    color: #f8f9fa; /* Color de texto base claro */
    font-family: 'Segoe UI', sans-serif; 
    overflow-x: hidden; /* Evita scroll horizontal */
}

/* Contenedor principal de la aplicación */
.main-app-container {
    position: relative;
    z-index: 1; 
    padding-top: 80px; /* Espacio para la Navbar */
    padding-bottom: 20px;
    min-height: calc(100vh - 50px); 
}

/* Imagen de león de fondo */
.bg-lion-bottom-right {
    position: fixed; 
    bottom: 0;
    right: 0;
    width: 50vw; 
    opacity: 0.1; 
    z-index: -1; 
    pointer-events: none; 
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar (Personalizado) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background-color: #FFC107; /* Amarillo SIMBA */
    border-radius: 10px;
}
::-webkit-scrollbar-track {
    background-color: #2a2a2a;
}

/* =======================================================
   🎨 ESTILOS GLOBAL SIMBA - COMPONENTES (Card, Form, Botones)
   ======================================================= */

/* --- Toast moderno --- */
.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #343a40;
    color: #ffc107;
    padding: 12px 20px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.toast.show { opacity: 1; }

/* ESTILO GLOBAL: Glassmorphism para todas las Cards */
.card, .card-modern {
    background: rgba(0, 0, 0, 0.25) !important; 
    backdrop-filter: blur(10px) !important; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px; 
    animation: fadeInUp 0.6s ease;
    transition: all 0.3s ease;
    padding: 25px;
}

.card:hover, .card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* Inputs, Selects y Textarea Globales (Dark Theme) */
.card-modern .form-control,
.card-modern .form-select,
.card-modern textarea,
.form-control, .form-select {
    background-color: #2a2a2a !important;
    color: #f8f9fa !important;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 10px 15px;
}

.card-modern .form-control:focus,
.card-modern .form-select:focus,
.card-modern textarea:focus,
.form-control:focus, .form-select:focus {
    border-color: #FFC107 !important; 
    box-shadow: 0 0 6px rgba(255,193,7,0.6);
    outline: none;
}

/* Placeholder claro */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Labels */
label { font-weight: 500; color: #ffc107; }

/* Botones modernos */
.btn-modern, button {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-modern:hover, button:hover {
    transform: translateY(-2px);
}

/* Botón warning custom */
.btn-warning, .btn-warning-custom {
    background-color: #FFC107 !important;
    color: #000 !important;
    border: none;
    font-weight: bold;
}
.btn-warning:hover, .btn-warning-custom:hover {
    background-color: #e0a800 !important;
}

/* Botón danger */
.btn-danger {
    background-color: #dc3545 !important;
    border: none;
    color: #fff !important;
    font-weight: 600;
}
.btn-danger:hover {
    background-color: #e04d5d !important;
    transform: translateY(-2px);
}

/* Títulos */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}
.section-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffc107;
}
.section-header p { color: #aaa; }

h2.text-warning {
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.4);
}

/* =======================================================
   🎨 ESTILOS GLOBAL SIMBA - NAVEGACIÓN Y MODALES
   ======================================================= */

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease-in-out;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover i,
.navbar-dark .navbar-nav .nav-link:focus i,
.navbar-dark .navbar-nav .btn-link.nav-link:hover,
.navbar-dark .navbar-nav .btn-link.nav-link:focus,
.navbar-dark .navbar-nav .btn-link.nav-link:hover i,
.navbar-dark .navbar-nav .btn-link.nav-link:focus i {
    color: #FFC107 !important;
}

.logo-simba-nav { height: 35px; opacity: 0.7; }

/* Modales */
.modal-content {
    background-color: #1E1E1E !important;
    color: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #FFC107;
}
.modal-header { border-bottom: 1px solid rgba(255, 193, 7, 0.4); }
.modal-title { font-weight: bold; }
.modal-body label { color: #FFC107; font-weight: 500; }
.modal.fade .modal-dialog { transform: scale(0.95); transition: all 0.3s ease; }
.modal.show .modal-dialog { transform: scale(1); }

/* =======================================================
   🎨 ESTILOS ESPECÍFICOS - LOGIN Y CUADROS PRIVADOS
   ======================================================= */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.login-logo { max-height: 120px; }

#cuadropr {
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 500px;
    height: auto;
    padding: 40px 30px;
    background: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(8px);
    color: #CCCCCC;
    border: 1px solid rgb(185, 139, 0);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

#cuadropr:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

#simbalet { width: 40%; height: auto; margin-bottom: 20px; }

@media (min-width: 1024px) {
    #cuadropr { width: 40vw; }
    #simbalet { width: 30%; }
}

/* =======================================================
   🎨 ESTILOS VISTAS UNIFICADOS - FORMULARIOS, CARDS Y TABLAS
   ======================================================= */

/* Card centrado y responsive */
.card-centered {
    width: 95%;
    max-width: 1200px;  
    margin: 0 auto;    
}
@media (min-width: 1200px) {
    .card-centered { max-width: 1100px; }
}

/* Tablas dark */
.table-dark thead th { color: #ffc107; }
.table-dark-custom { background: #161819 !important; color: #e8e8e8 !important; }

/* Acciones en tablas */
.table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

/* =======================================================
   🎨 ESTILOS VISTAS MASCOTAS (vreg, vrep, vper, vmas, vser, vres, vevi)
   ======================================================= */

/* Responsive cards y grids para formularios y listados */
.vista-mascotas .row.g-3 > div {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}
@media (max-width: 992px) {
    .vista-mascotas .row.g-3 > div {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 768px) {
    .vista-mascotas .row.g-3 > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Selects oscuros específicos de vmas.php */
.vista-mascotas .form-select {
    background-color: #343a40 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
}
.vista-mascotas .form-select:focus {
    background-color: #2c3034 !important;
    color: #fff !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important;
}
.vista-mascotas .form-select option {
    background-color: #343a40;
    color: #fff;
}

/* Tabla de listados de mascotas y reservas */
.vista-mascotas .listado-mascotas,
.vista-mascotas .listado-mascotas .card,
.vista-mascotas .listado-mascotas .card-body,
.vista-mascotas .listado-mascotas .table {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.vista-mascotas .listado-mascotas {
    background-color: #212529 !important;
    border-radius: 15px;
    padding: 2rem;
}

.vista-mascotas .listado-mascotas .table td,
.vista-mascotas .listado-mascotas .table th {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.vista-mascotas .listado-mascotas .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.vista-mascotas .listado-mascotas .table-hover tbody tr:hover {
    background-color: rgba(255, 193, 7, 0.15) !important;
}

.vista-mascotas .listado-mascotas .btn-outline-warning:hover {
    background-color: #ffc107;
    color: #000;
}

/* Tipografía y color de textos en vistas */
.vista-mascotas .display-5, 
.vista-mascotas h1, .vista-mascotas h2, .vista-mascotas h3, .vista-mascotas h4, .vista-mascotas h5, .vista-mascotas h6,
.vista-mascotas .card .form-label,
.vista-mascotas .card small, .vista-mascotas .card p,
.vista-mascotas .listado-mascotas .table thead th,
.vista-mascotas .listado-mascotas .btn-outline-warning,
.vista-mascotas .listado-mascotas i {
    color: #ffc107 !important;
    font-weight: bold;
}
/* =======================================================
   🎨 Section Header Global
   ======================================================= */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffc107; /* Amarillo SIMBA */
}

.section-header p {
    color: #aaa;
}
