:root {
    --sidebar-width: 280px;
    --sidebar-brand-height: 72px;
    --sidebar-collapsed: 76px;
    --topbar-height: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

    --color-brand: #808080;
    --color-brand-secondary: #c2a662;
    --color-background: #f9fafb;
    --color-foreground: #0f172a;
    --color-muted-foreground: #6b7280;
    --color-sidebar: #0b3d3a;
    --color-sidebar-foreground: #ecfdf5;
    --color-sidebar-accent: #115e59;
    --color-sidebar-accent-foreground: #d1fae5;
    --color-sidebar-border: rgba(255, 255, 255, 0.05);
    --color-sidebar-logo-background: #ffffff;
    --color-topbar: #ffffff;
    --color-topbar-foreground: #0f172a;
    --color-primary: #0f766e;
    --color-primary-foreground: #ffffff;
    --color-secondary: #f1f5f4;
    --color-secondary-foreground: #0f172a;
    --color-card: #ffffff;
    --color-card-foreground: #0f172a;
    --color-border: #e5e7eb;
    --color-input: #e5e7eb;
    --color-ring: #5eead4;
    --color-link: #0f766e;
    --color-success: #22c55e;
    --color-success-foreground: #ffffff;
    --color-warning: #f59e0b;
    --color-warning-foreground: #ffffff;
    --color-destructive: #ef4444;
    --color-destructive-foreground: #ffffff;
    --color-info: #0ea5e9;
    --color-info-foreground: #ffffff;
    --color-email-outer-background: #f8fafc;
    --color-email-card-border: #e2e8f0;
    --color-email-header-background: #0b3d3a;
    --color-email-header-foreground: #ffffff;
    --color-email-logo-background: #ffffff;
    --color-email-body-background: #ffffff;
    --color-email-body-foreground: #0f172a;
    --color-email-footer-background: #e2e8f0;
    --color-email-footer-foreground: #0f172a;
    --color-email-copyright-foreground: #64748b;
}

html.theme-dark {
    --color-background: #0f172a;
    --color-foreground: #f1f5f9;
    --color-muted-foreground: #94a3b8;
    --color-topbar: #1e293b;
    --color-topbar-foreground: #f1f5f9;
    --color-card: #1e293b;
    --color-card-foreground: #f1f5f9;
    --color-secondary: #334155;
    --color-secondary-foreground: #f1f5f9;
    --color-border: #334155;
    --color-input: #475569;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
}

body {
    margin: 0;
    font-family: inherit;
    background: var(--color-background);
    color: var(--color-foreground);
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.dropdown-menu {
    font-family: inherit;
}

a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
}

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

.font-display {
    font-family: 'Tajawal', sans-serif;
}

.font-ui {
    font-family: inherit;
}

.text-muted {
    color: var(--color-muted-foreground) !important;
}
