/* Aura is a separate third theme. Studio supplies the shared layout and line icons. */
body.local-aura {
  --brand:#6558c8;
  --brand-rgb:101,88,200;
  --brand-light:#eeebff;
  --preview-ink:#253252;
  --preview-muted:#697895;
  --preview-line:#dce2f1;
  --preview-canvas:#f0f3fb;
  --preview-gold:#6558c8;
  --preview-gold-soft:#eeebff;
  --redesign-navy:#253252;
  --redesign-navy-soft:#354665;
  --redesign-muted:#697895;
  --redesign-canvas:#f0f3fb;
  --redesign-line:#dce2f1;
  --surface-edge:#dce2f1;
  --surface-shadow:0 8px 24px rgba(42,57,105,.10),0 1px 3px rgba(42,57,105,.05);
  --shadow-sm:0 4px 12px rgba(42,57,105,.08);
  --shadow-md:0 10px 26px rgba(42,57,105,.12);
  --shadow-lg:0 20px 40px rgba(42,57,105,.16);
  --ring:0 0 0 3px rgba(101,88,200,.22);
  background:#f0f3fb !important;
  color:#253252;
}

body.local-aura .app-shell,
body.local-aura .app-content {
  background:radial-gradient(ellipse 58% 36% at 80% 0%,rgba(181,173,255,.18),transparent 80%),
             radial-gradient(ellipse 50% 32% at 0% 85%,rgba(107,211,202,.12),transparent 80%),
             #f0f3fb !important;
}
body.local-aura .gr-layout { gap:24px; }
body.local-aura .gr-layout :is(.gr-title,h1,h2),
body.local-aura .gr-page-enter h1,
body.local-aura .gr-page-enter h2 { color:#233050 !important; }
body.local-aura .gr-module-title .gr-redesign-icon,
body.local-aura .visual-module .gr-redesign-icon {
  background:linear-gradient(145deg,#f4f1ff,#dff6f1) !important;
  color:#5c56b7 !important;
  border:1px solid rgba(101,88,200,.10);
  box-shadow:0 5px 13px rgba(75,76,155,.09);
}

/* Navigation, choices and controls share the new violet and mint identity. */
body.local-aura .app-sidebar,
body.local-aura .gr-mobile-left {
  background:linear-gradient(180deg,#242e50 0%,#1c2944 100%) !important;
  border-color:#354366 !important;
}
body.local-aura .app-sidebar .gr-nav,
body.local-aura .gr-mobile-left .gr-nav { color:#cbd5e9 !important; }
body.local-aura .app-sidebar .gr-nav.active,
body.local-aura .gr-mobile-left .gr-nav.active {
  background:#384568 !important;
  border-color:#536290 !important;
  box-shadow:inset 3px 0 #8fe2d3,0 6px 18px rgba(11,19,43,.18) !important;
  color:#fff !important;
}
body.local-aura .app-sidebar .gr-nav:hover,
body.local-aura .gr-mobile-left .gr-nav:hover { background:#334162 !important; color:#fff !important; }
body.local-aura .app-sidebar .gr-nav-sek,
body.local-aura .gr-mobile-left .gr-nav-sek { color:#aebddd !important; }
body.local-aura .app-bottom-nav {
  background:rgba(250,251,255,.94) !important;
  border-top-color:#d5def0 !important;
  box-shadow:0 -8px 26px rgba(36,49,93,.10) !important;
}
body.local-aura .app-bottom-nav .gr-mobile-nav-item.active {
  background:#eae9ff !important;
  border-color:#c9c8ee !important;
  color:#504bac !important;
  box-shadow:0 3px 12px rgba(81,76,176,.10) !important;
}
body.local-aura .gr-back {
  background:rgba(255,255,255,.94) !important;
  border-color:#d4dbef !important;
  color:#3c4a75 !important;
  box-shadow:0 5px 14px rgba(42,57,105,.08) !important;
}
body.local-aura .gr-back .gr-back-ico { background:#ecebff !important; color:#5652b5 !important; }
body.local-aura .gr-fab { background:#4e55a0 !important; color:#fff !important; }
body.local-aura .gr-redesign-auth {
  background:radial-gradient(circle at 50% 0%,#e3e1ff,transparent 48%),
             radial-gradient(circle at 100% 100%,#e2f8f2,transparent 40%),#f0f3fb !important;
}
body.local-aura .gr-redesign-auth-card {
  border:1px solid #d7dff1 !important;
  border-radius:20px !important;
  box-shadow:0 18px 42px rgba(40,53,105,.14) !important;
}
body.local-aura .gr-redesign-auth-card .gr-btn {
  background:#514ca4 !important;
  border-color:#514ca4 !important;
  color:#fff !important;
}
body.local-aura .gr-redesign-auth-card button:not(:disabled):hover { filter:brightness(1.04); }
body.local-aura .gr-btn,
body.local-aura .gr-fab,
body.local-aura .gr-page-enter .gr-profil-save {
  border-radius:12px !important;
  box-shadow:0 6px 16px rgba(68,65,147,.13) !important;
}
body.local-aura :is(.gr-seg-item.active,.gr-chip.active,.gr-client-type-switch button.is-active) {
  background:#544eab !important;
  border-color:#544eab !important;
  color:white !important;
}
body.local-aura :is(.gr-tabs-item.active,.gr-page-enter a:not(.gr-btn)) { color:#5654af; }
body.local-aura .gr-tabs-item.active { box-shadow:inset 0 -2px 0 #6f66c9 !important; }

/* One card language across the dashboard, module lists, detail views and rail. */
body.local-aura :is(.gr-card,.visual-module,.gr-mapa,.gr-my-task-card,.gr-week-day-card,.gr-arrow-card,.gr-banka-kartica) {
  border-radius:18px !important;
  box-shadow:0 9px 24px rgba(43,58,105,.10),0 1px 3px rgba(43,58,105,.05) !important;
}
body.local-aura .gr-page-enter :is(.gr-card,.gr-mapa,.gr-my-task-card,.gr-week-day-card,.gr-banka-kartica),
body.local-aura .gr-rail .gr-card,
body.local-aura .visual-dashboard .visual-module {
  border-color:#dce2f1 !important;
}
body.local-aura .visual-dashboard .visual-finance,
body.local-aura .visual-dashboard .visual-today {
  background:linear-gradient(128deg,#263455,#3b4775 68%,#53668c) !important;
  border-color:#485984 !important;
  border-radius:20px !important;
  box-shadow:0 14px 30px rgba(34,48,92,.20) !important;
}
body.local-aura .visual-dashboard .visual-finance .gr-arrow-card {
  background:rgba(255,255,255,.10) !important;
  border-color:rgba(224,235,255,.22) !important;
  box-shadow:none !important;
}
body.local-aura .visual-dashboard .gr-tiles .visual-module {
  background:linear-gradient(155deg,#fff 55%,#f6f5ff) !important;
  border:1px solid #dce2f1 !important;
  color:#293758 !important;
}
body.local-aura .project-card {
  background:linear-gradient(150deg,#fff 65%,#f8f9ff) !important;
  border-radius:17px !important;
  box-shadow:0 9px 25px rgba(43,58,105,.11) !important;
}
body.local-aura .gr-page-enter .project-card {
  border-color:var(--project-accent,#dce2f1) !important;
  border-left-width:4px !important;
}
body.local-aura .project-card:hover,
body.local-aura .gr-card-hl:hover,
body.local-aura .gr-mapa:hover,
body.local-aura .visual-dashboard .visual-module:hover {
  box-shadow:0 15px 31px rgba(43,58,105,.16) !important;
}
body.local-aura .project-card-fact { background:#f4f5ff !important; border-color:#e2e5f5 !important; }
body.local-aura :is(.gr-finance-section,.gr-client-form,.gr-my-task-form,.gr-machine-form,.gr-vehicle-form,.gr-ulazni-form) {
  background:#fff !important;
  border-color:#dce2f1 !important;
  border-radius:18px !important;
  box-shadow:0 8px 24px rgba(43,58,105,.09) !important;
}
body.local-aura .gr-page-enter :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) {
  background:#fbfcff !important;
  border-color:#d7def0 !important;
  border-radius:11px !important;
}
body.local-aura .gr-page-enter :is(input,select,textarea):focus-visible {
  outline-color:#665ecc !important;
  border-color:#665ecc !important;
}
/* Each module family gets its own icon accent; the two older themes keep theirs. */
body.local-aura :is(.gr-screen-projekti,.gr-screen-dnevnik,.gr-screen-ponude) { --screen-accent:#c67465; --screen-accent-soft:#fff0ed; }
body.local-aura :is(.gr-screen-zadaci,.gr-screen-kalendar,.gr-screen-mojtjedan,.gr-screen-raspored) { --screen-accent:#168c84; --screen-accent-soft:#e7f7f3; }
body.local-aura :is(.gr-screen-racuni,.gr-screen-banka,.gr-screen-obveze,.gr-screen-financije,.gr-screen-prihodi) { --screen-accent:#4b73b4; --screen-accent-soft:#eaf1ff; }
body.local-aura :is(.gr-screen-radnici,.gr-screen-chat,.gr-screen-klijenti,.gr-screen-kooperanti,.gr-screen-dobavljaci,.gr-screen-profil) { --screen-accent:#705cc2; --screen-accent-soft:#efecff; }
body.local-aura :is(.gr-screen-vozila,.gr-screen-strojevi,.gr-screen-skladiste,.gr-screen-alati,.gr-screen-dokumenti) { --screen-accent:#478a99; --screen-accent-soft:#e7f4f7; }
body.local-aura .app-shell[class*="gr-screen-"] .gr-module-title .gr-redesign-icon {
  color:var(--screen-accent,#665ecc) !important;
  background:linear-gradient(145deg,#fff,var(--screen-accent-soft,#efecff)) !important;
  border:1px solid color-mix(in srgb,var(--screen-accent,#665ecc) 20%,white);
  box-shadow:0 5px 13px rgba(75,76,155,.09);
}
body.local-aura .visual-module .gr-redesign-icon { background:linear-gradient(145deg,#f5f2ff,#e3f7f2) !important; }
.gr-theme-choice-aura .gr-theme-swatch { background:#f0f3fb !important; }
.gr-theme-choice-aura .gr-theme-swatch span:first-child { background:#263455 !important; }
.gr-theme-choice-aura .gr-theme-swatch span:nth-child(2) { background:linear-gradient(90deg,#5d5ab5,#71c5bb) !important; }
.gr-theme-choice-aura .gr-theme-swatch span:last-child { background:#fff !important; box-shadow:0 4px 12px rgba(43,58,105,.13); }
body.local-classic .gr-theme-choice-grid,
body.local-redesign .gr-theme-choice-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
body.local-aura .gr-theme-choice.is-active { border-color:#665ecc !important; box-shadow:0 0 0 3px rgba(102,94,204,.14) !important; }
body.local-aura .gr-theme-choice-check { color:#5654af !important; }
@media(max-width:800px) {
  body.local-classic .gr-theme-choice-grid,
  body.local-redesign .gr-theme-choice-grid { grid-template-columns:1fr; }
}

/* A restrained drift: clearly visible, but less than half the 13px homepage logo. */
@keyframes gr-aura-drift {
  0%,100% { translate:0 1px; }
  50% { translate:0 -5px; }
}
@media (prefers-reduced-motion:no-preference) {
  body.local-aura .gr-page-enter :is(.gr-card:not(.gr-client-form):not(.gr-my-task-form),.gr-mapa,.gr-my-task-card,.gr-week-day-card,.project-card,.visual-module),
  body.local-aura .gr-rail .gr-card {
    animation:gr-aura-drift 6.2s ease-in-out infinite;
  }
  body.local-aura .gr-page-enter :is(.gr-card,.gr-mapa,.gr-my-task-card,.project-card,.visual-module):nth-child(3n+2),
  body.local-aura .gr-rail .gr-card:nth-child(3n+2) { animation-delay:-2.1s; }
  body.local-aura .gr-page-enter :is(.gr-card,.gr-mapa,.gr-my-task-card,.project-card,.visual-module):nth-child(3n),
  body.local-aura .gr-rail .gr-card:nth-child(3n) { animation-delay:-4.2s; }
  body.local-aura :is(.gr-card,.gr-mapa,.gr-my-task-card,.project-card,.visual-module):focus-within {
    animation:none !important;
    translate:0 0;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.local-aura :is(.gr-card,.gr-mapa,.gr-my-task-card,.project-card,.visual-module) { animation:none !important; translate:0 0 !important; }
}
