:root {
  color-scheme: dark;
  --ax-bg: #070a10;
  --ax-bg-2: #0a0f18;
  --ax-panel: rgba(13, 19, 30, 0.88);
  --ax-panel-2: rgba(17, 24, 38, 0.94);
  --ax-panel-3: rgba(21, 30, 46, 0.96);
  --ax-border: rgba(148, 163, 184, 0.18);
  --ax-border-hot: rgba(94, 234, 212, 0.34);
  --ax-text: #edf4ff;
  --ax-muted: #9ca9bb;
  --ax-dim: #6e7f95;
  --ax-cyan: #22d3ee;
  --ax-green: #34d399;
  --ax-red: #fb7185;
  --ax-yellow: #fbbf24;
  --ax-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --ax-shadow-hover: 0 18px 56px rgba(10, 211, 238, 0.13), 0 18px 40px rgba(0, 0, 0, 0.34);
}

html,
body,
#root,
#app {
  min-height: 100%;
  color: var(--ax-text) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(34, 211, 238, 0.12), transparent 27%),
    radial-gradient(circle at 82% 12%, rgba(52, 211, 153, 0.09), transparent 28%),
    linear-gradient(rgba(148, 163, 184, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, #070a10 0%, #080c13 54%, #05070c 100%) !important;
  background-size: auto, auto, 48px 48px, 48px 48px, auto !important;
}

body {
  letter-spacing: 0 !important;
  scrollbar-color: rgba(34, 211, 238, 0.38) rgba(7, 10, 16, 0.9);
}

::selection {
  background: rgba(34, 211, 238, 0.28);
  color: #fff;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: rgba(7, 10, 16, 0.92);
}

::-webkit-scrollbar-thumb {
  background: rgba(94, 234, 212, 0.42);
  border: 2px solid rgba(7, 10, 16, 0.94);
  border-radius: 999px;
}

body,
div,
section,
article,
main,
aside,
nav,
header,
footer,
table,
td,
th,
label,
p,
span,
li,
small {
  border-color: var(--ax-border) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
  color: var(--ax-text) !important;
  letter-spacing: 0 !important;
}

p,
small,
label,
.muted,
[class*="muted"],
[class*="sub"],
[class*="desc"],
[class*="hint"] {
  color: var(--ax-muted) !important;
}

a {
  color: #67e8f9 !important;
  text-decoration-color: rgba(103, 232, 249, 0.4) !important;
}

a:hover {
  color: #a7f3d0 !important;
  text-decoration-color: rgba(167, 243, 208, 0.76) !important;
}

[class*="bg-white"],
[class*="bg-gray-50"],
[class*="bg-gray-100"],
[class*="bg-slate-50"],
[class*="bg-slate-100"],
[class*="bg-zinc-50"],
[class*="bg-zinc-100"],
[class*="bg-neutral-50"],
[class*="bg-neutral-100"],
[class*="bg-stone-50"],
[class*="bg-stone-100"],
.axmgc-dark-surface,
.axd-card,
.axd-stat,
.axd-table-wrap,
.axmgc-docs-model-map,
.app,
.topbar,
.composer-card,
.empty,
.result-card,
.asset-drawer,
.history-drawer,
.mention,
.asset-card,
.history-item {
  background:
    linear-gradient(180deg, rgba(20, 28, 43, 0.95), rgba(11, 16, 26, 0.92)) !important;
  color: var(--ax-text) !important;
  border: 1px solid var(--ax-border) !important;
  box-shadow: var(--ax-shadow) !important;
}

.axmgc-dark-soft-surface {
  background: rgba(10, 15, 24, 0.72) !important;
  color: var(--ax-text) !important;
  border-color: var(--ax-border) !important;
}

[class*="shadow"],
.axmgc-dark-surface,
.axmgc-dark-soft-surface {
  box-shadow: var(--ax-shadow) !important;
}

[class*="rounded"],
.axmgc-dark-surface,
.axmgc-dark-soft-surface,
.axd-card,
.axd-stat {
  border-radius: 14px !important;
}

aside,
nav,
[class*="sidebar"],
[class*="sider"],
[role="navigation"] {
  background: rgba(7, 10, 16, 0.9) !important;
  border-color: var(--ax-border) !important;
  backdrop-filter: blur(18px);
}

button,
a[role="button"],
[role="button"],
input,
textarea,
select {
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    filter 0.15s ease !important;
}

button,
a[role="button"],
[role="button"] {
  background: rgba(17, 24, 38, 0.92) !important;
  color: var(--ax-text) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

button:not(:disabled):hover,
a[role="button"]:hover,
[role="button"]:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: var(--ax-border-hot) !important;
  box-shadow: var(--ax-shadow-hover) !important;
  filter: brightness(1.08);
}

button:not(:disabled):active,
a[role="button"]:active,
[role="button"]:not(:disabled):active {
  transform: translateY(0) scale(0.985);
  filter: brightness(0.98);
}

button:disabled,
[aria-disabled="true"] {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

button[class*="bg-blue"],
button[class*="bg-indigo"],
button[class*="bg-violet"],
button[class*="bg-black"],
button[class*="bg-slate-900"],
a[class*="bg-blue"],
a[class*="bg-indigo"],
a[class*="bg-violet"],
a[class*="bg-black"],
a[class*="bg-slate-900"],
.primary,
.send,
.axmgc-dark-primary {
  background: linear-gradient(135deg, #17c4d8 0%, #31c988 100%) !important;
  color: #031015 !important;
  border-color: rgba(94, 234, 212, 0.42) !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

.ghost,
.pill,
[class*="pill"] {
  background: rgba(13, 19, 30, 0.9) !important;
  color: #dbeafe !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

input,
textarea,
select,
.axmgc-dark-control,
.field,
.key-select,
.prompt,
.upload-card,
.media-chip,
.chip {
  background: rgba(7, 11, 18, 0.92) !important;
  color: var(--ax-text) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(156, 169, 187, 0.68) !important;
}

input:focus,
textarea:focus,
select:focus,
[contenteditable="true"]:focus {
  outline: none !important;
  border-color: rgba(34, 211, 238, 0.68) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

option {
  background: #0b111c !important;
  color: var(--ax-text) !important;
}

table {
  color: var(--ax-text) !important;
  border-color: var(--ax-border) !important;
}

thead,
th {
  background: rgba(9, 14, 23, 0.98) !important;
  color: #e0f2fe !important;
  border-color: rgba(148, 163, 184, 0.15) !important;
}

td {
  color: #d8e4f2 !important;
  border-color: rgba(148, 163, 184, 0.12) !important;
}

tbody tr:hover,
.axmgc-dark-surface:hover {
  background-color: rgba(34, 211, 238, 0.055) !important;
}

pre,
code {
  background: rgba(5, 10, 18, 0.9) !important;
  color: #a5f3fc !important;
  border-color: rgba(94, 234, 212, 0.18) !important;
}

hr {
  border-color: var(--ax-border) !important;
}

.money,
.axd-stat .value {
  color: #67e8f9 !important;
}

.success,
[class*="green"] {
  color: #86efac !important;
}

.failed,
[class*="red"] {
  color: #fda4af !important;
}

[class*="yellow"],
[class*="orange"] {
  color: #fcd34d !important;
}

.axd-toolbar button {
  background: rgba(13, 19, 30, 0.9) !important;
  color: var(--ax-muted) !important;
}

.axd-toolbar button.is-active {
  background: linear-gradient(135deg, #17c4d8, #31c988) !important;
  color: #031015 !important;
}

.composer,
.main-scroll,
.canvas {
  background: transparent !important;
}

.progress,
.bar {
  background: rgba(30, 41, 59, 0.82) !important;
}

.progress i,
.bar i {
  background: linear-gradient(90deg, #22d3ee, #34d399) !important;
}

.status-line.info {
  background: rgba(34, 211, 238, 0.1) !important;
  color: #bae6fd !important;
  border-color: rgba(34, 211, 238, 0.28) !important;
}

.status-line.ok {
  background: rgba(52, 211, 153, 0.1) !important;
  color: #bbf7d0 !important;
  border-color: rgba(52, 211, 153, 0.28) !important;
}

.status-line.error {
  background: rgba(251, 113, 133, 0.1) !important;
  color: #fecdd3 !important;
  border-color: rgba(251, 113, 133, 0.3) !important;
}

.logo,
.axd-icon {
  background: linear-gradient(135deg, #17c4d8, #31c988) !important;
  color: #031015 !important;
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.16) !important;
}

.video-frame,
.video-player {
  background: #030712 !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
}

img,
video,
canvas,
iframe {
  border-color: var(--ax-border) !important;
}

iframe {
  background: var(--ax-bg) !important;
}

@media (max-width: 760px) {
  [class*="rounded"],
  .axmgc-dark-surface,
  .axmgc-dark-soft-surface {
    border-radius: 10px !important;
  }
}
