/* A lo de Juana - Estilos Principales */

/* Material Icons Configuration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Base Typography */
body {
    font-family: 'Manrope', sans-serif;
    background-color: #fcf9f8;
}

.ui-scale-90 {
    zoom: 0.9;
}

.ui-scale-100 {
    zoom: 1;
}

.ui-scale-110 {
    zoom: 1.1;
}

.ui-scale-120 {
    zoom: 1.2;
}

h1, h2, h3, .font-headline {
    font-family: 'Noto Serif', serif;
}

/* Scrollbar Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Scrollbar for tables */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f0eded;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #926f6a;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a80006;
}

/* Tablet Optimizations */
@media (hover: none) and (pointer: coarse) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
    
    button, 
    a,
    input,
    select,
    textarea {
        touch-action: manipulation;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* HTMX Loading States */
.htmx-loading {
    opacity: 0.6;
    pointer-events: none;
}

.htmx-request {
    position: relative;
}

.htmx-request::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e2e1;
    border-top-color: #a80006;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 0, 6, 0.1);
}

/* Sidebar Active State */
.nav-item.active {
    background-color: rgba(168, 0, 6, 0.1);
    color: #a80006;
}

/* Status Badges */
.badge {
    @apply px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wider;
}

.badge-success {
    @apply bg-green-100 text-green-700;
}

.badge-warning {
    @apply bg-orange-100 text-orange-700;
}

.badge-error {
    @apply bg-red-100 text-red-700;
}

.badge-info {
    @apply bg-blue-100 text-blue-700;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("/static/img/login-bg.png");
    background-size: cover;
    background-position: center;
    filter: blur(14px);
    transform: scale(1.06);
    z-index: -2;
}

.login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
}

.progress-width {
    width: var(--progress, 0%);
}
