/* Infostratos X — modern identity layer (keeps legacy component behavior intact) */
:root {
  --ix-brand: #5b5bd6;
  --ix-brand-strong: #4646b7;
  --ix-brand-soft: #ececff;
  --ix-accent: #14b8a6;
  --ix-radius: 14px;
  --ix-radius-lg: 20px;
  --ix-shadow: 0 12px 30px rgba(18, 24, 40, .075);
  --ix-shadow-hover: 0 18px 38px rgba(18, 24, 40, .12);
}
[data-theme="light"] {
  --color-primary: var(--ix-brand);
  --color-background: #f5f7fb;
  --color-surface: #ffffff;
  --color-border: #e4e8f0;
  --color-text-base: #182033;
  --color-text-muted: #647087;
}
[data-theme="dark"] {
  --ix-brand-soft: #2d2e59;
  --color-primary: #8c8cff;
  --color-background: #0b1020;
  --color-surface: #141b2c;
  --color-border: #2b3448;
}
body { background: var(--color-background); letter-spacing: -.012em; }
.app-header { backdrop-filter: blur(14px); background: color-mix(in srgb, var(--color-surface) 90%, transparent); border-bottom-color: var(--color-border); box-shadow: 0 4px 18px rgba(20,30,50,.04); }
#main-sidebar { background: var(--color-surface); border-right: 1px solid var(--color-border); }
.sidebar-logo { color: var(--ix-brand); }
.card, .modal-content, .dropdown-menu, .accordion-item, .list-group-item, .offcanvas, .alert, .module-card, .analysis-card { border-radius: var(--ix-radius); }
.card, .module-card, .analysis-card { border-color: var(--color-border); box-shadow: var(--ix-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover, .module-card:hover, .analysis-card:hover { box-shadow: var(--ix-shadow-hover); }
.btn { border-radius: 10px; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ix-brand); border-color: var(--ix-brand); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--ix-brand-strong); border-color: var(--ix-brand-strong); }
.form-control, .form-select, .input-group-text { border-radius: 10px; border-color: var(--color-border); }
.form-control:focus, .form-select:focus { border-color: var(--ix-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ix-brand) 18%, transparent); }
.nav-link, .dropdown-item { border-radius: 9px; }
.modal-content { border: 1px solid var(--color-border); box-shadow: 0 24px 70px rgba(0,0,0,.18); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--ix-brand) 55%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
