/* ======================================================
   فونت فارسی وزیرمتن و استایل‌های سفارشی سامانه
   ====================================================== */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت فارسی روی کل سیستم */
body,
.btn,
.form-control,
.form-select,
h1, h2, h3, h4, h5, h6,
.sidebar-links li a,
input, select, textarea, button,
.dropdown-menu,
.modal,
.card,
table, .table {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif !important;
}

/* راست‌چین کردن کامل */
body.rtl {
    direction: rtl;
    text-align: right;
}

/* اعداد فارسی‌نما */
.persian-num {
    font-feature-settings: "ss02";
}

/* بهبود نمایش فرم‌ها در RTL */
.form-label,
.col-form-label {
    font-weight: 500;
}

/* استایل کارت آمار داشبورد */
.stat-widget {
    border-radius: 15px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* رفع جهت آیکون‌ها در ورودی‌ها */
.input-group > .input-group-text {
    direction: ltr;
}

/* استایل ناحیه آپلود درگ‌اند‌دراپ (برای فازهای بعدی آماده است) */
.upload-dropzone {
    border: 2px dashed #ccd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    background: #fafbff;
}
.upload-dropzone.dragover {
    border-color: var(--theme-default, #7366ff);
    background: #f0f0ff;
}

/* لودر ساده */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: .7;
}

/* اطمینان از راست‌چین بودن متن لندینگ */
.landing-hero {
    background: linear-gradient(135deg, #7366ff 0%, #5b4dff 100%);
    color: #fff;
}

/* رفع چیدمان dropdown پروفایل در RTL */
body.rtl .profile-dropdown {
    left: 0 !important;
    right: auto !important;
}

/* تنظیم تاریخ شمسی در هدر */
.header-date {
    font-size: 13px;
    color: #898989;
}
