
@import url('/assets/platform-tokens.css');

body.sb-react-app {
  background: var(--bg) !important;
  font-family: Inter, system-ui, sans-serif !important;
}

body.sb-react-app [id="root"] > .flex,
body.sb-react-app .flex.h-screen {
  background: var(--bg) !important;
}

body.sb-react-app [id="root"] aside {
  background: var(--sidebar) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: rgb(226, 232, 240);
  display: flex !important;
  flex-direction: column !important;
}

body.sb-react-app [id="root"] aside .border-b {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.sb-react-app [id="root"] aside .text-slate-900,
body.sb-react-app [id="root"] aside strong {
  color: rgb(248, 250, 252);
}

body.sb-react-app [id="root"] aside .text-slate-400,
body.sb-react-app [id="root"] aside .text-slate-500 {
  color: rgb(148, 163, 184);
}

body.sb-react-app [id="root"] aside nav a {
  color: rgb(203, 213, 225);
  border-radius: 8px !important;
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
}

body.sb-react-app [id="root"] aside nav a:hover {
  background: var(--sidebar-hover) !important;
  color: rgb(248, 250, 252);
}

body.sb-react-app [id="root"] aside nav a.border-primary-600,
body.sb-react-app [id="root"] aside nav a.bg-primary-50 {
  background: var(--sidebar-active) !important;
  color: rgb(248, 250, 252);
  border-left-color: var(--accent) !important;
  box-shadow: inset 3px 0 0 var(--accent) !important;
}

body.sb-react-app [id="root"] aside nav a svg {
  opacity: 0.85;
}

body.sb-react-app [id="root"] aside nav a.border-primary-600 svg,
body.sb-react-app [id="root"] aside nav a.bg-primary-50 svg {
  color: var(--accent) !important;
  opacity: 1 !important;
}

body.sb-react-app [id="root"] aside nav a span {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

body.sb-react-app [id="root"] aside .bg-primary-600.rounded-lg,
body.sb-react-app [id="root"] aside .bg-primary-600 {
  background: var(--accent) !important;
  color: rgb(15, 23, 42);
  border-radius: 10px !important;
}

body.sb-react-app [id="root"] aside nav p.text-xs {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: rgb(100, 116, 139) !important;
}

body.sb-react-app header {
  height: var(--header-h) !important;
  min-height: var(--header-h) !important;
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.sb-react-app header .text-slate-900,
body.sb-react-app header h1 {
  color: var(--text) !important;
}

body.sb-react-app header .rounded-full.bg-primary-600,
body.sb-react-app header .bg-primary-600 {
  background: var(--accent) !important;
  color: rgb(15, 23, 42);
  font-weight: 700 !important;
}

body.sb-react-app main,
body.sb-react-app .bg-slate-50 {
  background: var(--bg) !important;
}

body.sb-react-app main .max-w-6xl {
  max-width: 1200px !important;
}

body.sb-react-app main {
  padding: 1.5rem !important;
}

body.sb-react-app main h1,
body.sb-react-app main .text-2xl {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

body.sb-react-app main .text-slate-500,
body.sb-react-app main p.text-sm {
  font-size: 0.85rem !important;
  color: var(--muted) !important;
}

body.sb-react-app .rounded-xl.border,
body.sb-react-app .shadow-sm {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

body.sb-react-app .rounded-xl.border-slate-200 {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
  padding: 1rem !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

body.sb-react-app .rounded-xl.border-slate-200:hover {
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 6px 20px rgba(15, 23, 42, 0.06) !important;
}

body.sb-react-app .text-3xl,
body.sb-react-app .text-2xl.font-bold {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}

body.sb-react-app .rounded-2xl {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

.bg-primary-600,
.bg-primary-500 {
  background-color: var(--accent) !important;
  color: rgb(15, 23, 42);
}

.hover\:bg-primary-700:hover,
.hover\:bg-primary-600:hover {
  background-color: var(--accent-hover) !important;
  color: rgb(15, 23, 42);
}

.text-primary-600,
.text-primary-700,
.text-primary-400 {
  color: var(--accent-hover) !important;
}

.border-primary-500,
.border-primary-600,
.border-t-primary-600 {
  border-color: var(--accent) !important;
}

.ring-primary-500,
.focus\:ring-primary-500:focus,
.focus-visible\:ring-primary-500:focus-visible {
  --tw-ring-color: var(--accent) !important;
}

.focus\:border-primary-500:focus {
  border-color: var(--accent-hover) !important;
}

.bg-primary-50 {
  background-color: var(--accent-soft) !important;
}

.from-primary-600,
.from-primary-400 {
  --tw-gradient-from: var(--accent-hover) !important;
}

.shadow-primary-500\/25 {
  --tw-shadow-color: rgba(234, 179, 8, 0.25) !important;
}

body.sb-react-app input,
body.sb-react-app select,
body.sb-react-app textarea {
  border-radius: 8px !important;
  border-color: var(--border) !important;
}

body.sb-react-app input:focus,
body.sb-react-app select:focus,
body.sb-react-app textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

body.sb-react-app .min-h-screen:not(.flex) {
  background: linear-gradient(135deg, rgb(15, 23, 42), rgb(30, 41, 59)) !important;
}

body.sb-react-app .min-h-screen .rounded-xl.border-slate-200,
body.sb-react-app .min-h-screen .rounded-2xl.border-slate-200 {
  border-color: rgba(234, 179, 8, 0.2) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
  border-radius: 16px !important;
}

body.sb-react-app [id="app-splash"].hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.sb-extra-nav {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sb-extra-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(148, 163, 184);
  padding: 0.75rem 0.75rem 0.35rem;
}

.sb-extra-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  margin: 0 0.35rem 2px;
  border-radius: 8px;
  color: rgb(203, 213, 225);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.sb-extra-nav a:hover {
  background: var(--sidebar-hover);
  color: rgb(248, 250, 252);
}

.sb-extra-nav a.active {
  background: var(--sidebar-active);
  color: rgb(248, 250, 252);
  box-shadow: inset 3px 0 0 var(--accent);
}

.sb-extra-nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.sb-extra-nav a.active svg {
  color: var(--accent);
  opacity: 1;
}

[id="sb-react-sidebar-user"] {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  margin-top: auto;
}

[id="sb-react-sidebar-user"] .sb-user-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

[id="sb-react-sidebar-user"] .sb-avatar,
[id="sb-react-sidebar-user"] .rounded-full {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: rgb(15, 23, 42);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

[id="sb-react-sidebar-user"] strong {
  display: block;
  font-size: 0.8rem;
  color: rgb(248, 250, 252);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

[id="sb-react-sidebar-user"] span {
  font-size: 0.7rem;
  color: rgb(148, 163, 184);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

[id="sb-react-sidebar-user"] .sb-user-actions {
  display: flex;
  gap: 0.4rem;
}

[id="sb-react-sidebar-user"] .sb-user-actions a,
[id="sb-react-sidebar-user"] .sb-user-actions button {
  flex: 1;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgb(203, 213, 225);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

[id="sb-react-sidebar-user"] .sb-user-actions a:hover,
[id="sb-react-sidebar-user"] .sb-user-actions button:hover {
  background: var(--sidebar-hover);
  color: rgb(248, 250, 252);
}
