/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: .25rem;
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .start {
    inset-inline-start: var(--spacing);
  }

  .end {
    inset-inline-end: var(--spacing);
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .inline-block {
    display: inline-block;
  }

  .inline-flex {
    display: inline-flex;
  }

  .table {
    display: table;
  }

  .grow {
    flex-grow: 1;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .italic {
    font-style: italic;
  }

  .line-through {
    text-decoration-line: line-through;
  }

  .underline {
    text-decoration-line: underline;
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .\!filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, ) !important;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }

  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #080c18;
  --bg-secondary: #0d1225;
  --bg-card: #111828;
  --bg-surface: #161e30;
  --bg-hover: #1a2440;
  --border: #1e2a45;
  --border-subtle: #253050;
  --accent-purple: #6c30ec;
  --accent-purple-light: #8b5cf6;
  --accent-teal: #0fa498;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-brand: linear-gradient(135deg, #6c30ec 0%, #0fa498 100%);
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-weight: 600;
}

#root {
  width: 100%;
  height: 100%;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 #6c30ec66;
  }

  50% {
    box-shadow: 0 0 0 8px #6c30ec00;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.fade-in {
  animation: .4s ease-out both fadeIn;
}

.fade-in-up {
  animation: .4s ease-out both fadeInUp;
}

.slide-in-left {
  animation: .3s ease-out both slideInLeft;
}

.ck-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}

.ck-card:hover {
  border-color: var(--border-subtle);
}

.ck-card-glow:hover {
  border-color: #6c30ec66;
  box-shadow: 0 0 0 1px #6c30ec26, 0 8px 32px #6c30ec14;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}

.stat-card:before {
  content: "";
  background: var(--gradient-brand);
  opacity: 0;
  height: 2px;
  transition: opacity .2s;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.stat-card:hover:before {
  opacity: 1;
}

.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  z-index: 50;
  width: 240px;
  min-width: 240px;
  height: 100vh;
  transition: width .3s;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
}

.sidebar.collapsed {
  width: 64px;
  min-width: 64px;
}

.sidebar-item {
  cursor: pointer;
  color: var(--text-secondary);
  white-space: nowrap;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all .15s;
  display: flex;
  overflow: hidden;
}

.sidebar-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar-item.active {
  color: var(--accent-purple-light);
  background: #6c30ec26;
  border: 1px solid #6c30ec33;
}

.sidebar-item.active .sidebar-icon {
  color: var(--accent-purple);
}

.sidebar-group-label {
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 16px 6px;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-submenu {
  padding-left: 36px;
}

.sidebar-submenu .sidebar-item {
  padding: 6px 12px;
  font-size: 13px;
}

.topnav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  z-index: 40;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 24px;
  display: flex;
  position: sticky;
  top: 0;
}

.btn-primary {
  background: var(--accent-purple);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .15s;
  display: inline-flex;
}

.btn-primary:hover {
  background: var(--accent-purple-light);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all .15s;
  display: inline-flex;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent-purple);
}

.btn-ghost {
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  transition: all .15s;
  display: inline-flex;
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-danger {
  color: #ef4444;
  cursor: pointer;
  background: #ef44441a;
  border: 1px solid #ef44444d;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all .15s;
  display: inline-flex;
}

.btn-danger:hover {
  background: #ef444433;
}

.btn-icon {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 7px;
  transition: all .15s;
  display: inline-flex;
}

.btn-icon:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.ck-input {
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 8px;
  outline: none;
  width: 100%;
  padding: 8px 12px;
  font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s;
}

.ck-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px #6c30ec26;
}

.ck-input::placeholder {
  color: var(--text-muted);
}

.ck-select {
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  border-radius: 8px;
  outline: none;
  padding: 8px 32px 8px 12px;
  font-size: 13.5px;
  transition: border-color .15s;
}

.ck-select:focus {
  border-color: var(--accent-purple);
}

.ck-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
}

.ck-table th {
  background: var(--bg-surface);
  color: var(--text-muted);
  letter-spacing: .8px;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
}

.ck-table td {
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
  padding: 12px 16px;
}

