/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@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;
    --color-red-50: oklch(97.1% 0.013 17.38);
    --color-red-400: oklch(70.4% 0.191 22.216);
    --color-red-500: oklch(63.7% 0.237 25.331);
    --color-red-600: oklch(57.7% 0.245 27.325);
    --color-red-900: oklch(39.6% 0.141 25.723);
    --color-amber-500: oklch(76.9% 0.188 70.08);
    --color-yellow-50: oklch(98.7% 0.026 102.212);
    --color-yellow-200: oklch(94.5% 0.129 101.54);
    --color-yellow-500: oklch(79.5% 0.184 86.047);
    --color-yellow-600: oklch(68.1% 0.162 75.834);
    --color-yellow-700: oklch(55.4% 0.135 66.442);
    --color-yellow-900: oklch(42.1% 0.095 57.708);
    --color-green-50: oklch(98.2% 0.018 155.826);
    --color-green-100: oklch(96.2% 0.044 156.743);
    --color-green-200: oklch(92.5% 0.084 155.995);
    --color-green-500: oklch(72.3% 0.219 149.579);
    --color-green-600: oklch(62.7% 0.194 149.214);
    --color-green-800: oklch(44.8% 0.119 151.328);
    --color-blue-50: oklch(97% 0.014 254.604);
    --color-blue-100: oklch(93.2% 0.032 255.585);
    --color-blue-400: oklch(70.7% 0.165 254.624);
    --color-blue-500: oklch(62.3% 0.214 259.815);
    --color-blue-600: oklch(54.6% 0.245 262.881);
    --color-blue-900: oklch(37.9% 0.146 265.522);
    --color-purple-500: oklch(62.7% 0.265 303.9);
    --color-slate-500: oklch(55.4% 0.046 257.417);
    --color-gray-50: oklch(98.5% 0.002 247.839);
    --color-gray-100: oklch(96.7% 0.003 264.542);
    --color-gray-300: oklch(87.2% 0.01 258.338);
    --color-gray-400: oklch(70.7% 0.022 261.325);
    --color-gray-500: oklch(55.1% 0.027 264.364);
    --color-gray-600: oklch(44.6% 0.03 256.802);
    --color-gray-700: oklch(37.3% 0.034 259.733);
    --color-gray-800: oklch(27.8% 0.033 256.848);
    --color-gray-900: oklch(21% 0.034 264.665);
    --color-white: #fff;
    --spacing: 0.25rem;
    --container-xs: 20rem;
    --container-md: 28rem;
    --container-xl: 36rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --animate-spin: spin 1s linear infinite;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    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;
    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 {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.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 {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :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)) {
        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, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-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"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }
  .fixed {
    position: fixed;
  }
  .static {
    position: static;
  }
  .col-span-2 {
    grid-column: span 2 / span 2;
  }
  .mx-1 {
    margin-inline: calc(var(--spacing) * 1);
  }
  .mx-auto {
    margin-inline: auto;
  }
  .mt-0\.5 {
    margin-top: calc(var(--spacing) * 0.5);
  }
  .mt-1 {
    margin-top: calc(var(--spacing) * 1);
  }
  .mt-1\.5 {
    margin-top: calc(var(--spacing) * 1.5);
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mt-3 {
    margin-top: calc(var(--spacing) * 3);
  }
  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }
  .mt-6 {
    margin-top: calc(var(--spacing) * 6);
  }
  .mr-1 {
    margin-right: calc(var(--spacing) * 1);
  }
  .mr-2 {
    margin-right: calc(var(--spacing) * 2);
  }
  .mr-3 {
    margin-right: calc(var(--spacing) * 3);
  }
  .mr-auto {
    margin-right: auto;
  }
  .mb-1 {
    margin-bottom: calc(var(--spacing) * 1);
  }
  .mb-1\.5 {
    margin-bottom: calc(var(--spacing) * 1.5);
  }
  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
  }
  .mb-8 {
    margin-bottom: calc(var(--spacing) * 8);
  }
  .ml-1 {
    margin-left: calc(var(--spacing) * 1);
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .table {
    display: table;
  }
  .table-cell {
    display: table-cell;
  }
  .h-3 {
    height: calc(var(--spacing) * 3);
  }
  .h-3\.5 {
    height: calc(var(--spacing) * 3.5);
  }
  .h-4 {
    height: calc(var(--spacing) * 4);
  }
  .h-5 {
    height: calc(var(--spacing) * 5);
  }
  .h-6 {
    height: calc(var(--spacing) * 6);
  }
  .h-8 {
    height: calc(var(--spacing) * 8);
  }
  .h-10 {
    height: calc(var(--spacing) * 10);
  }
  .h-12 {
    height: calc(var(--spacing) * 12);
  }
  .h-24 {
    height: calc(var(--spacing) * 24);
  }
  .min-h-screen {
    min-height: 100vh;
  }
  .w-3 {
    width: calc(var(--spacing) * 3);
  }
  .w-3\.5 {
    width: calc(var(--spacing) * 3.5);
  }
  .w-4 {
    width: calc(var(--spacing) * 4);
  }
  .w-5 {
    width: calc(var(--spacing) * 5);
  }
  .w-6 {
    width: calc(var(--spacing) * 6);
  }
  .w-8 {
    width: calc(var(--spacing) * 8);
  }
  .w-10 {
    width: calc(var(--spacing) * 10);
  }
  .w-12 {
    width: calc(var(--spacing) * 12);
  }
  .w-20 {
    width: calc(var(--spacing) * 20);
  }
  .w-24 {
    width: calc(var(--spacing) * 24);
  }
  .w-32 {
    width: calc(var(--spacing) * 32);
  }
  .w-full {
    width: 100%;
  }
  .max-w-md {
    max-width: var(--container-md);
  }
  .max-w-xl {
    max-width: var(--container-xl);
  }
  .max-w-xs {
    max-width: var(--container-xs);
  }
  .flex-1 {
    flex: 1;
  }
  .flex-shrink {
    flex-shrink: 1;
  }
  .border-collapse {
    border-collapse: collapse;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .animate-spin {
    animation: var(--animate-spin);
  }
  .cursor-pointer {
    cursor: pointer;
  }
  .list-inside {
    list-style-position: inside;
  }
  .list-disc {
    list-style-type: disc;
  }
  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .items-center {
    align-items: center;
  }
  .items-end {
    align-items: flex-end;
  }
  .items-start {
    align-items: flex-start;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-center {
    justify-content: center;
  }
  .justify-end {
    justify-content: flex-end;
  }
  .gap-1 {
    gap: calc(var(--spacing) * 1);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .gap-6 {
    gap: calc(var(--spacing) * 6);
  }
  .space-y-1 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-2 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-3 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-4 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .space-y-6 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .overflow-x-auto {
    overflow-x: auto;
  }
  .rounded {
    border-radius: 0.25rem;
  }
  .rounded-full {
    border-radius: calc(infinity * 1px);
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-md {
    border-radius: var(--radius-md);
  }
  .rounded-xl {
    border-radius: var(--radius-xl);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-0 {
    border-style: var(--tw-border-style);
    border-width: 0px;
  }
  .border-t {
    border-top-style: var(--tw-border-style);
    border-top-width: 1px;
  }
  .border-r-4 {
    border-right-style: var(--tw-border-style);
    border-right-width: 4px;
  }
  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }
  .border-none {
    --tw-border-style: none;
    border-style: none;
  }
  .border-green-200 {
    border-color: var(--color-green-200);
  }
  .border-green-500\/20 {
    border-color: color-mix(in srgb, oklch(72.3% 0.219 149.579) 20%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      border-color: color-mix(in oklab, var(--color-green-500) 20%, transparent);
    }
  }
  .border-red-500\/20 {
    border-color: color-mix(in srgb, oklch(63.7% 0.237 25.331) 20%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      border-color: color-mix(in oklab, var(--color-red-500) 20%, transparent);
    }
  }
  .border-yellow-200 {
    border-color: var(--color-yellow-200);
  }
  .border-r-amber-500 {
    border-right-color: var(--color-amber-500);
  }
  .border-r-green-500 {
    border-right-color: var(--color-green-500);
  }
  .border-r-red-500 {
    border-right-color: var(--color-red-500);
  }
  .bg-amber-500\/10 {
    background-color: color-mix(in srgb, oklch(76.9% 0.188 70.08) 10%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-amber-500) 10%, transparent);
    }
  }
  .bg-blue-50 {
    background-color: var(--color-blue-50);
  }
  .bg-blue-100 {
    background-color: var(--color-blue-100);
  }
  .bg-blue-500\/10 {
    background-color: color-mix(in srgb, oklch(62.3% 0.214 259.815) 10%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-blue-500) 10%, transparent);
    }
  }
  .bg-gray-50 {
    background-color: var(--color-gray-50);
  }
  .bg-gray-100 {
    background-color: var(--color-gray-100);
  }
  .bg-green-50 {
    background-color: var(--color-green-50);
  }
  .bg-green-100 {
    background-color: var(--color-green-100);
  }
  .bg-green-500\/10 {
    background-color: color-mix(in srgb, oklch(72.3% 0.219 149.579) 10%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-green-500) 10%, transparent);
    }
  }
  .bg-red-50 {
    background-color: var(--color-red-50);
  }
  .bg-red-500\/10 {
    background-color: color-mix(in srgb, oklch(63.7% 0.237 25.331) 10%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-red-500) 10%, transparent);
    }
  }
  .bg-slate-500\/10 {
    background-color: color-mix(in srgb, oklch(55.4% 0.046 257.417) 10%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-slate-500) 10%, transparent);
    }
  }
  .bg-transparent {
    background-color: transparent;
  }
  .bg-white {
    background-color: var(--color-white);
  }
  .bg-yellow-50 {
    background-color: var(--color-yellow-50);
  }
  .fill-yellow-500 {
    fill: var(--color-yellow-500);
  }
  .object-contain {
    object-fit: contain;
  }
  .p-1 {
    padding: calc(var(--spacing) * 1);
  }
  .p-2 {
    padding: calc(var(--spacing) * 2);
  }
  .p-3 {
    padding: calc(var(--spacing) * 3);
  }
  .p-4 {
    padding: calc(var(--spacing) * 4);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .px-2 {
    padding-inline: calc(var(--spacing) * 2);
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }
  .py-1 {
    padding-block: calc(var(--spacing) * 1);
  }
  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .py-4 {
    padding-block: calc(var(--spacing) * 4);
  }
  .py-8 {
    padding-block: calc(var(--spacing) * 8);
  }
  .py-12 {
    padding-block: calc(var(--spacing) * 12);
  }
  .py-24 {
    padding-block: calc(var(--spacing) * 24);
  }
  .pt-2 {
    padding-top: calc(var(--spacing) * 2);
  }
  .pt-3 {
    padding-top: calc(var(--spacing) * 3);
  }
  .pt-4 {
    padding-top: calc(var(--spacing) * 4);
  }
  .pr-10 {
    padding-right: calc(var(--spacing) * 10);
  }
  .pb-2 {
    padding-bottom: calc(var(--spacing) * 2);
  }
  .pb-4 {
    padding-bottom: calc(var(--spacing) * 4);
  }
  .pl-10 {
    padding-left: calc(var(--spacing) * 10);
  }
  .text-center {
    text-align: center;
  }
  .text-right {
    text-align: right;
  }
  .font-mono {
    font-family: var(--font-mono);
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-3xl {
    font-size: var(--text-3xl);
    line-height: var(--tw-leading, var(--text-3xl--line-height));
  }
  .text-base {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .font-normal {
    --tw-font-weight: var(--font-weight-normal);
    font-weight: var(--font-weight-normal);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .text-amber-500 {
    color: var(--color-amber-500);
  }
  .text-blue-500 {
    color: var(--color-blue-500);
  }
  .text-blue-600 {
    color: var(--color-blue-600);
  }
  .text-gray-300 {
    color: var(--color-gray-300);
  }
  .text-gray-400 {
    color: var(--color-gray-400);
  }
  .text-gray-500 {
    color: var(--color-gray-500);
  }
  .text-gray-600 {
    color: var(--color-gray-600);
  }
  .text-gray-700 {
    color: var(--color-gray-700);
  }
  .text-gray-900 {
    color: var(--color-gray-900);
  }
  .text-green-500 {
    color: var(--color-green-500);
  }
  .text-green-600 {
    color: var(--color-green-600);
  }
  .text-green-800 {
    color: var(--color-green-800);
  }
  .text-purple-500 {
    color: var(--color-purple-500);
  }
  .text-red-500 {
    color: var(--color-red-500);
  }
  .text-red-600 {
    color: var(--color-red-600);
  }
  .text-slate-500 {
    color: var(--color-slate-500);
  }
  .text-white {
    color: var(--color-white);
  }
  .text-yellow-500 {
    color: var(--color-yellow-500);
  }
  .text-yellow-600 {
    color: var(--color-yellow-600);
  }
  .text-yellow-700 {
    color: var(--color-yellow-700);
  }
  .uppercase {
    text-transform: uppercase;
  }
  .opacity-25 {
    opacity: 25%;
  }
  .opacity-50 {
    opacity: 50%;
  }
  .opacity-75 {
    opacity: 75%;
  }
  .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,);
  }
  .backdrop-filter {
    -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
    backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  }
  .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));
  }
  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-transform {
    transition-property: transform, translate, scale, rotate;
    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);
  }
  .hover\:scale-110 {
    &:hover {
      @media (hover: hover) {
        --tw-scale-x: 110%;
        --tw-scale-y: 110%;
        --tw-scale-z: 110%;
        scale: var(--tw-scale-x) var(--tw-scale-y);
      }
    }
  }
  .hover\:bg-green-500\/10 {
    &:hover {
      @media (hover: hover) {
        background-color: color-mix(in srgb, oklch(72.3% 0.219 149.579) 10%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
          background-color: color-mix(in oklab, var(--color-green-500) 10%, transparent);
        }
      }
    }
  }
  .hover\:bg-red-500\/10 {
    &:hover {
      @media (hover: hover) {
        background-color: color-mix(in srgb, oklch(63.7% 0.237 25.331) 10%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
          background-color: color-mix(in oklab, var(--color-red-500) 10%, transparent);
        }
      }
    }
  }
  .focus\:outline-none {
    &:focus {
      --tw-outline-style: none;
      outline-style: none;
    }
  }
  .sm\:grid-cols-2 {
    @media (width >= 40rem) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .sm\:grid-cols-3 {
    @media (width >= 40rem) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  .sm\:grid-cols-6 {
    @media (width >= 40rem) {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
  }
  .md\:col-span-2 {
    @media (width >= 48rem) {
      grid-column: span 2 / span 2;
    }
  }
  .md\:flex {
    @media (width >= 48rem) {
      display: flex;
    }
  }
  .md\:grid-cols-2 {
    @media (width >= 48rem) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .md\:grid-cols-4 {
    @media (width >= 48rem) {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
  .md\:grid-cols-8 {
    @media (width >= 48rem) {
      grid-template-columns: repeat(8, minmax(0, 1fr));
    }
  }
  .lg\:col-span-2 {
    @media (width >= 64rem) {
      grid-column: span 2 / span 2;
    }
  }
  .lg\:grid-cols-2 {
    @media (width >= 64rem) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .lg\:grid-cols-3 {
    @media (width >= 64rem) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  .lg\:grid-cols-4 {
    @media (width >= 64rem) {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
  .lg\:grid-cols-5 {
    @media (width >= 64rem) {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
  }
  .lg\:grid-cols-6 {
    @media (width >= 64rem) {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
  }
  .lg\:grid-cols-12 {
    @media (width >= 64rem) {
      grid-template-columns: repeat(12, minmax(0, 1fr));
    }
  }
  .xl\:grid-cols-6 {
    @media (width >= 80rem) {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
  }
  .dark\:bg-blue-900\/20 {
    @media (prefers-color-scheme: dark) {
      background-color: color-mix(in srgb, oklch(37.9% 0.146 265.522) 20%, transparent);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, var(--color-blue-900) 20%, transparent);
      }
    }
  }
  .dark\:bg-gray-800 {
    @media (prefers-color-scheme: dark) {
      background-color: var(--color-gray-800);
    }
  }
  .dark\:bg-red-900\/20 {
    @media (prefers-color-scheme: dark) {
      background-color: color-mix(in srgb, oklch(39.6% 0.141 25.723) 20%, transparent);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, var(--color-red-900) 20%, transparent);
      }
    }
  }
  .dark\:bg-yellow-900\/20 {
    @media (prefers-color-scheme: dark) {
      background-color: color-mix(in srgb, oklch(42.1% 0.095 57.708) 20%, transparent);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, var(--color-yellow-900) 20%, transparent);
      }
    }
  }
  .dark\:text-blue-400 {
    @media (prefers-color-scheme: dark) {
      color: var(--color-blue-400);
    }
  }
  .dark\:text-red-400 {
    @media (prefers-color-scheme: dark) {
      color: var(--color-red-400);
    }
  }
  .dark\:text-white {
    @media (prefers-color-scheme: dark) {
      color: var(--color-white);
    }
  }
}
:root {
  --primary: 217 91% 40%;
  --primary-foreground: 0 0% 100%;
  --primary-hover: 217 91% 35%;
  --background: 210 40% 98%;
  --foreground: 222 47% 8%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 8%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 8%;
  --secondary: 210 40% 94%;
  --secondary-foreground: 222 47% 8%;
  --muted: 210 40% 94%;
  --muted-foreground: 215 20% 40%;
  --accent: 210 40% 90%;
  --accent-foreground: 222 47% 8%;
  --destructive: 0 84% 55%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 76% 36%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 45%;
  --warning-foreground: 0 0% 100%;
  --info: 199 89% 48%;
  --info-foreground: 0 0% 100%;
  --border: 214 32% 85%;
  --input: 214 32% 85%;
  --ring: 217 91% 40%;
  --radius: 0.75rem;
  --sidebar-background: 220 50% 10%;
  --sidebar-foreground: 210 40% 98%;
  --sidebar-primary: 217 91% 60%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 217 50% 18%;
  --sidebar-accent-foreground: 0 0% 100%;
  --sidebar-border: 217 40% 20%;
  --sidebar-muted: 215 25% 70%;
  --sidebar-gradient-start: 220 55% 8%;
  --sidebar-gradient-end: 217 45% 14%;
  --sidebar-width: 260px;
  --sidebar-width-collapsed: 64px;
}
.dark {
  --primary: 217 91% 55%;
  --primary-foreground: 0 0% 100%;
  --primary-hover: 217 91% 60%;
  --background: 222 47% 6%;
  --foreground: 0 0% 98%;
  --card: 222 47% 10%;
  --card-foreground: 0 0% 98%;
  --popover: 222 47% 10%;
  --popover-foreground: 0 0% 98%;
  --secondary: 217 33% 15%;
  --secondary-foreground: 0 0% 98%;
  --muted: 217 33% 15%;
  --muted-foreground: 215 20% 70%;
  --accent: 217 33% 18%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 72% 45%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 71% 40%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;
  --warning-foreground: 0 0% 100%;
  --info: 199 89% 55%;
  --info-foreground: 0 0% 100%;
  --border: 217 33% 25%;
  --input: 217 33% 25%;
  --ring: 217 91% 55%;
  --sidebar-background: 222 47% 4%;
  --sidebar-border: 217 40% 15%;
}
*, *::before, *::after {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}
html {
  direction: rtl;
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'ss02';
}
body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}
button, [role="button"], input, select, textarea {
  min-height: 44px;
}
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, hsl(var(--sidebar-gradient-start)), hsl(var(--sidebar-gradient-end)));
  color: hsl(var(--sidebar-foreground));
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  overflow: hidden;
  border-left: 1px solid hsl(var(--sidebar-border) / 0.5);
  box-shadow: -4px 0 24px -8px rgba(0, 0, 0, 0.3);
}
.sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--sidebar-border) / 0.3);
  min-height: 64px;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, hsl(var(--sidebar-primary)), hsl(217 91% 45%));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px hsl(var(--sidebar-primary) / 0.4);
}
.sidebar-logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}
.sidebar-logo-text {
  overflow: hidden;
  white-space: nowrap;
}
.sidebar-logo-text h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: white;
}
.sidebar-logo-text p {
  margin: 0;
  font-size: 0.7rem;
  color: hsl(var(--sidebar-muted));
}
.sidebar.collapsed .sidebar-logo-text {
  display: none;
}
.sidebar-toggle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--sidebar-accent));
  border: 1px solid hsl(var(--sidebar-border));
  border-radius: 0.5rem;
  color: hsl(var(--sidebar-muted));
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-toggle:hover {
  background: hsl(var(--sidebar-primary));
  border-color: hsl(var(--sidebar-primary));
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px hsl(var(--sidebar-primary) / 0.4);
}
.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}
.sidebar-standalone {
  margin-bottom: 0.5rem;
}
.sidebar-group {
  margin-bottom: 0.25rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.sidebar-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  color: hsl(var(--sidebar-muted));
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: right;
}
.sidebar-group-header:hover {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-foreground));
}
.sidebar-group.has-active .sidebar-group-header {
  color: hsl(var(--sidebar-primary));
}
.sidebar-group-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-group-icon svg {
  width: 20px;
  height: 20px;
}
.sidebar-group-title {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sidebar-group-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-group.expanded .sidebar-group-arrow {
  transform: rotate(180deg);
  opacity: 0.8;
}
.sidebar-group-indicator {
  position: absolute;
  left: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--sidebar-primary));
  box-shadow: 0 0 6px hsl(var(--sidebar-primary) / 0.6);
}
.sidebar-group-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, padding 0.2s ease;
  padding-right: 0.5rem;
  opacity: 0;
}
.sidebar-group.expanded .sidebar-group-content {
  max-height: 500px;
  opacity: 1;
}
.sidebar-group-content .sidebar-link {
  padding-right: 2.25rem;
  font-size: 0.8125rem;
  min-height: 36px;
  margin-top: 0.125rem;
}
.sidebar-group-content .sidebar-link svg {
  width: 18px;
  height: 18px;
}
.sidebar.collapsed .sidebar-group-title, .sidebar.collapsed .sidebar-group-arrow, .sidebar.collapsed .sidebar-group-indicator {
  display: none;
}
.sidebar.collapsed .sidebar-group-header {
  justify-content: center;
  padding: 0.625rem;
}
.sidebar.collapsed .sidebar-group-content {
  display: none;
}
.sidebar.collapsed .sidebar-group {
  position: relative;
}
.sidebar.collapsed .sidebar-group:hover::after {
  content: attr(data-title);
  position: absolute;
  right: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  background: hsl(var(--sidebar-background));
  border: 1px solid hsl(var(--sidebar-border));
  color: hsl(var(--sidebar-foreground));
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
}
.sidebar-section {
  margin-bottom: 1.5rem;
}
.sidebar-section-title {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--sidebar-muted) / 0.6);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}
.sidebar.collapsed .sidebar-section-title {
  display: none;
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: hsl(var(--sidebar-muted));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  min-height: 40px;
}
.sidebar-link:hover {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-foreground));
}
.sidebar-link.active {
  background: linear-gradient(135deg, hsl(var(--sidebar-primary)), hsl(217 91% 50%));
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px -2px hsl(var(--sidebar-primary) / 0.4);
}
.sidebar-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}
.sidebar-link.disabled:hover {
  background: transparent;
}
.coming-soon-badge {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background: hsl(var(--sidebar-muted) / 0.3);
  border: 1px solid hsl(var(--sidebar-border));
  border-radius: 0.25rem;
  color: hsl(var(--sidebar-muted-foreground));
  margin-right: auto;
  white-space: nowrap;
}
.sidebar-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sidebar-link span {
  overflow: hidden;
  white-space: nowrap;
}
.sidebar.collapsed .sidebar-link span {
  display: none;
}
.sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.625rem;
}
.sidebar.collapsed .sidebar-standalone {
  position: relative;
}
.sidebar.collapsed .sidebar-standalone .sidebar-link[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  background: hsl(var(--sidebar-background));
  border: 1px solid hsl(var(--sidebar-border));
  color: hsl(var(--sidebar-foreground));
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
}
.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid hsl(var(--sidebar-border) / 0.3);
}
.main-content {
  flex: 1;
  min-height: 100vh;
  max-width: 100%;
  background: linear-gradient(135deg, hsl(var(--background)), hsl(210 40% 96%));
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.dark .main-content {
  background: linear-gradient(135deg, hsl(var(--background)), hsl(222 47% 8%));
}
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.75rem;
  background: hsl(var(--card) / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-title {
  flex: 1;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.user-dropdown {
  position: relative;
}
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.user-avatar-btn:hover {
  background: hsl(var(--muted) / 0.5);
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(217 91% 50%));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px hsl(var(--primary) / 0.3);
}
.user-avatar.large {
  width: 48px;
  height: 48px;
  font-size: 1.125rem;
}
.dropdown-arrow {
  color: hsl(var(--muted-foreground));
  transition: transform 0.2s ease;
}
.dropdown-arrow.open {
  transform: rotate(180deg);
}
.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px -10px hsl(var(--foreground) / 0.2);
  z-index: 1000;
  animation: dropdown-fade-in 0.15s ease;
  overflow: hidden;
}
@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.user-menu-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: hsl(var(--muted) / 0.3);
}
.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.user-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}
.user-email {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.user-menu-divider {
  height: 1px;
  background: hsl(var(--border));
  margin: 0.25rem 0;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}
.user-menu-item:hover {
  background: hsl(var(--muted) / 0.5);
}
.user-menu-item svg {
  width: 18px;
  height: 18px;
  color: hsl(var(--muted-foreground));
}
.user-menu-item.logout {
  color: hsl(var(--destructive));
}
.user-menu-item.logout svg {
  color: hsl(var(--destructive));
}
.user-menu-item.logout:hover {
  background: hsl(var(--destructive) / 0.1);
}
.language-switcher {
  position: relative;
  display: inline-block;
}
.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: all 0.2s ease;
  min-height: 2.5rem;
}
.language-btn:hover {
  background: hsl(var(--muted));
}
.language-btn .chevron {
  transition: transform 0.2s ease;
}
.language-btn .chevron.rotate {
  transform: rotate(180deg);
}
.language-name {
  font-weight: 500;
}
.language-dropdown {
  position: absolute;
  z-index: 1000;
  min-width: 150px;
  margin-top: 0.25rem;
  padding: 0.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px hsl(var(--foreground) / 0.1);
}
.dropdown-bottom-start {
  top: 100%;
  left: 0;
}
.dropdown-bottom-end {
  top: 100%;
  right: 0;
}
.dropdown-top-start {
  bottom: 100%;
  left: 0;
  margin-top: 0;
  margin-bottom: 0.25rem;
}
.dropdown-top-end {
  bottom: 100%;
  right: 0;
  margin-top: 0;
  margin-bottom: 0.25rem;
}
.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  transition: background 0.15s ease;
  min-height: 2.5rem;
}
.language-option:hover {
  background: hsl(var(--muted));
}
.language-option.active {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-weight: 500;
}
.language-option svg {
  color: hsl(var(--primary));
}
.rtl-text {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
}
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  color: hsl(var(--foreground));
  transition: all 0.2s ease;
}
.theme-toggle:hover {
  background: hsl(var(--muted));
}
.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}
.page-content {
  flex: 1;
  padding: 2rem;
  width: 100%;
  overflow-x: hidden;
}
.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: 0 4px 12px -2px rgb(0 0 0 / 0.08);
}
.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--muted) / 0.15);
}
.card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}
.card-description {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.card-body {
  padding: 1.5rem;
}
.card-footer {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.2);
}
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
  line-height: 1.2;
}
.page-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  min-height: 40px;
}
.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 14px -3px hsl(var(--primary) / 0.35);
}
.btn-primary:hover:not(:disabled) {
  background: hsl(var(--primary-hover));
}
.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.btn-secondary:hover:not(:disabled) {
  background: hsl(var(--secondary) / 0.8);
}
.btn-outline {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-color: hsl(var(--input));
}
.btn-outline:hover:not(:disabled) {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
}
.btn-ghost:hover:not(:disabled) {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.btn-destructive {
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}
.btn-destructive:hover:not(:disabled) {
  background: hsl(var(--destructive) / 0.9);
}
.btn-success {
  background: hsl(var(--success));
  color: hsl(var(--success-foreground));
}
.btn-success:hover:not(:disabled) {
  background: hsl(var(--success) / 0.9);
}
.btn-sm {
  height: 36px;
  min-height: 36px;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}
.btn-lg {
  height: 44px;
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
}
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
}
.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
  min-height: 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.badge-primary {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.2);
}
.badge-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.badge-success {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
  border-color: hsl(var(--success) / 0.2);
}
.badge-warning {
  background: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
  border-color: hsl(var(--warning) / 0.2);
}
.badge-danger, .badge-destructive {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
  border-color: hsl(var(--destructive) / 0.2);
}
.badge-info {
  background: hsl(var(--info) / 0.1);
  color: hsl(var(--info));
  border-color: hsl(var(--info) / 0.2);
}
.badge-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.form-group {
  margin-bottom: 0.875rem;
}
.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.85);
}
.form-input {
  width: 100%;
  height: 42px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border: 1.5px solid hsl(var(--input));
  border-radius: 0.5rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: all 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}
