html.dark {
    color-scheme: dark;
    background: #090d16;
}

body {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
    line-height: 1.65;
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

table td,
.tabular-nums,
.text-2xl,
.text-3xl {
    font-variant-numeric: tabular-nums;
}

html.dark body,
html.dark main,
html.dark .bg-surface {
    background-color: #090d16 !important;
    color: #e5e7eb !important;
}

html.dark .bg-surface-container-lowest,
html.dark [class*="bg-surface-container-lowest/"],
html.dark .bg-white,
html.dark [class*="bg-white/"] {
    background-color: #111827 !important;
}

html.dark .bg-surface-container-low,
html.dark [class*="bg-surface-container-low/"],
html.dark .bg-slate-50 {
    background-color: #0d1421 !important;
}

html.dark .bg-surface-container,
html.dark .bg-surface-container-high,
html.dark .bg-surface-container-highest,
html.dark .bg-surface-variant,
html.dark [class*="bg-surface-container-high/"],
html.dark .bg-slate-100 {
    background-color: #1f2937 !important;
}

html.dark .bg-inverse-surface {
    background-color: rgb(17 24 39 / 92%) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

html.dark #sidebar {
    border-left: 1px solid rgb(31 41 55 / 80%);
}

html.dark header {
    background-color: rgb(17 24 39 / 88%) !important;
    border-color: rgb(31 41 55 / 80%) !important;
    box-shadow: 0 8px 24px -20px rgb(0 0 0 / 90%) !important;
}

html.dark .text-on-surface,
html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-slate-700 {
    color: #e5e7eb !important;
}

html.dark .text-on-surface-variant,
html.dark .text-secondary,
html.dark .text-outline,
html.dark .text-outline-variant,
html.dark .text-slate-600,
html.dark .text-slate-500,
html.dark .text-slate-400 {
    color: #aeb9ca !important;
}

html.dark .text-primary,
html.dark .text-blue-700,
html.dark .text-blue-800 {
    color: #60a5fa !important;
}

html.dark .text-emerald-600,
html.dark .text-emerald-700,
html.dark .text-emerald-800 {
    color: #6ee7b7 !important;
}

html.dark .text-amber-600,
html.dark .text-amber-700,
html.dark .text-amber-800 {
    color: #fcd34d !important;
}

html.dark .text-red-600,
html.dark .text-red-700,
html.dark .text-red-800 {
    color: #fca5a5 !important;
}

html.dark .text-violet-700,
html.dark .text-indigo-700 {
    color: #c4b5fd !important;
}

html.dark [class*="border-slate-"] {
    border-color: rgb(31 41 55 / 82%) !important;
}

html.dark .rounded-2xl[class*="border-slate-"] {
    box-shadow: 0 14px 36px -26px rgb(0 0 0 / 95%), inset 0 1px rgb(255 255 255 / 2%);
}

html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
html.dark select,
html.dark textarea {
    background-color: rgb(2 6 23 / 60%) !important;
    border-color: #1f2937 !important;
    color: #e5e7eb !important;
}

html.dark select option {
    background-color: #111827;
    color: #e5e7eb;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #94a3b8 !important;
}

html.dark .bg-primary-container,
html.dark .bg-blue-600,
html.dark .bg-primary {
    background-color: #2563eb !important;
    box-shadow: 0 8px 20px -14px rgb(37 99 235 / 80%);
}

html.dark [class~="hover:bg-primary"]:hover {
    background-color: #3b82f6 !important;
}

html.dark [class~="bg-blue-50"],
html.dark [class~="bg-indigo-50"],
html.dark [class~="bg-blue-100"],
html.dark [class*="bg-blue-50/"] {
    background-color: rgb(59 130 246 / 12%) !important;
}

html.dark [class~="bg-emerald-50"],
html.dark [class~="bg-emerald-100"] {
    background-color: rgb(16 185 129 / 12%) !important;
}

html.dark [class~="bg-amber-50"],
html.dark [class~="bg-amber-100"] {
    background-color: rgb(245 158 11 / 12%) !important;
}

html.dark [class~="bg-red-50"],
html.dark [class~="bg-red-100"] {
    background-color: rgb(239 68 68 / 12%) !important;
}

html.dark [class~="bg-violet-50"],
html.dark [class~="bg-purple-50"] {
    background-color: rgb(139 92 246 / 12%) !important;
}

html.dark [class*="border-blue-"] {
    border-color: rgb(59 130 246 / 30%) !important;
}

html.dark [class*="border-emerald-"] {
    border-color: rgb(16 185 129 / 30%) !important;
}

html.dark [class*="border-amber-"] {
    border-color: rgb(245 158 11 / 30%) !important;
}

html.dark [class*="border-red-"] {
    border-color: rgb(239 68 68 / 30%) !important;
}

html.dark [class*="border-violet-"],
html.dark [class*="border-purple-"] {
    border-color: rgb(139 92 246 / 30%) !important;
}

html.dark [class~="hover:bg-blue-50"]:hover,
html.dark [class~="hover:bg-slate-200"]:hover,
html.dark [class~="hover:bg-slate-50"]:hover,
html.dark [class~="hover:bg-surface-container-low"]:hover {
    background-color: rgb(51 65 85 / 60%) !important;
}

html.dark [class~="hover:bg-red-50"]:hover {
    background-color: rgb(239 68 68 / 18%) !important;
}

html.dark table thead.bg-slate-50 {
    background-color: rgb(2 6 23 / 60%) !important;
    color: #94a3b8 !important;
}

html.dark table th {
    font-weight: 600;
}

html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
html.dark tbody tr {
    border-color: rgb(31 41 55 / 65%) !important;
}

html.dark tbody tr:hover,
html.dark tbody tr:focus {
    background-color: rgb(31 41 55 / 40%) !important;
}

html.dark [aria-current="page"]::before {
    position: absolute;
    top: 0.6rem;
    right: -1px;
    bottom: 0.6rem;
    width: 2px;
    border-radius: 9999px;
    background-color: #60a5fa;
    content: "";
}

html.dark ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html.dark ::-webkit-scrollbar-track {
    background: #090d16;
}

html.dark ::-webkit-scrollbar-thumb {
    border: 2px solid #090d16;
    border-radius: 9999px;
    background: #334155;
}

@media (min-width: 1024px) {
    html.sidebar-collapsed #sidebar {
        transform: translateX(100%) !important;
    }

    html.sidebar-collapsed #app-shell {
        padding-right: 0 !important;
    }

    html.sidebar-collapsed #app-header {
        right: 0 !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html.dark tbody tr {
        transition: background-color 140ms ease;
    }
}