.ck-table tr:last-child td {
  border-bottom: none;
}

.ck-table tbody tr:hover td {
  background: #ffffff05;
}

.ck-table td strong {
  color: var(--text-primary);
  font-weight: 500;
}

.badge {
  white-space: nowrap;
  border-radius: 100px;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}

.badge-green {
  color: #10b981;
  background: #10b98126;
  border: 1px solid #10b98140;
}

.badge-red {
  color: #ef4444;
  background: #ef444426;
  border: 1px solid #ef444440;
}

.badge-amber {
  color: #f59e0b;
  background: #f59e0b26;
  border: 1px solid #f59e0b40;
}

.badge-blue {
  color: #60a5fa;
  background: #3b82f626;
  border: 1px solid #3b82f640;
}

.badge-purple {
  color: #9b7bff;
  background: #6e44ff26;
  border: 1px solid #6e44ff40;
}

.badge-teal {
  color: #22d3ee;
  background: #06b6d426;
  border: 1px solid #06b6d440;
}

.badge-gray {
  color: #94a3b8;
  background: #64748b26;
  border: 1px solid #64748b40;
}

.badge-pink {
  color: #ec4899;
  background: #ec489926;
  border: 1px solid #ec489940;
}

.modal-overlay {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 100;
  background: #0009;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: .2s ease-out fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  animation: .25s ease-out fadeInUp;
  overflow-y: auto;
}

.modal-lg {
  max-width: 760px;
}

.modal-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  display: flex;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  display: flex;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.page-header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  display: flex;
}

.page-title {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
}

.page-subtitle {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 13px;
}

.search-wrapper {
  align-items: center;
  display: flex;
  position: relative;
}

.search-wrapper .search-icon {
  color: var(--text-muted);
  pointer-events: none;
  position: absolute;
  left: 10px;
}

.search-input {
  padding-left: 34px !important;
}

.brand-gradient {
  background: var(--gradient-brand);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.status-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  display: inline-block;
}

.status-dot-green {
  background: #10b981;
  box-shadow: 0 0 6px #10b98199;
}

.status-dot-red {
  background: #ef4444;
  box-shadow: 0 0 6px #ef444499;
}

.status-dot-amber {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b99;
}

.status-dot-blue {
  background: #60a5fa;
}

.status-dot-gray {
  background: #64748b;
}

.avatar {
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

.tab-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 2px;
  padding: 4px;
  display: flex;
}

.tab-item {
  cursor: pointer;
  color: var(--text-secondary);
  white-space: nowrap;
  border-radius: 7px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}

.tab-item.active {
  background: var(--accent-purple);
  color: #fff;
}

.tab-item:not(.active):hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.progress-bar {
  background: var(--border);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  background: var(--gradient-brand);
  border-radius: 100px;
  height: 100%;
  transition: width .5s;
}

.divider {
  background: var(--border);
  height: 1px;
  margin: 16px 0;
}

.login-page {
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
}

