/**
 * Vangärtt Inventory System - Reset y Estructura Base
 */

@import 'variables.css';

/* ========================================== */
/* DECLARACIÓN DE FUENTES (SF Pro Display)    */
/* ========================================== */
@font-face {
    font-family: 'SF Pro Display';
    src: url('../../fonts/SFProDisplay-BlackItalic.woff2') format('woff2'),
         url('../../fonts/SFProDisplay-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../../fonts/SFProDisplay-LightItalic.woff2') format('woff2'),
         url('../../fonts/SFProDisplay-LightItalic.woff') format('woff');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../../fonts/SFProDisplay-HeavyItalic.woff2') format('woff2'),
         url('../../fonts/SFProDisplay-HeavyItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../../fonts/SFProDisplay-Medium.woff2') format('woff2'),
         url('../../fonts/SFProDisplay-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../../fonts/SFProDisplay-Bold.woff2') format('woff2'),
         url('../../fonts/SFProDisplay-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../../fonts/SFProDisplay-Regular.woff2') format('woff2'),
         url('../../fonts/SFProDisplay-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../../fonts/SFProDisplay-ThinItalic.woff2') format('woff2'),
         url('../../fonts/SFProDisplay-ThinItalic.woff') format('woff');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../../fonts/SFProDisplay-UltralightItalic.woff2') format('woff2'),
         url('../../fonts/SFProDisplay-UltralightItalic.woff') format('woff');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('../../fonts/SFProDisplay-SemiboldItalic.woff2') format('woff2'),
         url('../../fonts/SFProDisplay-SemiboldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* ========================================== */
/* RESET EXTREMO PARA PWA                     */
/* ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Adiós al destello azul en Android/iOS */
    -webkit-touch-callout: none; /* Bloquear menú contextual de imágenes */
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--system-background);
    color: var(--label-primary);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden; /* Previene scroll del body, manejaremos el scroll en un contenedor interno */
    overscroll-behavior-y: none; /* Adiós al efecto "goma elástica" del navegador */
}

/* Contenedor principal de la App */
#app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}

/* Vistas (SPA feeling) */
.view {
    display: none;
    flex: 1;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.view.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar invisible para un look más limpio */
::-webkit-scrollbar {
    display: none;
}