﻿@font-face {
    font-family:"sans";
    src: url("../fonts/IRANSansWeb.eot");
    src: url("../fonts/IRANSansWeb.eot?#iefix")format("embedded-opentype"),
    url("../fonts/IRANSansWeb.woff") format("woff"),
    url("../fonts/IRANSansWeb.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
/* ── Page loader & splash: always hidden (Turbo Drive compatible) ── */
#page-loader { display: none !important; }
#gsm-splash  { display: none !important; }



html {
  font-family: sans;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-family: sans;
}
.form-control{
    font-family: "sans" !important;
}
#page-container.page-header-fixed #main-container {
  padding-top: 4rem !important;
}
dd {
    margin-bottom: .5rem;
    margin-right: 0;
}
.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-right: -1px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}


.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3), .input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
i{
  margin-left: 5px !important;
}

@keyframes pulse {
  0%,100% { opacity:1; }
  50%      { opacity:.4; }
}

/* ══════════════════════════════════════════════════════
   x-page-header  —  هدر استاندارد همه صفحات
   رنگ از --x-primary می‌آد که با تغییر theme آپدیت می‌شه
   ══════════════════════════════════════════════════════ */
:root { --x-primary: var(--crm-primary); }

.x-page-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px) center/22px 22px,
        linear-gradient(145deg, #07080f 0%, rgba(var(--crm-primary-rgb),.88) 100%);
    background-color: #07080f;
    border-radius: 1.5rem;
    padding: 1.5rem 1.75rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow:
        0 8px 36px rgba(var(--crm-primary-rgb),.38),
        0 2px 10px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.1);
    transition: box-shadow .3s ease;
}
.x-page-header::before {
    content: '';
    position: absolute;
    top: -90px; right: -90px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.x-page-header::after {
    content: '';
    position: absolute;
    bottom: -55px; left: -55px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(var(--crm-primary-rgb), .28);
    filter: blur(28px);
    pointer-events: none;
}
.x-page-header .xph-icon-wrap {
    width: 3rem; height: 3rem;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: .875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
    position: relative; z-index: 1;
}
.x-page-header h4,
.x-page-header .xph-title {
    color: #fff !important;
    font-size: 1.13rem;
    font-weight: 700;
    letter-spacing: -.01em;
    position: relative; z-index: 1;
}
.x-page-header .xph-sub {
    opacity: .62;
    font-size: .8rem;
    margin-top: .2rem;
    position: relative; z-index: 1;
}
.x-page-header .xph-badge {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .375rem;
    padding: .15rem .55rem;
    font-size: .71rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    position: relative; z-index: 1;
}
.x-page-header .xph-badge.badge-red    { background: rgba(239,68,68,.3);  border-color: rgba(239,68,68,.18); }
.x-page-header .xph-badge.badge-green  { background: rgba(34,197,94,.25); border-color: rgba(34,197,94,.15); }
.x-page-header .xph-badge.badge-yellow { background: rgba(234,179,8,.25); border-color: rgba(234,179,8,.15); }
.x-page-header .xph-action-btn {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    border-radius: .6rem;
    padding: .35rem .9rem;
    font-size: .83rem;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    position: relative; z-index: 1;
}
.x-page-header .xph-action-btn:hover { background: rgba(255,255,255,.24); color: #fff; text-decoration: none; }
.x-page-header .xph-footer {
    margin-top: .85rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.1);
    position: relative; z-index: 1;
}
.modal-header .btn-close{ margin: 0px !important; }

/* ══ Top Navbar (#page-header) ════════════════════════════════════════════════ */
#page-header {
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border-bottom: 1px solid rgba(var(--crm-primary-rgb),.1) !important;
    box-shadow: 0 1px 24px rgba(0,0,0,.06) !important;
    position: relative;
    transition: background .25s, border-color .25s, box-shadow .25s;
}
#page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--crm-primary-rgb),.5) 50%, transparent 100%);
    pointer-events: none;
}