.login-left {
  border-right: 1px solid var(--border);
  background: linear-gradient(135deg, #0d1225 0%, #111828 100%);
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 60px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.login-right {
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  max-width: 480px;
  padding: 60px;
  display: flex;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-orb {
  filter: blur(80px);
  opacity: .15;
  border-radius: 50%;
  position: absolute;
}

.notif-dot {
  background: var(--accent-red);
  border: 2px solid var(--bg-secondary);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: -2px;
  right: -2px;
}

.dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border);
  z-index: 200;
  border-radius: 12px;
  min-width: 200px;
  margin-top: 6px;
  animation: .15s ease-out fadeInUp;
  position: absolute;
  top: 100%;
  right: 0;
  overflow: hidden;
  box-shadow: 0 16px 48px #0006;
}

.dropdown-item {
  cursor: pointer;
  color: var(--text-secondary);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  transition: all .1s;
  display: flex;
}

.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dropdown-item.danger {
  color: #ef4444;
}

.dropdown-item.danger:hover {
  background: #ef44441a;
}

.dropdown-divider {
  background: var(--border);
  height: 1px;
  margin: 4px 0;
}

.chart-container {
  width: 100%;
  height: 200px;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  display: flex;
}

.timeline-item {
  gap: 12px;
  display: flex;
  position: relative;
}

.timeline-dot {
  background: var(--accent-purple);
  z-index: 1;
  border-radius: 50%;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  position: relative;
}

.timeline-line {
  background: var(--border);
  width: 1px;
  position: absolute;
  top: 14px;
  bottom: -16px;
  left: 4px;
}

.tooltip-trigger {
  position: relative;
}

.tooltip-text {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 99;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  transition: opacity .15s;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
}

.tooltip-trigger:hover .tooltip-text {
  opacity: 1;
}

.spinner {
  border: 2px solid var(--border);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: .8s linear infinite spin;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  display: grid;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  display: grid;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  display: grid;
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  display: grid;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.main-content {
  background: var(--bg-primary);
  min-height: 100vh;
  margin-left: 240px;
  transition: margin-left .3s;
}

.main-content.collapsed {
  margin-left: 64px;
}

.page-content {
  padding: 28px;
}

.light-theme {
  --bg-primary: #f8f8fc;
  --bg-secondary: #fff;
  --bg-card: #fff;
  --bg-surface: #f3f0fb;
  --bg-hover: #eae4f8;
  --border: #e2ddf5;
  --border-subtle: #c9c2e8;
  --accent-purple: #6c30ec;
  --accent-purple-light: #8b5cf6;
  --accent-teal: #0fa498;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --text-primary: #2e313b;
  --text-secondary: #4b4f5e;
  --text-muted: #6b7280;
  --gradient-brand: linear-gradient(135deg, #6c30ec 0%, #0fa498 100%);
}

.light-theme html, .light-theme body, .light-theme #root {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.light-theme .ck-table tbody tr:hover td {
  background: #6e44ff08;
}

.light-theme .modal-overlay {
  background: #0f172a80;
}

.light-theme .dropdown {
  box-shadow: 0 8px 32px #0f172a1f;
}

.light-theme ::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.light-theme ::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
}

.sidebar-backdrop {
  z-index: 149;
  background: #0000008c;
  animation: .2s ease-out fadeIn;
  display: none;
  position: fixed;
  inset: 0;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .sidebar, .sidebar.collapsed {
    box-shadow: none;
    z-index: 150;
    height: 100dvh;
    transform: translateX(-100%);
    width: 240px !important;
    min-width: 240px !important;
    transition: transform .28s !important;
  }

  .sidebar.mobile-open {
    box-shadow: 8px 0 40px #00000073;
    transform: translateX(0) !important;
  }

  .sidebar-backdrop {
    display: block;
  }

  .main-content, .main-content.collapsed {
    margin-left: 0 !important;
  }

  .topnav {
    gap: 8px;
    padding: 0 12px;
  }

  .topnav-search, .topnav-greeting, .topnav-currency {
    display: none !important;
  }

  .page-content {
    padding: 14px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-header > div:last-child {
    justify-content: flex-start;
    width: 100%;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .grid-4, .grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .ck-card:has( > .ck-table), .ck-card:has( > table) {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  .ck-table {
    min-width: 580px;
  }

  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .modal {
    max-height: 92vh;
    animation: .25s ease-out slideUpMobile;
    border-radius: 20px 20px 0 0 !important;
    max-width: 100% !important;
  }

  @keyframes slideUpMobile {
    from {
      opacity: 0;
      transform: translateY(40px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .modal-lg {
    max-width: 100% !important;
  }

  .tab-bar {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
  }

  .tab-bar::-webkit-scrollbar {
    display: none;
  }

  .tab-item {
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 12px;
  }

  .dropdown {
    min-width: 240px;
  }

  .login-left-panel {
    display: none !important;
  }

  .login-right-panel {
    width: 100% !important;
    min-width: unset !important;
    padding: 28px 24px !important;
  }

  .sidebar-submenu {
    padding-left: 26px;
  }

  .page-title {
    font-size: 18px;
  }

  .recognition-desktop {
    display: none !important;
  }

  .recognition-mobile {
    display: block !important;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(120%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}
