/* ============================================
   Blazor Preview Overrides
   Solo ajustes estructurales para que el layout
   funcione dentro del iframe del emulador.
   NO sobreescribir estilos del MVC original.
   ============================================ */

/* Safe area insets para iOS / emulador */
.safe-area-top {
    padding-top: var(--safe-area-top, env(safe-area-inset-top, 0));
}

.safe-area-bottom {
    padding-bottom: var(--safe-area-bottom, env(safe-area-inset-bottom, 0));
}

/* ===== APP CONTAINER (MobileLayout) ===== */
/* Contenedor flex que simula una pantalla móvil completa */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* ===== PAGE CONTENT (main area) ===== */
/* Zona scrollable entre header y bottom nav */
.page-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-bottom: calc(70px + var(--safe-area-bottom, env(safe-area-inset-bottom, 0)));
    -webkit-overflow-scrolling: touch;
}

/* ===== LOADING CONTAINER ===== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 40px 20px;
    color: white;
}

.loading-container .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.loading-container .loading-message {
    font-size: 14px;
    opacity: 0.85;
    margin: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== EMPTY STATE ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 40px 20px;
    color: white;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.empty-state button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.empty-state button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== BOTTOM NAV SVG ICONS ===== */
.bottom-nav .nav-item .nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
}

.bottom-nav .nav-item .nav-icon svg {
    width: 100%;
    height: 100%;
}

.bottom-nav .nav-item .nav-text {
    font-size: 11px;
    font-weight: 500;
}