/* Dark mode header */
.page-header-dark #page-header {
    background: rgba(13,15,26,.96) !important;
    border-bottom-color: rgba(255,255,255,.07) !important;
    box-shadow: 0 1px 24px rgba(0,0,0,.35) !important;
}
.page-header-dark #page-header::after {
    background: linear-gradient(90deg, transparent 0%, rgba(var(--crm-primary-rgb),.4) 50%, transparent 100%);
}
.page-header-dark .crm-search-pill {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.65);
}
.page-header-dark .crm-search-pill:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.page-header-dark .crm-search-pill kbd {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.5);
}
.page-header-dark .crm-user-btn {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.8) !important;
}
.page-header-dark .crm-user-btn:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.22);
}
.page-header-dark .crm-user-btn .text-muted { color: rgba(255,255,255,.45) !important; }
.page-header-dark .btn-alt-secondary {
    background: rgba(255,255,255,.07) !important;
    border-color: rgba(255,255,255,.1) !important;
    color: rgba(255,255,255,.7) !important;
}
.page-header-dark .btn-alt-secondary:hover {
    background: rgba(255,255,255,.13) !important;
    color: #fff !important;
}
/* Search pill */
.crm-search-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(var(--crm-primary-rgb),.07);
    border: 1.5px solid rgba(var(--crm-primary-rgb),.18);
    border-radius: 2rem;
    padding: .28rem .9rem .28rem .65rem;
    font-size: .8rem;
    color: var(--crm-primary-dark);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    font-family: inherit;
}
.crm-search-pill:hover {
    background: rgba(var(--crm-primary-rgb),.13);
    border-color: rgba(var(--crm-primary-rgb),.32);
}
.crm-search-pill kbd {
    background: rgba(var(--crm-primary-rgb),.1);
    border-radius: .25rem;
    padding: .05rem .3rem;
    font-size: .65rem;
    color: var(--crm-primary);
    font-family: monospace;
    line-height: 1.4;
}
/* User button */
.crm-user-btn {
    background: rgba(var(--crm-primary-rgb),.07);
    border: 1px solid rgba(var(--crm-primary-rgb),.15);
    border-radius: 2rem;
    padding: .22rem .7rem .22rem .35rem;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    line-height: 1;
}
.crm-user-btn:hover {
    background: rgba(var(--crm-primary-rgb),.14);
    border-color: rgba(var(--crm-primary-rgb),.3);
}

/* ══ Sidebar Premium ══════════════════════════════════════════════════════════ */

/* پس‌زمینه sidebar */
#sidebar {
    background:
        radial-gradient(rgba(255,255,255,.028) 1px, transparent 1px) center/24px 24px,
        linear-gradient(180deg, #0d0f1a 0%, #111827 100%) !important;
    border-left: 1px solid rgba(255,255,255,.055) !important;
}

/* هدر sidebar — لوگو و دکمه‌ها */
#sidebar .content-header {
    background: rgba(255,255,255,.04) !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    padding: .75rem 1.25rem !important;
}
#sidebar .content-header .font-w600 { color: #fff !important; }
#sidebar .content-header .btn-alt-secondary {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.1) !important;
    color: rgba(255,255,255,.75) !important;
    border-radius: .5rem !important;
}
#sidebar .content-header .btn-alt-secondary:hover {
    background: rgba(255,255,255,.15) !important;
    color: #fff !important;
}

/* heading گروه‌بندی */
#sidebar .nav-main-heading {
    font-size: .62rem !important;
    letter-spacing: .1em !important;
    font-weight: 800 !important;
    color: rgba(255,255,255,.28) !important;
    padding: 1.1rem 1.25rem .35rem !important;
    text-transform: uppercase;
}

/* آیتم‌های معمولی */
#sidebar .nav-main-link {
    color: rgba(255,255,255,.58) !important;
    border-radius: .6rem !important;
    margin: .05rem .65rem !important;
    padding: .52rem .75rem !important;
    transition: background .14s, color .14s !important;
    position: relative;
}
#sidebar .nav-main-link:hover {
    background: rgba(255,255,255,.08) !important;
    color: rgba(255,255,255,.92) !important;
}
#sidebar .nav-main-link-icon {
    color: rgba(255,255,255,.38) !important;
    font-size: .85rem !important;
    width: 1.5rem !important;
    text-align: center;
    transition: color .14s !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-shrink: 0;
}
#sidebar .nav-main-link:hover .nav-main-link-icon {
    color: rgba(255,255,255,.75) !important;
}

/* آیتم active — pill رنگی با glow */
#sidebar .nav-main-link.active,
#sidebar .nav-main-link[aria-current="page"] {
    background: rgba(var(--crm-primary-rgb), .18) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(var(--crm-primary-rgb), .35),
                0 2px 12px rgba(var(--crm-primary-rgb), .22) !important;
}
#sidebar .nav-main-link.active .nav-main-link-icon,
#sidebar .nav-main-link[aria-current="page"] .nav-main-link-icon {
    color: var(--crm-primary-light, #a5b4fc) !important;
}

/* خط accent سمت راست روی active */
#sidebar .nav-main-link.active::before {
    content: '';
    position: absolute;
    right: 0; top: 20%; bottom: 20%;
    width: 3px;
    border-radius: 2px 0 0 2px;
    background: var(--crm-primary);
    box-shadow: 0 0 8px rgba(var(--crm-primary-rgb), .6);
}