.form-input::placeholder {
  color: hsl(var(--muted-foreground) / 0.7);
  font-size: 0.8125rem;
}
.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: hsl(var(--muted) / 0.5);
}
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon .form-input {
  padding-left: 2.75rem;
}
.input-icon-btn {
  position: absolute;
  left: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.15s ease;
}
.input-icon-btn:hover {
  color: hsl(var(--foreground));
}
.form-error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: hsl(var(--destructive));
  margin-top: 0.375rem;
  padding-right: 0.125rem;
  animation: errorSlide 0.2s ease;
}
.form-error::before {
  content: '';
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
@keyframes errorSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.select-wrapper {
  position: relative;
  display: inline-flex;
  width: 100%;
}
.select-wrapper .form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  padding-left: 2rem;
  padding-right: 1rem;
  width: 100%;
}
.select-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: left 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-left: 2.5rem;
}
.table-container {
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
}
.table-wrapper {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  caption-side: bottom;
}
.table thead {
  background: hsl(var(--muted) / 0.5);
}
.table thead tr {
  border-bottom: 1px solid hsl(var(--border));
}
.table th {
  height: 48px;
  padding: 0 1rem;
  text-align: right;
  vertical-align: middle;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}
.table tbody tr {
  border-bottom: 1px solid hsl(var(--border));
  transition: background-color 0.15s ease;
}
.table tbody tr:last-child {
  border-bottom: none;
}
.table tbody tr:hover {
  background: hsl(var(--muted) / 0.3);
}
.table tbody tr[data-state="selected"] {
  background: hsl(var(--muted));
}
.table td {
  padding: 1rem;
  vertical-align: middle;
}
.table-numeric {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.table-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.2);
}
@media (min-width: 640px) {
  .table-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.pagination-size-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pagination-size-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.pagination-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.pagination-info-text {
  color: hsl(var(--muted-foreground));
}
.pagination-range, .pagination-total-items {
  font-weight: 600;
  color: hsl(var(--foreground));
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  padding: 0.25rem;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.625rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pagination-btn:hover:not(:disabled):not(.active) {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pagination-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  box-shadow: 0 2px 4px hsl(var(--primary) / 0.25);
}
.pagination-btn-nav {
  min-width: 32px;
  padding: 0;
  color: hsl(var(--foreground));
}
.pagination-btn-nav svg {
  width: 14px;
  height: 14px;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  letter-spacing: 1px;
}
.pagination-select {
  height: 32px;
  min-height: 32px;
  width: 65px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.pagination-select:hover {
  border-color: hsl(var(--primary) / 0.5);
}
.pagination-select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.1);
}
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}
.stat-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-card:hover {
  box-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.12);
  transform: translateY(-3px);
  border-color: hsl(var(--primary) / 0.3);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-content {
  flex: 1;
  min-width: 0;
  text-align: right;
}
.stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -0.03em;
  margin-bottom: 0.375rem;
  line-height: 1.1;
}
.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.stat-change.positive {
  color: hsl(var(--success));
}
.stat-change.negative {
  color: hsl(var(--destructive));
}
.stat-change svg {
  width: 12px;
  height: 12px;
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.stat-card:hover .stat-icon {
  transform: scale(1.1);
}
.stat-icon svg {
  width: 26px;
  height: 26px;
}
.stat-icon.blue {
  background: linear-gradient(135deg, hsl(217 91% 60% / 0.2), hsl(217 91% 50% / 0.1));
  color: hsl(217 91% 50%);
  box-shadow: 0 4px 12px -4px hsl(217 91% 50% / 0.3);
}
.stat-icon.green {
  background: linear-gradient(135deg, hsl(var(--success) / 0.2), hsl(var(--success) / 0.1));
  color: hsl(var(--success));
  box-shadow: 0 4px 12px -4px hsl(var(--success) / 0.3);
}
.stat-icon.yellow {
  background: linear-gradient(135deg, hsl(var(--warning) / 0.2), hsl(var(--warning) / 0.1));
  color: hsl(var(--warning));
  box-shadow: 0 4px 12px -4px hsl(var(--warning) / 0.3);
}
.stat-icon.red {
  background: linear-gradient(135deg, hsl(var(--destructive) / 0.2), hsl(var(--destructive) / 0.1));
  color: hsl(var(--destructive));
  box-shadow: 0 4px 12px -4px hsl(var(--destructive) / 0.3);
}
.stat-icon.purple {
  background: linear-gradient(135deg, hsl(270 70% 60% / 0.2), hsl(270 70% 50% / 0.1));
  color: hsl(270 70% 50%);
  box-shadow: 0 4px 12px -4px hsl(270 70% 50% / 0.3);
}
.stat-icon.cyan {
  background: linear-gradient(135deg, hsl(185 80% 45% / 0.2), hsl(185 80% 40% / 0.1));
  color: hsl(185 80% 40%);
  box-shadow: 0 4px 12px -4px hsl(185 80% 40% / 0.3);
}
.stat-icon.orange {
  background: linear-gradient(135deg, hsl(25 95% 55% / 0.2), hsl(25 95% 50% / 0.1));
  color: hsl(25 95% 50%);
  box-shadow: 0 4px 12px -4px hsl(25 95% 50% / 0.3);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
  opacity: 0.5;
}
.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.empty-state-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  max-width: 24rem;
}
.skeleton {
  background: linear-gradient(90deg, hsl(var(--muted)) 25%, hsl(var(--muted) / 0.5) 50%, hsl(var(--muted)) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: calc(var(--radius) - 2px);
}
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.search-input {
  width: 100%;
  height: 40px;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  transition: all 0.15s ease;
}
.search-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}
.search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}
.search-clear {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.15s ease;
}
.search-clear:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}
.grid {
  display: grid !important;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.gap-3 {
  gap: 0.75rem !important;
}
.gap-4 {
  gap: 1rem !important;
}
.gap-6 {
  gap: 1.5rem !important;
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
.flex {
  display: flex !important;
}
.inline-flex {
  display: inline-flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.flex-row {
  flex-direction: row !important;
}
.flex-wrap {
  flex-wrap: wrap !important;
}
.flex-1 {
  flex: 1 1 0% !important;
}
.items-center {
  align-items: center !important;
}
.items-start {
  align-items: flex-start !important;
}
.items-end {
  align-items: flex-end !important;
}
.justify-between {
  justify-content: space-between !important;
}
.justify-center {
  justify-content: center !important;
}
.justify-end {
  justify-content: flex-end !important;
}
.justify-start {
  justify-content: flex-start !important;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-4 {
  margin-right: 1rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-4 {
  margin-left: 1rem;
}
.ml-auto {
  margin-left: auto;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.text-muted {
  color: hsl(var(--muted-foreground));
}
.text-primary {
  color: hsl(var(--primary));
}
.text-success {
  color: hsl(var(--success));
}
.text-warning {
  color: hsl(var(--warning));
}
.text-danger {
  color: hsl(var(--destructive));
}
.text-foreground {
  color: hsl(var(--foreground));
}
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hidden {
  display: none;
}
.block {
  display: block;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-md {
  border-radius: calc(var(--radius) - 2px);
}
.rounded-lg {
  border-radius: var(--radius);
}
.rounded-xl {
  border-radius: calc(var(--radius) + 2px);
}
.rounded-full {
  border-radius: 9999px;
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.shadow {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.shadow-md {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-auto {
  overflow: auto;
}
.overflow-x-auto {
  overflow-x: auto;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-75 {
  opacity: 0.75;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.transition-all {
  transition: all 0.15s ease;
}
.transition-colors {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
@media (max-width: 768px) {
  .sidebar {
    width: var(--sidebar-width-collapsed) !important;
  }
  .sidebar .sidebar-logo-text, .sidebar .sidebar-section-title, .sidebar .sidebar-link span {
    display: none;
  }
  .sidebar .sidebar-link {
    justify-content: center;
    padding: 0.625rem;
  }
  .main-content {
    margin-right: var(--sidebar-width-collapsed) !important;
    padding: 1rem;
  }
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--muted) / 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(217 91% 97%) 0%, hsl(210 40% 93%) 100%);
  padding: 1.5rem;
}
.auth-container {
  width: 100%;
  max-width: 28rem;
}
.auth-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  padding: 2rem;
}
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.5rem 0;
}
.auth-header p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}
.auth-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}
.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: color 0.15s ease;
}
.auth-back-link:hover {
  color: hsl(var(--primary));
}
.auth-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.auth-link {
  color: hsl(var(--primary));
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.15s ease;
}
.auth-link:hover {
  opacity: 0.8;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin: 0.5rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: hsl(var(--border));
}
.toast-container {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
  max-width: 380px;
  width: 100%;
}
.toast {
  background: hsl(var(--card));
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1), 0 0 0 1px rgb(0 0 0 / 0.05);
  overflow: hidden;
  animation: toast-enter 0.4s cubic-bezier(0.21, 1.02, 0.73, 1);
  backdrop-filter: blur(10px);
}
.toast.toast-exit {
  animation: toast-exit 0.3s cubic-bezier(0.06, 0.71, 0.55, 1) forwards;
}
@keyframes toast-enter {
  from {
    transform: translateX(-120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes toast-exit {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-120%);
    opacity: 0;
  }
}
.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
}
.toast-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0.25rem;
}
.toast-icon svg {
  width: 100%;
  height: 100%;
}
.toast-body {
  flex: 1;
  min-width: 0;
  padding-top: 0.125rem;
}
.toast-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
  line-height: 1.4;
}
.toast-message {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}
.toast-close {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.375rem;
  margin: -0.25rem -0.5rem -0.25rem 0;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  border-radius: 6px;
}
.toast-close:hover {
  opacity: 1;
  background: hsl(var(--muted) / 0.5);
}
.toast-close svg {
  width: 100%;
  height: 100%;
}
.toast-progress {
  height: 4px;
  background: hsl(var(--muted) / 0.2);
  position: relative;
}
.toast-progress::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  animation: progress linear forwards;
}
@keyframes progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}
.toast-success {
  background: linear-gradient(135deg, hsl(142 76% 97%) 0%, hsl(142 76% 94%) 100%);
  border: 1px solid hsl(142 76% 85%);
}
.toast-success .toast-icon {
  color: hsl(142 76% 36%);
  background: hsl(142 76% 90%);
}
.toast-success .toast-title {
  color: hsl(142 76% 26%);
}
.toast-success .toast-message {
  color: hsl(142 40% 40%);
}
.toast-success .toast-progress::after {
  background: hsl(142 76% 46%);
}
.toast-error {
  background: linear-gradient(135deg, hsl(0 84% 98%) 0%, hsl(0 84% 95%) 100%);
  border: 1px solid hsl(0 84% 88%);
}
.toast-error .toast-icon {
  color: hsl(0 84% 50%);
  background: hsl(0 84% 92%);
}
.toast-error .toast-title {
  color: hsl(0 84% 30%);
}
.toast-error .toast-message {
  color: hsl(0 50% 45%);
}
.toast-error .toast-progress::after {
  background: hsl(0 84% 60%);
}
.toast-warning {
  background: linear-gradient(135deg, hsl(45 93% 97%) 0%, hsl(45 93% 93%) 100%);
  border: 1px solid hsl(45 93% 80%);
}
.toast-warning .toast-icon {
  color: hsl(32 95% 44%);
  background: hsl(45 93% 88%);
}
.toast-warning .toast-title {
  color: hsl(32 95% 26%);
}
.toast-warning .toast-message {
  color: hsl(32 60% 40%);
}
.toast-warning .toast-progress::after {
  background: hsl(32 95% 54%);
}
.toast-info {
  background: linear-gradient(135deg, hsl(217 91% 98%) 0%, hsl(217 91% 95%) 100%);
  border: 1px solid hsl(217 91% 88%);
}
.toast-info .toast-icon {
  color: hsl(217 91% 50%);
  background: hsl(217 91% 92%);
}
.toast-info .toast-title {
  color: hsl(217 91% 30%);
}
.toast-info .toast-message {
  color: hsl(217 50% 45%);
}
.toast-info .toast-progress::after {
  background: hsl(217 91% 60%);
}
.not-found-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(217 91% 97%) 0%, hsl(210 40% 93%) 100%);
  padding: 1.5rem;
}
.not-found-content {
  text-align: center;
}
.not-found-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 1.5rem;
  color: hsl(var(--muted-foreground) / 0.3);
}
.not-found-icon svg {
  width: 100%;
  height: 100%;
}
.not-found-title {
  font-size: 6rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1;
  margin: 0 0 0.5rem 0;
}
.not-found-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.5rem 0;
}
.not-found-text {
  color: hsl(var(--muted-foreground));
  margin: 0 0 2rem 0;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal {
  background: hsl(var(--card));
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35), 0 0 0 1px hsl(var(--border) / 0.5);
  width: 100%;
  max-width: 32rem;
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  animation: modalSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlide {
  from {
    transform: translateY(16px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.modal-sm {
  max-width: 24rem;
}
.modal-lg {
  max-width: 42rem;
}
.modal-xl {
  max-width: 56rem;
}
.modal-full {
  max-width: calc(100vw - 3rem);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.3);
  border-radius: 1rem 1rem 0 0;
}
.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}
.modal-close {
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close:hover {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}
.modal-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.3);
  border-radius: 0 0 1rem 1rem;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-rounded {
  border-radius: 50%;
}
.avatar-xs {
  width: 24px;
  height: 24px;
  font-size: 0.625rem;
}
.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}
.avatar-md {
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
}
.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}
.avatar-xl {
  width: 64px;
  height: 64px;
  font-size: 1.25rem;
}
.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-initials {
  text-transform: uppercase;
}
.avatar-icon {
  width: 60%;
  height: 60%;
}
.spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.spinner-svg {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner-track {
  opacity: 0.25;
}
.spinner-head {
  opacity: 1;
}
.spinner-xs .spinner-svg {
  width: 12px;
  height: 12px;
}
.spinner-sm .spinner-svg {
  width: 16px;
  height: 16px;
}
.spinner-md .spinner-svg {
  width: 24px;
  height: 24px;
}
.spinner-lg .spinner-svg {
  width: 32px;
  height: 32px;
}
.spinner-xl .spinner-svg {
  width: 48px;
  height: 48px;
}
.spinner-primary {
  color: hsl(var(--primary));
}
.spinner-secondary {
  color: hsl(var(--muted-foreground));
}
.spinner-white {
  color: white;
}
.spinner-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tesla-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.tesla-search {
  width: 100%;
}
.search-input-wrapper {
  position: relative;
  width: 100%;
}
.search-clear {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: all 0.15s ease;
}
.search-clear:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}
.form-error {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  color: hsl(var(--destructive));
}
.form-helper {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.form-input-error {
  border-color: hsl(var(--destructive)) !important;
}
.form-input-error:focus {
  box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.1) !important;
}
.input-wrapper {
  position: relative;
}
.input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}
.input-icon-right {
  right: 0.75rem;
}
.input-icon-left {
  left: 0.75rem;
}
.pr-10 {
  padding-right: 2.5rem !important;
}
.pl-10 {
  padding-left: 2.5rem !important;
}
.form-checkbox {
  width: 16px;
  height: 16px;
  min-height: 16px;
  border: 1px solid hsl(var(--input));
  border-radius: 4px;
  cursor: pointer;
  accent-color: hsl(var(--primary));
}
.table-striped tbody tr:nth-child(even) {
  background: hsl(var(--muted) / 0.2);
}
.table-hoverable tbody tr:hover {
  background: hsl(var(--muted) / 0.4);
}
.table tbody tr.selected {
  background: hsl(var(--primary) / 0.1);
}
.page-header {
  margin-bottom: 1.5rem;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem 0;
}
.page-subtitle {
  color: hsl(var(--muted-foreground));
  margin: 0;
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}
.textarea-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}
.char-count {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.char-count-limit {
  color: hsl(var(--warning));
}
.confirm-dialog {
  text-align: center;
  padding: 1rem 0;
}
.confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.confirm-icon-primary {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}
.confirm-icon-success {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}
.confirm-icon-warning {
  background: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
}
.confirm-icon-danger {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}
.confirm-message {
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  margin: 0;
  line-height: 1.6;
}
.filters-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
}
.filter-search-box {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filter-select {
  min-width: 160px;
  height: 40px;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--muted) / 0.5);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: left 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  color: hsl(var(--foreground));
  transition: all 0.2s ease;
}
.filter-select:hover {
  background-color: hsl(var(--muted) / 0.8);
  border-color: hsl(var(--border));
}
.filter-select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.15);
  background-color: hsl(var(--background));
}
.filter-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.filter-select-wrapper .filter-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}
.filter-select-wrapper .filter-select {
  padding-right: 2.25rem;
}
.filter-select .form-group {
  margin-bottom: 0;
}
.part-icon {
  width: 40px;
  height: 40px;
  background: hsl(var(--primary) / 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  flex-shrink: 0;
}
.table-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-height: auto !important;
  border: 2px solid hsl(var(--border));
  border-radius: 4px;
  background: hsl(var(--background));
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.table-checkbox:checked {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
}
.table-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.table-checkbox:hover {
  border-color: hsl(var(--primary));
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.15s ease;
}
.copy-btn:hover {
  background: hsl(var(--muted));
  color: hsl(var(--primary));
}
tr:hover .copy-btn {
  opacity: 1;
}
.stock-value {
  font-weight: 600;
}
.stock-zero {
  color: hsl(var(--destructive));
}
.stock-low {
  color: hsl(var(--warning));
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
}
.action-buttons {
  flex-direction: row-reverse;
}
.text-destructive {
  color: hsl(var(--destructive)) !important;
}
.no-card-padding {
  margin: -1.5rem;
  margin-top: 0;
}
.no-card-padding .table {
  border-radius: 0;
}
.no-card-padding .table-container {
  border: none;
  border-radius: 0;
}
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid hsl(var(--muted));
  border-top-color: hsl(var(--primary));
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.border-destructive {
  border-color: hsl(var(--destructive)) !important;
}
#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: hsl(0 84% 55%);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  text-align: center;
  direction: ltr;
}
#blazor-error-ui .reload, #blazor-error-ui .dismiss {
  color: white;
  margin-inline-start: 1rem;
  text-decoration: underline;
  cursor: pointer;
}
#blazor-error-ui .dismiss {
  text-decoration: none;
}
.tree-view {
  padding: 0.5rem 0;
}
.tree-node {
  margin-bottom: 2px;
}
.tree-node-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  background-color: transparent;
  transition: background-color 0.15s ease;
}
.tree-node-content:hover {
  background-color: hsl(var(--muted));
}
.tree-node-content.inactive {
  opacity: 0.6;
}
.tree-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.tree-toggle:hover:not(:disabled) {
  background-color: hsl(var(--accent));
  color: hsl(var(--foreground));
}
.tree-toggle:disabled {
  cursor: default;
  opacity: 0.3;
}
.tree-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
.tree-icon.has-children {
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}
.tree-label {
  flex: 1;
  min-width: 0;
}
.tree-name-ar {
  display: block;
  font-weight: 500;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-name-en {
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-inline-start: auto;
}
.tree-count {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}
.tree-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.tree-node-content:hover .tree-actions {
  opacity: 1;
}
.tree-children {
  border-inline-start: 1px dashed hsl(var(--border));
  margin-inline-start: 20px;
  padding-inline-start: 4px;
}
.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}
.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all 0.15s ease;
}
.view-toggle-btn:hover {
  color: hsl(var(--foreground));
}
.view-toggle-btn.active {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 3px hsl(0 0% 0% / 0.1);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.form-field-full {
  grid-column: 1 / -1;
}
.toggle-checkbox {
  width: 40px;
  height: 20px;
  appearance: none;
  background-color: hsl(var(--muted));
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
}
.toggle-checkbox::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  right: 2px;
  transition: transform 0.2s;
}
.toggle-checkbox:checked {
  background-color: hsl(var(--primary));
}
.toggle-checkbox:checked::before {
  transform: translateX(-20px);
}
.tesla-dropdown {
  position: relative;
  display: inline-flex;
}
.tesla-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.tesla-dropdown-trigger:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--border));
}
.tesla-dropdown-trigger:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.15);
}
.tesla-dropdown-trigger.disabled, .tesla-dropdown-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.tesla-dropdown.open .tesla-dropdown-trigger {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--muted));
}
.tesla-dropdown-icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}
.tesla-dropdown-text {
  flex: 1;
  text-align: right;
}
.tesla-dropdown-chevron {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.tesla-dropdown.open .tesla-dropdown-chevron {
  transform: rotate(180deg);
}
.tesla-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 100%;
  width: max-content;
  max-height: 280px;
  overflow-y: auto;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 10px 40px -10px hsl(var(--foreground) / 0.15), 0 4px 16px -4px hsl(var(--foreground) / 0.1);
  z-index: 1000;
  padding: 0.25rem;
  animation: dropdown-fade-in 0.15s ease-out;
}
@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tesla-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  background-color: transparent;
  border: none;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  transition: all 0.1s ease;
  text-align: right;
}
.tesla-dropdown-item:hover {
  background-color: hsl(var(--muted));
}
.tesla-dropdown-item.selected {
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-weight: 500;
}
.tesla-dropdown-item.selected:hover {
  background-color: hsl(var(--primary) / 0.15);
}
.tesla-dropdown-check {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}
.tesla-dropdown.filter-dropdown .tesla-dropdown-trigger {
  height: 2rem;
  padding: 0 0.625rem;
  font-size: 0.8125rem;
}
.tesla-dropdown.filter-dropdown .tesla-dropdown-icon, .tesla-dropdown.filter-dropdown .tesla-dropdown-chevron {
  width: 0.875rem;
  height: 0.875rem;
}
.sortable-header {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}
.sortable-header:hover {
  background-color: hsl(var(--muted) / 0.5);
}
.sortable-header.sorted {
  background-color: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}
