/* ── Poppins auto-hospedada ─────────────────────────────────────────────
   Baixada do Google Fonts e servida do proprio dominio: nenhuma requisicao
   a terceiros, nada para liberar na CSP. Licenca SIL OFL 1.1.
   Dois recortes por peso — `latin` cobre o portugues; `-ext` entra so quando
   a pagina tem caractere fora dele. Ver public/fonts/LEIA-ME.md.
*/
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-500-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas, monospace;

  --bg: #ffffff;
  --surface: #f7f9fc;
  --surface-2: #eef2f8;
  --border: #e3e8ef;
  --hover: #f0f4fa;
  --selected: #e6efff;

  --text: #141a22;
  --text-muted: #5b6572;
  --text-soft: #8a929e;

  --brand: #2f6df6;
  --brand-hover: #1f57d6;
  --brand-soft: #e6efff;

  --danger: #e2483d;
  --danger-soft: #fdecea;
  --warn: #f0a92a;
  --warn-soft: #fdf3e0;
  --ok: #1e9e6a;
  --ok-soft: #e6f6ef;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(20, 26, 34, .06), 0 1px 3px rgba(20, 26, 34, .04);
  --shadow-2: 0 4px 16px rgba(20, 26, 34, .10);
  --shadow-3: 0 12px 40px rgba(20, 26, 34, .16);

  --sidebar-w: 256px;
  --topbar-h: 64px;
  --details-w: 340px;

  --ease: cubic-bezier(.2, .8, .3, 1);
  --dur: 160ms;

  /* Cores por tipo de arquivo — o mesmo tom no ícone da grade e da lista. */
  --type-folder: #f0b429;
  --type-image: #2f9e6f;
  --type-video: #d1453b;
  --type-audio: #8b5cf6;
  --type-pdf: #e2483d;
  --type-document: #2f6df6;
  --type-spreadsheet: #1e9e6a;
  --type-presentation: #ef7c1b;
  --type-archive: #7a8698;
  --type-code: #0f8fa5;
  --type-text: #5b6572;
  --type-other: #8a929e;
}

/* Modo escuro entra trocando só estes valores. */
[data-theme='dark'] {
  --bg: #10141a;
  --surface: #161b23;
  --surface-2: #1d2430;
  --border: #262e3b;
  --hover: #1b222c;
  --selected: #1b2a48;

  --text: #e8ecf2;
  --text-muted: #a2acbb;
  --text-soft: #7c8697;

  --brand-soft: #16233d;
  --danger-soft: #331a19;
  --warn-soft: #33280f;
  --ok-soft: #12291f;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, .55);
  --shadow-3: 0 12px 40px rgba(0, 0, 0, .6);
}
