/* frontend/src/index.css */

/* Base limpia para app de ancho completo */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  /* IMPORTANTE: quitar centrado de Vite */
  display: block;
  place-items: initial;
  min-height: 100vh;

  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background: #f3f4f6;
  color: #0f172a;
}

/* Modo normal (si alguna pantalla lo usa) */
#root {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Modo ancho total forzado para tabs wide */
#root.layout-wide {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Links y botones base (suave, no invasivo) */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}