/* submenu */
#sidebar .nav-main-submenu {
    background: rgba(0,0,0,.18) !important;
    border-radius: .6rem !important;
    margin: .1rem .65rem .3rem !important;
    padding: .25rem 0 !important;
    border: 1px solid rgba(255,255,255,.05) !important;
}
#sidebar .nav-main-submenu .nav-main-link {
    margin: .05rem .4rem !important;
    font-size: .8rem !important;
    color: rgba(255,255,255,.48) !important;
    padding: .38rem .65rem !important;
}
#sidebar .nav-main-submenu .nav-main-link:hover {
    background: rgba(255,255,255,.07) !important;
    color: rgba(255,255,255,.88) !important;
}
#sidebar .nav-main-submenu .nav-main-link.active {
    background: rgba(var(--crm-primary-rgb),.15) !important;
    color: #fff !important;
    box-shadow: none !important;
}
#sidebar .nav-main-submenu .nav-main-link.active::before { display: none; }

/* arrow submenu */
#sidebar .nav-main-link-submenu::after {
    color: rgba(255,255,255,.3) !important;
}
#sidebar .nav-main-item.open > .nav-main-link-submenu::after {
    color: rgba(255,255,255,.6) !important;
}

/* نوار یوان/دلار بالای منو */
#sidebar .sidebar-top-strip {
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    padding-bottom: .35rem !important;
}
#sidebar .nav-rate-rmb,
#sidebar .nav-rate-rmb .nav-main-link-icon { color: #f87171 !important; }
#sidebar .nav-rate-rmb:hover { background: rgba(248,113,113,.1) !important; }

#sidebar .nav-rate-usd,
#sidebar .nav-rate-usd .nav-main-link-icon { color: #4ade80 !important; }
#sidebar .nav-rate-usd:hover { background: rgba(74,222,128,.1) !important; }

/* scrollbar خود sidebar */
#sidebar ::-webkit-scrollbar { width: 3px; }
#sidebar ::-webkit-scrollbar-track { background: transparent; }
#sidebar ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }

/* ══ What's New Drawer ════════════════════════════════════════════════════════ */
.wn-card {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    position: relative;
    transition: border-color .2s, background .2s;
}
.wn-card.wn-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
    opacity: .7;
}
.wn-card-icon {
    width: 2.6rem; height: 2.6rem;
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.wn-card-body { flex: 1; min-width: 0; }
.wn-card-title {
    font-size: .88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .25rem;
}
.wn-card-desc {
    font-size: .78rem;
    color: #475569;
    line-height: 1.6;
}
.wn-card-desc kbd {
    background: #e2e8f0;
    border-radius: .25rem;
    padding: .05rem .35rem;
    font-size: .7rem;
    font-family: monospace;
    color: #334155;
}
.wn-card-demo {
    margin-top: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    color: var(--crm-primary);
    font-weight: 600;
    background: rgba(var(--crm-primary-rgb),.07);
    border-radius: .4rem;
    padding: .2rem .55rem;
}
.wn-tick {
    width: 2rem; height: 2rem;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    font-size: .8rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    align-self: center;
}
.wn-tick:hover { border-color: #22c55e; color: #22c55e; }
.wn-card.wn-done .wn-tick {
    border-color: #22c55e;
    background: #22c55e;
    color: #fff;
}
#wn-dismiss:hover { opacity: .88; }

/* dark mode */
.dark-mode #wn-drawer { background: #0f172a !important; }
.dark-mode .wn-card { background: #1e293b; border-color: rgba(255,255,255,.08); }
.dark-mode .wn-card.wn-done { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.2); }
.dark-mode .wn-card-title { color: #f1f5f9; }
.dark-mode .wn-card-desc  { color: #94a3b8; }
.dark-mode .wn-card-desc kbd { background: #334155; color: #cbd5e1; }
.dark-mode .wn-tick { background: #1e293b; border-color: rgba(255,255,255,.15); color: #64748b; }
.dark-mode #wn-drawer > div:first-child,
.dark-mode #wn-drawer > div:last-child { border-color: rgba(255,255,255,.07) !important; }
.dark-mode #wn-drawer > div:first-child .wn-card-title-main { color: #f1f5f9 !important; }

/* ── Scrollbar: desktop=visible / mobile=hidden scrollbar only ──────────── */
html { overflow-y: scroll; }
body.is-mobile ::-webkit-scrollbar { display: none !important; }
body.is-mobile * { scrollbar-width: none !important; -ms-overflow-style: none !important; }

