/* Aethelix Mega — capa de marca sobre la app (se inyecta desde nginx). */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --ax-bg: #0a0a0f;
  --ax-card: #14141c;
  --ax-card-2: #101017;
  --ax-border: rgba(255, 255, 255, .07);
  --ax-border-strong: rgba(255, 255, 255, .14);
  --ax-text: #f5f5f7;
  --ax-muted: #a1a1aa;
  --ax-grad: linear-gradient(135deg, #ff7a3d 0%, #ff5a1f 45%, #f03c0c 100%);
  --ax-grad-text: linear-gradient(120deg, #ffd23f 0%, #ff8c00 45%, #ff5a1f 100%);
}

html, body { background: var(--ax-bg) !important; }
body, button, input, textarea, select,
.mantine-Text-root, .mantine-Title-root, .mantine-Button-root, .mantine-Input-input {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}
body {
  color: var(--ax-text);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 90, 31, .16), transparent 60%),
    radial-gradient(700px 420px at -10% 10%, rgba(255, 140, 0, .08), transparent 60%),
    var(--ax-bg) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}
::selection { background: rgba(255, 90, 31, .35); color: #fff; }

/* Cabecera de cristal */
.mantine-Header-root {
  background: rgba(10, 10, 15, .72) !important;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--ax-border) !important;
}
.mantine-Header-root img { filter: drop-shadow(0 4px 14px rgba(255, 140, 0, .25)); }
.mantine-Header-root .mantine-Title-root,
.mantine-Header-root .mantine-Text-root[data-ax-brand] { font-weight: 800 !important; letter-spacing: -.02em; }

/* Títulos con degradado de fuego */
.mantine-Title-root[class*="h1"], h1.mantine-Title-root {
  letter-spacing: -.03em;
}

/* Tarjetas, menús y modales */
.mantine-Paper-root, .mantine-Card-root, .mantine-Modal-modal, .mantine-Menu-dropdown,
.mantine-Popover-dropdown, .mantine-Select-dropdown, .mantine-Notification-root {
  background-color: var(--ax-card) !important;
  border: 1px solid var(--ax-border) !important;
  border-radius: 18px !important;
}
.mantine-Modal-modal { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8) !important; }
.mantine-Modal-overlay { backdrop-filter: blur(6px); }

/* Botones principales con el degradado de Aethelix */
.mantine-Button-root:not([data-disabled]):not(:disabled)[class*="filled"],
.mantine-Button-root.mantine-Button-filled {
  background-image: var(--ax-grad) !important;
  border: 0 !important;
  box-shadow: 0 10px 30px -10px rgba(255, 90, 31, .6);
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.mantine-Button-root:not([data-disabled]):not(:disabled):hover { transform: translateY(-1px); }
.mantine-Button-root { border-radius: 12px !important; font-weight: 600 !important; }

/* Campos de texto */
.mantine-Input-input, .mantine-TextInput-input, .mantine-PasswordInput-input,
.mantine-NumberInput-input, .mantine-Select-input, .mantine-Textarea-input {
  background-color: var(--ax-card-2) !important;
  border: 1px solid var(--ax-border-strong) !important;
  border-radius: 12px !important;
}
.mantine-Input-input:focus, .mantine-Input-input:focus-within,
.mantine-PasswordInput-input:focus-within {
  border-color: #ff5a1f !important;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .18);
}

/* Zona para soltar archivos */
.mantine-Dropzone-root {
  background: linear-gradient(180deg, rgba(255, 90, 31, .06), rgba(255, 90, 31, .02)) !important;
  border: 2px dashed rgba(255, 122, 61, .45) !important;
  border-radius: 22px !important;
  transition: border-color .2s, background .2s;
}
.mantine-Dropzone-root:hover, .mantine-Dropzone-root[data-accept] {
  border-color: #ff7a3d !important;
  background: rgba(255, 90, 31, .1) !important;
}

/* Tablas */
.mantine-Table-root thead tr th { color: var(--ax-muted) !important; font-weight: 600; }
.mantine-Table-root tbody tr:hover { background: rgba(255, 255, 255, .03); }


/* Scrollbar */
* { scrollbar-color: #2a2a35 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a35; border-radius: 10px; border: 2px solid var(--ax-bg); }

/* Enlaces y pie con los colores de Aethelix */
.mantine-Anchor-root { color: #ff8f52 !important; }
.mantine-Anchor-root:hover { color: #ffb38a !important; }
.mantine-Footer-root {
  background: rgba(10, 10, 15, .85) !important;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--ax-border) !important;
}
.mantine-Footer-root .mantine-Text-root { color: var(--ax-muted) !important; }

/* Móvil */
@media (max-width: 600px) {
  .mantine-Container-root { padding-left: 14px !important; padding-right: 14px !important; }
  .mantine-Paper-root, .mantine-Card-root { border-radius: 16px !important; }
  .mantine-Dropzone-root { border-radius: 18px !important; }
  .mantine-Table-root { font-size: 13px; }
  .mantine-Modal-modal { border-radius: 18px !important; }
  .mantine-Footer-root .mantine-SimpleGrid-root { gap: 6px !important; }
  .mantine-Footer-root .mantine-Text-root { font-size: 11.5px !important; }
}

/* Letra Inter en toda la app */
[class*="mantine-"]:not(code):not(pre):not(kbd) {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}
