/* =========================================================
   قالب سفارشی سامانه مدیریت مرکز تماس
   شامل: فونت لوکال BYekan + ظاهر زیباتر + جداول خواناتر
   این فایل مستقیم از پوشه public سرو می‌شود؛ نیازی به build ندارد.
   ========================================================= */

/* ---------- ۱) فونت محلی BYekan ---------- */
@font-face {
    font-family: 'BYekan';
    src: url('/fonts/byekan/BYekan.woff2') format('woff2'),
         url('/fonts/byekan/BYekan.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BYekan';
    src: url('/fonts/byekan/BYekan-Bold.woff2') format('woff2'),
         url('/fonts/byekan/BYekan-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-family: 'BYekan', Tahoma, 'Segoe UI', sans-serif;
}

html, body, * {
    font-family: 'BYekan', Tahoma, 'Segoe UI', sans-serif !important;
}

/* ---------- ۲) رنگ‌ها و فضای کلی ---------- */
:root {
    --panel-bg: #f4f6f9;
}

.fi-body {
    background-color: var(--panel-bg);
}

/* ---------- ۳) کارت‌ها و ویجت‌ها ---------- */
.fi-section,
.fi-wi-stats-overview-stat,
.fi-ta-ctn,
.fi-wi-widget {
    border-radius: 1rem !important;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04) !important;
    border: 1px solid rgba(16, 24, 40, 0.06) !important;
}

.fi-wi-stats-overview-stat {
    transition: transform .15s ease, box-shadow .15s ease;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.10) !important;
}

.fi-wi-stats-overview-stat-value {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
}

/* ---------- ۴) جداول خواناتر ---------- */
.fi-ta-table {
    border-collapse: separate;
    border-spacing: 0;
}

.fi-ta-header-cell {
    background-color: #eef1f6 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0;
}

.fi-ta-row {
    transition: background-color .12s ease;
}

.fi-ta-row:nth-of-type(even) {
    background-color: rgba(99, 102, 241, 0.025);
}

.fi-ta-row:hover {
    background-color: rgba(99, 102, 241, 0.07) !important;
}

.fi-ta-cell {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    font-size: 0.92rem !important;
}

.fi-ta-row td:first-child .fi-ta-cell,
.fi-ta-row th:first-child {
    font-weight: 600;
}

/* بج‌های تگ کمی بزرگتر و خواناتر */
.fi-badge {
    font-size: 0.8rem !important;
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    font-weight: 600 !important;
}

/* ---------- ۵) دکمه‌ها ---------- */
.fi-btn {
    border-radius: 0.65rem !important;
    font-weight: 600 !important;
}

/* ---------- ۶) نوار کناری (Sidebar) ---------- */
.fi-sidebar {
    box-shadow: 1px 0 4px rgba(16, 24, 40, 0.05);
}

.fi-sidebar-nav-item-button {
    border-radius: 0.65rem !important;
    font-weight: 500;
}

.fi-sidebar-group-label {
    font-weight: 700 !important;
}

/* ---------- ۷) هدر صفحه ---------- */
.fi-header-heading {
    font-weight: 700 !important;
}

/* ---------- ۸) اسکرول‌بار زیباتر ---------- */
* {
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(99, 102, 241, 0.35);
    border-radius: 8px;
}
