@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap");
:root {
  --color-brand-primary: #ad8d18;
  --color-brand-accent: #dbc184;
  --color-brand-light: #fff9ec;
  --color-navy-dark: #2c4a77;
  --color-blue-action: #3292fa;
  --color-blue-light: #f5f9ff;
  --color-cyan-vibrant: #00aab5;
  --color-cyan-border: #a5c3c4;
  --color-cyan-light: #ebfdfd;
  --color-bg-light: #f5f9ff;
  --color-surface-white: #ffffff;
  --color-border-subtle: #dfe0df;
  --color-border-medium: #d8d9d9;
  color: #2c4a77;
  background: #f5f9ff;
  font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  border-color: #dfe0df;
}

html,
body {
  min-height: 100%;
  background: #f5f9ff;
  color: #2c4a77;
}

body {
  font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
}

[class~=font-mono] {
  font-family: "JetBrains Mono", "Roboto Mono", monospace;
}

#login-screen,
#app-screen {
  background: #f5f9ff;
  color: #2c4a77;
}

#login-screen > .relative.z-10 {
  border-color: #dfe0df;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(44, 74, 119, 0.08);
}

#login-screen h1,
#app-screen h1,
#app-screen h2,
#app-screen h3,
#app-screen legend {
  color: #2c4a77;
}

#login-screen label,
#app-screen label {
  color: #2c4a77;
}

input,
select,
textarea {
  border-color: #d8d9d9;
  background: #ffffff;
  color: #2c4a77;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, #2c4a77 58%, white);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
[role=tab]:focus-visible {
  outline: 3px solid rgba(50, 146, 250, 0.35);
  outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3292fa;
  box-shadow: 0 0 0 2px rgba(50, 146, 250, 0.16);
}

:is(span, p, h1, h2, h3, h4, h5, h6, figure, figcaption, img, label:not([for])):not([class*=cursor-]) {
  cursor: default;
}

:is(textarea, input:not([type]), input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=month]):not([class*=cursor-]) {
  cursor: text;
}

select,
input[type=checkbox],
input[type=radio],
input[type=file],
input[type=color],
input[type=range],
label[for],
label:has(> input[type=checkbox], > input[type=radio]),
summary,
[role=tab] {
  cursor: pointer;
}

button,
a[href],
a[data-action],
[role=button],
.btn,
input[type=button],
input[type=submit],
input[type=reset] {
  cursor: pointer !important;
}

button *,
a *,
[role=button] *,
.btn * {
  cursor: pointer !important;
  pointer-events: none;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed !important;
}

button:disabled {
  opacity: 0.62;
}

#global-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(245, 249, 255, 0.55);
  animation: global-loader-fade-in 0.15s ease-out;
}

#global-loader .global-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 4px;
  background: linear-gradient(90deg, #3292fa, #ad8d18);
  animation: global-loader-slide 1.1s ease-in-out infinite;
}

#global-loader .global-loader-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid #dfe0df;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(44, 74, 119, 0.18);
}

#global-loader .global-loader-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(50, 146, 250, 0.25);
  border-top-color: #3292fa;
  border-radius: 9999px;
  animation: global-loader-spin 0.8s linear infinite;
}

#global-loader .global-loader-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2c4a77;
}

body.is-loading #global-loader {
  display: flex;
}

body.is-loading,
body.is-loading * {
  cursor: wait !important;
}

@keyframes global-loader-slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}
@keyframes global-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes global-loader-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#sidebar,
header,
[role=tabpanel] .bg-white,
dialog,
#details-modal > div {
  border-color: #dfe0df;
  background: #ffffff;
  color: #2c4a77;
}

#sidebar-overlay {
  background: rgba(44, 74, 119, 0.42);
}

#sidebar .border-t,
header {
  border-color: #dfe0df;
}

.card-tab {
  color: #2c4a77;
}

.card-tab[aria-selected=true] {
  border-color: #ad8d18;
  background: #fff9ec;
  color: #2c4a77;
}

.card-tab[aria-selected=false]:hover,
.card-tab[aria-selected=false]:focus-visible {
  background: #f5f9ff;
  color: #2c4a77;
}

button.bg-indigo-600,
button.bg-sky-600,
button.bg-blue-600,
#login-submit {
  background: #3292fa;
  color: #ffffff;
}

button.bg-indigo-600:hover,
button.bg-sky-600:hover,
button.bg-blue-600:hover,
#login-submit:hover {
  background: #2c4a77;
}

button.bg-slate-900,
button.bg-slate-800 {
  background: #ad8d18;
  color: #fff9ec;
}

button.bg-slate-900:hover,
button.bg-slate-800:hover {
  background: #2c4a77;
}

[class~=bg-white],
[class~="bg-white/85"],
[class~="bg-white/80"] {
  background: #ffffff;
}

[class~=bg-slate-50],
[class~="bg-slate-50/80"],
[class~="bg-slate-50/50"] {
  background: #f5f9ff;
}

[class~=border-slate-100],
[class~=border-slate-200],
[class~="border-slate-200/70"],
[class~=border-slate-300] {
  border-color: #dfe0df;
}

[class~=text-slate-900],
[class~=text-slate-800],
[class~=text-slate-700],
[class~=text-slate-600] {
  color: #2c4a77;
}

[class~=text-slate-500],
[class~=text-slate-400] {
  color: color-mix(in srgb, #2c4a77 66%, white);
}

[class~=text-indigo-700],
[class~=text-sky-700],
[class~=text-cyan-700],
[class~=text-emerald-700] {
  color: #00aab5;
}

[class~=bg-indigo-50],
[class~=bg-cyan-50],
[class~=bg-emerald-50] {
  background: #ebfdfd;
}

[class~=border-emerald-200],
[class~=border-cyan-200],
[class~=border-cyan-300] {
  border-color: #a5c3c4;
}

[class~=bg-emerald-500] {
  background: #00aab5;
}

#summary-data > div:first-child {
  border-color: #dfe0df;
  background: #ffffff;
  color: #2c4a77;
}

#summary-data > div:first-child [class~=text-slate-500],
#summary-data > div:first-child [class~=text-slate-900] {
  color: #2c4a77;
}

#summary-data > div:first-child [class~=bg-slate-100] {
  background: #dbc184;
  color: #2c4a77;
}

[role=tabpanel] table {
  color: #2c4a77;
}

[role=tabpanel] thead {
  background: #f5f9ff;
  color: #2c4a77;
}

[role=tabpanel] tbody tr:hover {
  background: #f5f9ff;
}

dialog::backdrop {
  background: rgba(44, 74, 119, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  #global-loader,
  #global-loader .global-loader-bar,
  #global-loader .global-loader-spinner {
    animation: none !important;
  }
  #global-loader .global-loader-bar {
    width: 100%;
  }
}
