/* ==========================================================================
   LEVVI PWA — GLOBAL CSS (Mobile First)
   Identidade: Minimalista, Sofisticada, Health-tech, SaaS Mobile
   Cores: Verde (#508D3F), Grafite (#202320), Off-White (#F4F0E8), Branco (#FFFFFF)
   ========================================================================== */

/* 1. FONTES: Inter & Material Symbols Outlined */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

:root {
  /* Cores Principais LEVVI */
  --color-primary: #508D3F;
  --color-primary-hover: #437634;
  --color-primary-light: rgba(80, 141, 63, 0.12);
  --color-primary-glow: rgba(80, 141, 63, 0.28);
  
  --color-dark: #202320;
  --color-dark-surface: #272B27;
  --color-dark-header: #1A1D1A;
  
  --color-background: #F4F0E8;
  --color-background-subtle: #EAE4D7;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #FBF9F5;
  
  --color-text-main: #202320;
  --color-text-secondary: #5C635B;
  --color-text-muted: #7E877D;
  --color-text-light: #A8B2A7;
  --color-text-white: #FFFFFF;
  
  --color-border: #E6E1D5;
  --color-border-subtle: rgba(0, 0, 0, 0.06);
  --color-border-focus: rgba(80, 141, 63, 0.4);
  
  --color-success: #2E7D32;
  --color-warning: #E65100;
  --color-danger: #D32F2F;
  --color-info: #1976D2;

  /* Aliases para compatibilidade total */
  --levvi-green: var(--color-primary);
  --levvi-green-hover: var(--color-primary-hover);
  --levvi-green-light: var(--color-primary-light);
  --levvi-dark: var(--color-dark);
  --levvi-bg: var(--color-background);
  --levvi-card: var(--color-surface);
  --levvi-text: var(--color-text-main);
  --levvi-text-muted: var(--color-text-muted);
  --levvi-border: var(--color-border);

  /* Espaçamentos Estruturais */
  --space-2xs: 4px;
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 28px;
  --space-2xl: 36px;

  /* Raios de Borda */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.1);
  --shadow-sheet: 0 -8px 30px rgba(0, 0, 0, 0.14);

  /* Dimensões */
  --bottom-nav-height: 68px;
  --app-bar-height: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Geral */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #E6E1D5; /* Fundo do desktop */
  color: var(--color-text-main);
  line-height: 1.45;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.mobile-viewport {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Shell Mobile Centralizado no Desktop */
.mobile-app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--color-background);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.18);
  overflow-x: hidden;
}

@media (max-width: 480px) {
  body.mobile-viewport {
    background-color: var(--color-background);
  }
  .mobile-app-shell {
    max-width: 100%;
    box-shadow: none;
  }
}

.pwa-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  background-color: var(--color-background);
  width: 100%;
}

/* 2. CONFIGURAÇÃO DE ÍCONES (MATERIAL SYMBOLS) */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  user-select: none;
}

/* 3. ELEMENTOS BÁSICOS E LINKS */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text-main);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 4. CLASSES UTILITÁRIAS DE TEXTO */
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-bold { font-weight: 700 !important; }

/* Navigation is available in the header and home modules. */
.pwa-screen{padding-bottom:24px!important}
