/* Estilos personalizados para Pelucity */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

body {
    min-height: max(884px, 100dvh);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Estilos para el mapa */
#map {
    height: 100%;
    width: 100%;
}

.ol-control button {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 5px;
    margin: 2px;
}

.ol-control button:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* Estilos para el chat */
#chatMessages {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

#chatMessages::-webkit-scrollbar {
    width: 6px;
}

#chatMessages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#chatMessages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#chatMessages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para el modal */
.modal {
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Estilos para los formularios */
.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(19, 236, 91, 0.3);
}

/* Estilos para los botones */
.btn-primary {
    background-color: #13ec5b;
    color: #111813;
}

.btn-primary:hover {
    background-color: #0fd64e;
}

/* Estilos para las alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Estilos para las tarjetas */
.card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.card-dark {
    background-color: #1a202c;
    color: #e2e8f0;
}

/* Estilos responsive */
@media (max-width: 640px) {
    /* Ajustes generales para móviles */
    body {
        font-size: 14px;
    }
    
    /* Ajustes para el mapa */
    #map {
        height: calc(100vh - 80px); /* Restar la altura de la barra de navegación inferior */
    }
    
    /* Ajustes para el modal de reporte */
    .modal .bg-white {
        width: 95%;
        max-height: 90vh;
        margin: 0 auto;
        border-radius: 1rem;
        overflow-y: auto;
    }
    
    /* Ajustes para el chat */
    #chatMessages {
        height: 200px;
    }
    
    /* Ajustes para los botones */
    .btn-primary, .btn-secondary {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Ajustes para las tarjetas */
    .card {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    /* Ajustes para los formularios */
    .form-input {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Ajustes para la página de inicio */
    .w-40 {
        width: 120px;
        height: 120px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    p {
        font-size: 14px;
    }
    
    /* Ajustes para la barra de navegación inferior */
    nav {
        height: 70px;
    }
    
    nav .material-symbols-outlined {
        font-size: 24px;
    }
    
    nav span.text-xs {
        font-size: 10px;
    }
    
    /* Ajustes para la página de detalles de mascota */
    .min-h-80 {
        min-height: 200px;
    }
    
    /* Ajustes para los botones de acción */
    .absolute.top-6.right-6 {
        top: 10px;
        right: 10px;
    }
    
    .h-10.w-10 {
        height: 36px;
        width: 36px;
    }
    
    /* Ajustes para la tarjeta de reporte en el mapa */
    .absolute.bottom-24.left-4.right-4 {
        bottom: 90px;
        left: 10px;
        right: 10px;
    }
    
    /* Ajustes para los controles flotantes */
    .absolute.top-24.right-4 {
        top: 80px;
        right: 10px;
    }
    
    .h-12.w-12 {
        height: 40px;
        width: 40px;
    }
    
    /* Ajustes para el FAB */
    .absolute.bottom-24.right-4 {
        bottom: 90px;
        right: 15px;
    }
    
    .h-16.w-16 {
        height: 56px;
        width: 56px;
    }
    
    /* Ajustes para el modal de reporte */
    .max-w-md {
        max-width: 100%;
    }
    
    .mx-4 {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    /* Ajustes para el formulario de reporte */
    .space-y-4 > * + * {
        margin-top: 1rem;
    }
    
    /* Ajustes para la página de usuario */
    .w-full.max-w-md {
        max-width: 100%;
    }
    
    /* Ajustes para los botones sociales */
    .h-12.w-12 {
        height: 40px;
        width: 40px;
    }
    
    /* Ajustes para el footer */
    .text-xs {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    /* Ajustes adicionales para dispositivos muy pequeños */
    body {
        font-size: 12px;
    }
    
    #map {
        height: calc(100vh - 70px);
    }
    
    .w-40 {
        width: 100px;
        height: 100px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    p {
        font-size: 12px;
    }
    
    nav {
        height: 60px;
    }
    
    nav .material-symbols-outlined {
        font-size: 20px;
    }
    
    nav span.text-xs {
        font-size: 9px;
    }
    
    .min-h-80 {
        min-height: 150px;
    }
    
    .h-10.w-10 {
        height: 32px;
        width: 32px;
    }
    
    .h-16.w-16 {
        height: 48px;
        width: 48px;
    }
    
    .h-12.w-12 {
        height: 36px;
        width: 36px;
    }
    
    #chatMessages {
        height: 150px;
    }
}

/* Estilos para orientación horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    /* Ajustes para modo apaisado */
    #map {
        height: calc(100vh - 60px);
    }
    
    nav {
        height: 50px;
    }
    
    nav .material-symbols-outlined {
        font-size: 18px;
    }
    
    nav span.text-xs {
        display: none; /* Ocultar texto en modo apaisado para ahorrar espacio */
    }
    
    .min-h-80 {
        min-height: 120px;
    }
    
    .h-10.w-10 {
        height: 28px;
        width: 28px;
    }
    
    .h-16.w-16 {
        height: 40px;
        width: 40px;
    }
    
    .h-12.w-12 {
        height: 32px;
        width: 32px;
    }
    
    #chatMessages {
        height: 100px;
    }
}

/* Estilos para tablets */
@media (min-width: 641px) and (max-width: 1024px) {
    /* Ajustes para tablets */
    body {
        font-size: 16px;
    }
    
    #map {
        height: calc(100vh - 80px);
    }
    
    .w-40 {
        width: 150px;
        height: 150px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    p {
        font-size: 16px;
    }
    
    nav {
        height: 80px;
    }
    
    nav .material-symbols-outlined {
        font-size: 28px;
    }
    
    nav span.text-xs {
        font-size: 12px;
    }
    
    .min-h-80 {
        min-height: 250px;
    }
    
    .h-10.w-10 {
        height: 40px;
        width: 40px;
    }
    
    .h-16.w-16 {
        height: 56px;
        width: 56px;
    }
    
    .h-12.w-12 {
        height: 48px;
        width: 48px;
    }
    
    #chatMessages {
        height: 250px;
    }
}

/* Estilos para dispositivos grandes */
@media (min-width: 1025px) {
    /* Ajustes para escritorio */
    body {
        font-size: 18px;
    }
    
    #map {
        height: calc(100vh - 100px);
    }
    
    .w-40 {
        width: 160px;
        height: 160px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    p {
        font-size: 18px;
    }
    
    nav {
        height: 100px;
    }
    
    nav .material-symbols-outlined {
        font-size: 32px;
    }
    
    nav span.text-xs {
        font-size: 14px;
    }
    
    .min-h-80 {
        min-height: 300px;
    }
    
    .h-10.w-10 {
        height: 48px;
        width: 48px;
    }
    
    .h-16.w-16 {
        height: 64px;
        width: 64px;
    }
    
    .h-12.w-12 {
        height: 56px;
        width: 56px;
    }
    
    #chatMessages {
        height: 300px;
    }
}