/* فایل: assets/css/admin.css */

/* =========================================
   1. تعریف فونت‌ها (Fonts)
   ========================================= */
@font-face {
    font-family: 'Bahij_Zar';
    /* اطمینان حاصل کنید فایل‌ها در پوشه fonts وجود دارند */
    src: url('../fonts/Bahij_Zar.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Bahij_Zar';
    src: url('../fonts/Bahij_Zar.ttf') format('truetype');
    font-weight: bold;
}

/* =========================================
   2. تنظیمات کلی (Global Reset)
   ========================================= */
body, h1, h2, h3, h4, h5, h6, 
p, span, a, li, label,
.btn, .form-control, .navbar, .alert,
table, th, td, input, select, textarea {
    font-family: 'Bahij_Zar', Tahoma, sans-serif !important;
}

body {
    font-size: 17px;       /* سایز استاندارد متن‌ها */
    line-height: 1.6;      /* ارتفاع خطوط برای خوانایی بهتر */
    direction: rtl;
    text-align: right;
    background-color: #f4f6f9; /* رنگ پس‌زمینه خاکستری خیلی روشن و تمیز */
    color: #333;
}

/* =========================================
   3. استایل هدر و نوبار (Navy Blue Header)
   ========================================= */
/* اجبار رنگ سرمه‌ای روی تمام انواع نوبار بوت‌استرپ */
.navbar, 
.navbar-inverse, 
.navbar-default {
    background-color: #0f2b4c !important; /* رنگ اصلی سایت */
    background-image: none !important; /* حذف گرادینت‌های پیش‌فرض بوت‌استرپ */
    border-color: #0f2b4c !important;
    border-bottom: 4px solid #0056b3 !important; /* نوار آبی روشن زیر هدر */
}

/* رنگ متن عنوان سایت (برند) */
.navbar-brand,
.navbar-inverse .navbar-brand {
    color: #ffffff !important;
    font-weight: bold;
    text-shadow: none !important;
}

/* رنگ لینک‌های منو */
.navbar-nav > li > a,
.navbar-inverse .navbar-nav > li > a {
    color: #e0e0e0 !important; /* سفید مایل به خاکستری */
    text-shadow: none !important;
}

/* رنگ لینک‌ها هنگام هاور (موس روی آن‌ها) */
.navbar-nav > li > a:hover,
.navbar-nav > li.active > a,
.navbar-inverse .navbar-nav > .open > a {
    background-color: #0b223d !important; /* سرمه‌ای تیره‌تر */
    color: #ffffff !important;
}

/* دکمه همبرگری موبایل */
.navbar-inverse .navbar-toggle {
    border-color: #fff !important;
}
.navbar-inverse .navbar-toggle:hover {
    background-color: #0b223d !important;
}
.navbar-inverse .navbar-toggle .icon-bar {
    background-color: #fff !important;
}

/* =========================================
   4. دکمه‌ها و پنل‌ها (UI Elements)
   ========================================= */

/* دکمه‌های اصلی (مثل ذخیره) */
.btn-primary {
    background-color: #0f2b4c !important;
    border-color: #0a1f38 !important;
    color: white !important;
    transition: all 0.3s;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0056b3 !important; /* آبی روشن‌تر در هاور */
}

/* پنل‌های اطلاعات (کادر دور فرم‌ها) */
.panel-primary {
    border-color: #0f2b4c !important;
}
.panel-primary > .panel-heading {
    background-color: #0f2b4c !important;
    border-color: #0f2b4c !important;
    background-image: none !important;
    color: white;
}

/* لینک‌های متنی معمولی */
a {
    color: #0f2b4c;
    text-decoration: none;
}
a:hover {
    color: #0056b3;
}

/* =========================================
   5. اصلاحات راست‌چین (RTL Fixes)
   ========================================= */
/* راست‌چین کردن متن‌های داخل جدول */
th, td {
    text-align: right !important;
}

/* اصلاح فلوت‌ها برای بوت‌استرپ 3 */
.pull-right {
    float: left !important;
}
.pull-left {
    float: right !important;
}

/* ورودی‌های فرم */
.form-control {
    border-radius: 4px;
}
.form-control:focus {
    border-color: #0f2b4c !important;
    box-shadow: 0 0 5px rgba(15, 43, 76, 0.2) !important;
}