/* =========================================
   توسعه‌دهنده: فایل style.css
   نسخه: 3.2 (جدا شده - فقط پایه، هدر و فوتر)
   ویژگی‌ها: کدهای دقیق و اختصاصی کاربر
   ========================================= */

/* --- اضافه شدن فونت محلی وزیرمتن (بدون نیاز به اینترنت) --- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('fonts/Vazirmatn-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('fonts/Vazirmatn-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Black.woff2') format('woff2'),
         url('fonts/Vazirmatn-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   تنظیمات پایه و عمومی (Global Reset)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* غیرفعال کردن هایلایت آبی رنگ هنگام لمس در موبایل */
    -webkit-tap-highlight-color: transparent; 
}

body {
    background-color: #f8fafc; /* رنگ پس‌زمینه بسیار ملایم (طوسی-آبی روشن) */
    color: #334155;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif; /* فونت‌های پیش‌فرض */
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl; /* اضافه شده برای راست‌چین بودن استاندارد سایت فارسی */
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: #222; /* تیره‌تر کردن رنگ متن برای خوانایی بهتر در مانیتورهای قدیمی */
}

/* =========================================
   1. هدر مدرن و فوق‌حرفه‌ای (طراحی جدید)
   ========================================= */
.modern-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    margin-bottom: 25px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* لوگوی جدید */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon-wrapper {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.logo-text {
    font-size: 19px;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: #10b981;
}

/* دکمه‌های اکشن هدر */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-icon {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:active {
    background: #f1f5f9;
    transform: scale(0.95);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

.btn-donate {
    background: #1e293b; /* رنگ تیره و شیک */
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-donate:active { 
    transform: scale(0.95); 
}

.btn-donate svg {
    color: #10b981; /* آیکون قلب سبز */
}

/* منوی اسکرولی موبایل - استایل کپسولی جدید */
.header-nav {
    padding: 0 5px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }

.nav-list {
    display: flex;
    list-style: none;
    padding: 0 15px;
    gap: 8px;
    white-space: nowrap;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: #64748b;
    background: #f1f5f9;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    border-radius: 50px; /* شکل کپسولی */
    transition: all 0.3s ease;
}

.nav-link.active {
    color: white;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

/* =========================================
   7. فوتر تاریک و شیک (Dark Footer)
   ========================================= */
footer {
    background-color: #0f172a;
    color: white;
    padding: 40px 20px 20px;
    margin-top: 40px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    text-align: center;
}

.footer-logo {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #10b981;
}

.footer-desc {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
}

.copyright {
    font-size: 12px;
    color: #475569;
    border-top: 1px solid #1e293b;
    padding-top: 15px;
}
/* تنظیمات رنگی حالت تاریک برای تمام صفحات */
body.dark-mode {
    --bg-color: #1e1e2d;
    --card-bg: #2b2b40;
    --text-color: #ffffff;
    --table-border: #3f3f5a;
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

body.dark-mode .sidebar {
    background-color: #2b2b40;
    border-left: 1px solid #3f3f5a;
}

body.dark-mode input, 
body.dark-mode textarea, 
body.dark-mode select {
    background-color: #1e1e2d !important;
    color: #ffffff !important;
    border-color: #3f3f5a !important;
}