.th-content {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.sort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.sortable-header:not(:hover):not(.sorted) .sort-icon {
  opacity: 0;
}
.sortable-header:hover .sort-icon {
  opacity: 0.5;
}
.sortable-header.sorted .sort-icon {
  opacity: 1;
  color: hsl(var(--primary));
}
.validation-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: hsl(var(--destructive) / 0.08);
  border: 1px solid hsl(var(--destructive) / 0.3);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  animation: validationSlide 0.2s ease;
}
@keyframes validationSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.validation-summary-icon {
  flex-shrink: 0;
  color: hsl(var(--destructive));
  margin-top: 0.125rem;
}
.validation-summary-content {
  flex: 1;
  min-width: 0;
}
.validation-summary-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--destructive));
  margin-bottom: 0.375rem;
}
.validation-summary-list {
  margin: 0;
  padding: 0;
  padding-right: 1.125rem;
  list-style: disc;
}
.validation-summary-list li {
  font-size: 0.8125rem;
  color: hsl(var(--destructive));
  line-height: 1.5;
}
.validation-summary-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 4px);
  color: hsl(var(--destructive) / 0.7);
  cursor: pointer;
  transition: all 0.15s ease;
}
.validation-summary-close:hover {
  background: hsl(var(--destructive) / 0.15);
  color: hsl(var(--destructive));
}
.modal-body .form-group {
  margin-bottom: 0;
}
.modal-body .grid {
  gap: 1rem;
}
.modal-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}
.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  min-width: 100px;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.modal-btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.85) 100%);
  color: hsl(var(--primary-foreground));
  box-shadow: 0 2px 4px hsl(var(--primary) / 0.25);
}
.modal-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.9) 0%, hsl(var(--primary) / 0.75) 100%);
  box-shadow: 0 4px 8px hsl(var(--primary) / 0.3);
  transform: translateY(-1px);
}
.modal-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px hsl(var(--primary) / 0.2);
}
.modal-btn-cancel {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
}
.modal-btn-cancel:hover:not(:disabled) {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--border));
}
.modal-btn-danger {
  background: linear-gradient(135deg, hsl(var(--destructive)) 0%, hsl(var(--destructive) / 0.85) 100%);
  color: hsl(var(--destructive-foreground));
  box-shadow: 0 2px 4px hsl(var(--destructive) / 0.25);
}
.modal-btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, hsl(var(--destructive) / 0.9) 0%, hsl(var(--destructive) / 0.75) 100%);
  box-shadow: 0 4px 8px hsl(var(--destructive) / 0.3);
  transform: translateY(-1px);
}
.form-input-error, .form-input.input-validation-error {
  border-color: hsl(var(--destructive)) !important;
  background-color: hsl(var(--destructive) / 0.03);
}
.form-input-error:focus, .form-input.input-validation-error:focus {
  border-color: hsl(var(--destructive)) !important;
  box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.12);
}
.modal-body .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.modal-body .form-grid-full, .form-grid-full {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .modal-body .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-form-footer {
    flex-direction: column-reverse;
  }
  .modal-btn {
    width: 100%;
  }
}
@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-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@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-backdrop-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-ease {
  syntax: "*";
  inherits: false;
}
@property --tw-scale-x {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-y {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-z {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@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-space-y-reverse: 0;
      --tw-border-style: solid;
      --tw-font-weight: initial;
      --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-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-ease: initial;
      --tw-scale-x: 1;
      --tw-scale-y: 1;
      --tw-scale-z: 1;
    }
  }
}
