/* ==========================================================================
   پایه مشترک طراحی سایت (پنل مدیریت، پنل کاربری و صفحات عمومی)
   فونت، رنگ‌ها و توکن‌های حالت روشن/تاریک در این فایل تعریف می‌شوند.
   ========================================================================== */

@font-face { font-family: "IRANSans"; font-weight: 300; font-display: swap; src: url("/webfonts/IRANSansWeb_Light.woff2") format("woff2"), url("/webfonts/IRANSansWeb_Light.woff") format("woff"); }
@font-face { font-family: "IRANSans"; font-weight: 400; font-display: swap; src: url("/webfonts/IRANSansWeb.woff2") format("woff2"), url("/webfonts/IRANSansWeb.woff") format("woff"); }
@font-face { font-family: "IRANSans"; font-weight: 500; font-display: swap; src: url("/webfonts/IRANSansWeb_Medium.woff2") format("woff2"), url("/webfonts/IRANSansWeb_Medium.woff") format("woff"); }
@font-face { font-family: "IRANSans"; font-weight: 700; font-display: swap; src: url("/webfonts/IRANSansWeb_Bold.woff2") format("woff2"), url("/webfonts/IRANSansWeb_Bold.woff") format("woff"); }

/* ---------- Tokens ---------- */
:root {
    --nw-font: "IRANSans", Tahoma, sans-serif;

    --nw-bg: #f3f5f9;
    --nw-surface: #ffffff;
    --nw-surface-2: #f7f9fc;
    --nw-border: #e4e8ef;
    --nw-border-strong: #d3d9e3;
    --nw-text: #1d2939;
    --nw-muted: #667085;
    --nw-accent: #2563eb;
    --nw-accent-hover: #1d4ed8;
    --nw-accent-soft: rgba(37, 99, 235, .1);
    --nw-success: #12b76a;
    --nw-success-soft: rgba(18, 183, 106, .12);
    --nw-danger: #f04438;
    --nw-danger-soft: rgba(240, 68, 56, .12);
    --nw-warning: #f79009;

    --nw-sidebar-bg: #101828;
    --nw-sidebar-text: #c4cbd8;
    --nw-sidebar-muted: #7a8599;
    --nw-sidebar-hover: rgba(255, 255, 255, .06);
    --nw-sidebar-active-bg: rgba(59, 130, 246, .18);
    --nw-sidebar-active-text: #ffffff;
    --nw-sidebar-border: rgba(255, 255, 255, .07);
    --nw-sidebar-strong: #ffffff;
    --nw-sidebar-icon-active: #7cb2ff;

    --nw-radius: 14px;
    --nw-radius-sm: 10px;
    --nw-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    --nw-shadow-lg: 0 20px 48px -12px rgba(16, 24, 40, .25);

    --nw-sidebar-w: 272px;
    --nw-sidebar-w-collapsed: 76px;
    --nw-topbar-h: 68px;
}

[data-bs-theme="dark"] {
    --nw-bg: #0b1220;
    --nw-surface: #111a2c;
    --nw-surface-2: #0f1727;
    --nw-border: #1f2a3f;
    --nw-border-strong: #2a3750;
    --nw-text: #e4e9f2;
    --nw-muted: #98a2b3;
    --nw-accent: #4b8bff;
    --nw-accent-hover: #6a9fff;
    --nw-accent-soft: rgba(75, 139, 255, .15);
    --nw-sidebar-bg: #080e1a;
    --nw-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --nw-shadow-lg: 0 24px 56px -12px rgba(0, 0, 0, .6);

    --bs-body-bg: var(--nw-surface);
    --bs-body-color: var(--nw-text);
    --bs-border-color: var(--nw-border);
    --bs-secondary-bg: var(--nw-surface-2);
    --bs-tertiary-bg: var(--nw-surface-2);
}
