@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;900&display=swap');

/* ============================================================
   🌙☀️ تم دوگانه - متغیرهای پیش‌فرض (حالت روز)
   ============================================================ */
:root {
    /* رنگ‌های برند (ثابت) */
    --brand-dark: #0a1e3d;
    --brand-blue: #1a3a6a;
    --brand-gold: #c9a84c;
    --brand-gold-light: #e8c97a;
    --brand-gold-dark: #a8893a;

    /* رنگ‌های وضعیت */
    --success-color: #1a7a4a;
    --success-light: #27ae60;
    --danger-color: #b71c1c;
    --danger-light: #e74c3c;
    --warning-color: #d68910;
    --warning-light: #f39c12;

    /* ============ ☀️ حالت روز ============ */
    --bg-primary: #f0f2f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #fafbfc;
    --bg-hover: rgba(201, 168, 76, 0.08);
    --bg-active: rgba(201, 168, 76, 0.15);

    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --text-muted: #9aa0ab;
    --text-inverse: #ffffff;

    --border-color: #e5e8ee;
    --border-gold: rgba(201, 168, 76, 0.3);

    --shadow-sm: 0 2px 8px rgba(10, 30, 61, 0.06);
    --shadow-md: 0 4px 20px rgba(10, 30, 61, 0.08);
    --shadow-lg: 0 8px 30px rgba(10, 30, 61, 0.12);
    --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.25);

    --card-bg: #ffffff;
    --card-border: #e5e8ee;

    /* ☀️ جدول */
    --table-header-bg: linear-gradient(90deg, #f5f7fb, #e8ecf3);
    --table-header-text: #0a1e3d;
    --table-header-border: #c9a84c;
    --table-row-bg: #ffffff;
    --table-row-alt: #fafbfc;
    --table-row-hover: rgba(201, 168, 76, 0.08);
    --table-border: #e5e8ee;

    --input-bg: #fafbfc;
    --input-border: #e5e8ee;
    --input-text: #1a1a2e;
    --input-placeholder: #9aa0ab;

    /* ☀️ سایدبار */
    --sidebar-bg: linear-gradient(180deg, #ffffff, #f5f7fb);
    --sidebar-border: #e5e8ee;
    --sidebar-shadow: -3px 0 20px rgba(10, 30, 61, 0.08);
    --sidebar-scrollbar-track: #f0f2f7;
    --sidebar-scrollbar-thumb: #c9a84c;

    /* ☀️ منو */
    --menu-text: #2d3748;
    --menu-text-hover: #a8893a;
    --menu-icon: #c9a84c;
    --menu-icon-hover: #a8893a;
    --menu-border: rgba(201, 168, 76, 0.15);
    --menu-hover-bg: linear-gradient(90deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.02));
    --menu-active-bg: linear-gradient(90deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.05));
    --menu-active-text: #a8893a;

    /* ☀️ زیرمنو */
    --submenu-bg: rgba(201, 168, 76, 0.06);
    --submenu-text: #4a5568;
    --submenu-text-hover: #a8893a;
    --submenu-border: rgba(201, 168, 76, 0.15);
    --submenu-active-bg: rgba(201, 168, 76, 0.15);
    --submenu-active-text: #a8893a;

    /* ☀️ پروفایل */
    --profile-bg: linear-gradient(180deg, #ffffff, #f0f2f7);
    --profile-border: rgba(201, 168, 76, 0.2);
    --profile-name: #0a1e3d;
    --profile-phone: #6c757d;

    /* ☀️ HEADER */
    --header-bg: linear-gradient(90deg, #ffffff, #f5f7fb);
    --header-border: #c9a84c;
    --header-shadow: 0 2px 15px rgba(10, 30, 61, 0.08);
    --header-text: #0a1e3d;
    --header-text-accent: #a8893a;
    --header-icon: #c9a84c;
    --header-icon-hover: #a8893a;
    --header-logo-border: #c9a84c;
    --header-logo-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
    --header-search-bg: #ffffff;
    --header-search-border: rgba(201, 168, 76, 0.3);
    --header-search-text: #1a1a2e;
    --header-search-placeholder: #9aa0ab;
    --header-search-icon: #c9a84c;

    /* ☀️ دکمه تم */
    --theme-btn-bg: rgba(201, 168, 76, 0.1);
    --theme-btn-border: #c9a84c;
    --theme-btn-text: #a8893a;
    --theme-btn-hover-bg: #c9a84c;
    --theme-btn-hover-text: #ffffff;

    --mobile-menu-btn-color: #c9a84c;

    /* ☀️ استپ ویزارد */
    --step-wizard-bg: #ffffff;
    --step-wizard-border: #e5e8ee;
    --step-line-bg: #e5e8ee;
    --step-number-bg: #f0f2f7;
    --step-number-text: #9aa0ab;
    --step-number-active-bg: #c9a84c;
    --step-number-active-text: #ffffff;
    --step-number-active-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
    --step-number-done-bg: #1a7a4a;
    --step-number-done-text: #ffffff;
    --step-label-text: #6c757d;
    --step-label-active-text: #a8893a;
    --step-label-done-text: #1a7a4a;
    --step-content-bg: #fafbfc;
    --step-content-border: #e5e8ee;
    --step-content-shadow: 0 2px 10px rgba(10, 30, 61, 0.05);
    --nav-footer-border: #e5e8ee;

    /* ☀️ کارت‌های پرونده */
    --case-card-bg: #ffffff;
    --case-card-border: #e5e8ee;
    --case-info-box-bg: rgba(201, 168, 76, 0.08);
    --case-info-box-border: rgba(201, 168, 76, 0.25);
    --case-header-info-bg: linear-gradient(135deg, #f5f7fb, #e8ecf3);
    --case-header-info-border: #c9a84c;

    /* ☀️ کارت‌های داور (مرحله ۲) */
    --arb-card-bg: #ffffff;
    --arb-card-border: #e5e8ee;
    --arb-card-shadow: 0 2px 8px rgba(10, 30, 61, 0.06);
    --arb-number-bg: #c9a84c;
    --arb-number-text: #ffffff;
    --arb-date-bg: #fafbfc;
    --arb-date-border: #e5e8ee;
    --arb-date-text: #a8893a;

    /* ☀️ کارت قبولی داور (مرحله ۳) */
    --acc-card-bg: #ffffff;
    --acc-card-border: #e5e8ee;
    --acc-card-pending: #d68910;
    --acc-card-accepted: #1a7a4a;
    --acc-card-rejected: #b71c1c;

    --acc-header-bg: #f5f7fb;
    --acc-header-border: #e5e8ee;
    --acc-title-color: #a8893a;
    --acc-name-color: #0a1e3d;

    --acc-message-bg: linear-gradient(135deg, #f5f7fb, #e8ecf3);
    --acc-message-border: rgba(201, 168, 76, 0.3);
    --acc-message-title: #a8893a;
    --acc-message-text: #1a1a2e;

    --acc-checklist-bg: #fafbfc;
    --acc-checklist-border: #e5e8ee;
    --acc-checklist-title: #a8893a;
    --acc-checklist-item-bg: #ffffff;
    --acc-checklist-item-border: #e5e8ee;
    --acc-checklist-item-checked-bg: rgba(26, 122, 74, 0.05);
    --acc-checklist-item-checked-border: #1a7a4a;
    --acc-checklist-label: #1a1a2e;
    --acc-checklist-label-checked: #1a7a4a;

    --acc-info-box-bg: #fafbfc;
    --acc-info-box-inner: #ffffff;
    --acc-info-label: #6c757d;
    --acc-info-value: #1a1a2e;

    --acc-modal-overlay: rgba(0, 0, 0, 0.6);
    --acc-modal-bg: #ffffff;
    --acc-modal-border: #e5e8ee;
    --acc-modal-header-bg: #f5f7fb;
    --acc-modal-footer-bg: #f5f7fb;

    --acc-decision-border: #e5e8ee;
    --acc-decision-title: #d68910;

    --acc-status-pending-bg: #fef3c7;
    --acc-status-pending-text: #d68910;
    --acc-status-accepted-bg: #d1fae5;
    --acc-status-accepted-text: #1a7a4a;
    --acc-status-rejected-bg: #fee2e2;
    --acc-status-rejected-text: #b71c1c;

    /* ☀️ متغیرهای خاص */
    --btn-summary-bg: #6c5ce7;
    --btn-summary-hover: #5a4bd1;
    --badge-info-bg: #17a2b8;
    --badge-dark-bg: #343a40;
    --badge-success-bg: #28a745;

    /* ☀️ صفحه اصلی (Index) */
    --site-bg: #ffffff;
    --site-bg-alt: #f0f2f7;
    --top-notice-bg: #0a1e3d;
    --top-notice-text: #ffffff;
    --navbar-custom-bg: #1a3a6a;
    --hero-gradient: linear-gradient(135deg, #0a1e3d 0%, #1a3a6a 50%, #2a5a8a 100%);
    --footer-site-bg: #080e1a;
    --footer-site-text: #ced4da;
    --footer-site-border: rgba(255, 255, 255, 0.06);

    --scrollbar-track: #f0f2f7;
}

/* ============================================================
   🌙 حالت شب
   ============================================================ */
[data-theme="dark"] {
    --bg-primary: #06152b;
    --bg-secondary: #0a1e3d;
    --bg-tertiary: #0d2649;
    --bg-hover: rgba(201, 168, 76, 0.12);
    --bg-active: rgba(201, 168, 76, 0.2);

    --text-primary: #e8ecf3;
    --text-secondary: #b8c2d6;
    --text-muted: #8494ad;
    --text-inverse: #0a1e3d;

    --border-color: rgba(201, 168, 76, 0.15);
    --border-gold: rgba(201, 168, 76, 0.35);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 25px rgba(201, 168, 76, 0.3);

    --card-bg: linear-gradient(135deg, rgba(26, 58, 106, 0.6), rgba(10, 30, 61, 0.9));
    --card-border: rgba(201, 168, 76, 0.2);

    /* 🌙 جدول */
    --table-header-bg: linear-gradient(90deg, #1a3a6a, #0a1e3d);
    --table-header-text: #e8c97a;
    --table-header-border: #c9a84c;
    --table-row-bg: rgba(10, 30, 61, 0.3);
    --table-row-alt: rgba(10, 30, 61, 0.5);
    --table-row-hover: rgba(201, 168, 76, 0.1);
    --table-border: rgba(201, 168, 76, 0.1);

    --input-bg: rgba(6, 21, 43, 0.7);
    --input-border: rgba(201, 168, 76, 0.25);
    --input-text: #e8ecf3;
    --input-placeholder: #8494ad;

    /* 🌙 سایدبار */
    --sidebar-bg: linear-gradient(180deg, #0a1e3d, #06152b);
    --sidebar-border: rgba(201, 168, 76, 0.25);
    --sidebar-shadow: -3px 0 20px rgba(0, 0, 0, 0.5);
    --sidebar-scrollbar-track: rgba(255, 255, 255, 0.05);
    --sidebar-scrollbar-thumb: #c9a84c;

    /* 🌙 منو */
    --menu-text: #d8dce6;
    --menu-text-hover: #e8c97a;
    --menu-icon: #c9a84c;
    --menu-icon-hover: #e8c97a;
    --menu-border: rgba(201, 168, 76, 0.08);
    --menu-hover-bg: linear-gradient(90deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.03));
    --menu-active-bg: linear-gradient(90deg, rgba(201, 168, 76, 0.25), rgba(201, 168, 76, 0.05));
    --menu-active-text: #e8c97a;

    /* 🌙 زیرمنو */
    --submenu-bg: rgba(0, 0, 0, 0.25);
    --submenu-text: #b8c2d6;
    --submenu-text-hover: #e8c97a;
    --submenu-border: rgba(201, 168, 76, 0.06);
    --submenu-active-bg: rgba(201, 168, 76, 0.18);
    --submenu-active-text: #e8c97a;

    /* 🌙 پروفایل */
    --profile-bg: linear-gradient(180deg, #1a3a6a, #0a1e3d);
    --profile-border: rgba(201, 168, 76, 0.2);
    --profile-name: #e8c97a;
    --profile-phone: rgba(255, 255, 255, 0.85);

    /* 🌙 HEADER */
    --header-bg: linear-gradient(90deg, #0a1e3d, #1a3a6a);
    --header-border: #c9a84c;
    --header-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    --header-text: #ffffff;
    --header-text-accent: #e8c97a;
    --header-icon: #e8c97a;
    --header-icon-hover: #ffffff;
    --header-logo-border: #c9a84c;
    --header-logo-shadow: 0 0 12px rgba(201, 168, 76, 0.5);
    --header-search-bg: rgba(255, 255, 255, 0.1);
    --header-search-border: rgba(201, 168, 76, 0.4);
    --header-search-text: #ffffff;
    --header-search-placeholder: rgba(255, 255, 255, 0.65);
    --header-search-icon: #e8c97a;

    /* 🌙 دکمه تم */
    --theme-btn-bg: rgba(255, 255, 255, 0.1);
    --theme-btn-border: #c9a84c;
    --theme-btn-text: #e8c97a;
    --theme-btn-hover-bg: #c9a84c;
    --theme-btn-hover-text: #0a1e3d;

    --mobile-menu-btn-color: #c9a84c;

    /* 🌙 استپ ویزارد */
    --step-wizard-bg: #0a1e3d;
    --step-wizard-border: rgba(201, 168, 76, 0.2);
    --step-line-bg: rgba(201, 168, 76, 0.15);
    --step-number-bg: rgba(201, 168, 76, 0.15);
    --step-number-text: #8494ad;
    --step-number-active-bg: #c9a84c;
    --step-number-active-text: #0a1e3d;
    --step-number-active-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
    --step-number-done-bg: #27ae60;
    --step-number-done-text: #ffffff;
    --step-label-text: #8494ad;
    --step-label-active-text: #e8c97a;
    --step-label-done-text: #4ade80;
    --step-content-bg: rgba(6, 21, 43, 0.5);
    --step-content-border: rgba(201, 168, 76, 0.15);
    --step-content-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --nav-footer-border: rgba(201, 168, 76, 0.15);

    /* 🌙 کارت‌های پرونده */
    --case-card-bg: #0a1e3d;
    --case-card-border: rgba(201, 168, 76, 0.2);
    --case-info-box-bg: rgba(201, 168, 76, 0.1);
    --case-info-box-border: rgba(201, 168, 76, 0.3);
    --case-header-info-bg: linear-gradient(135deg, #001a33, #0d2137);
    --case-header-info-border: #c9a84c;

    /* 🌙 کارت‌های داور */
    --arb-card-bg: linear-gradient(135deg, rgba(26, 58, 106, 0.5), rgba(10, 30, 61, 0.85));
    --arb-card-border: rgba(201, 168, 76, 0.2);
    --arb-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --arb-number-bg: #c9a84c;
    --arb-number-text: #0a1e3d;
    --arb-date-bg: rgba(6, 21, 43, 0.7);
    --arb-date-border: rgba(201, 168, 76, 0.25);
    --arb-date-text: #e8c97a;

    /* 🌙 کارت قبولی داور */
    --acc-card-bg: linear-gradient(135deg, rgba(26, 58, 106, 0.6), rgba(10, 30, 61, 0.9));
    --acc-card-border: rgba(201, 168, 76, 0.2);
    --acc-card-pending: #ffa502;
    --acc-card-accepted: #2ed573;
    --acc-card-rejected: #ff4757;

    --acc-header-bg: #0a1e3d;
    --acc-header-border: rgba(201, 168, 76, 0.15);
    --acc-title-color: #e8c97a;
    --acc-name-color: #ffa502;

    --acc-message-bg: linear-gradient(135deg, #001a33, #0d2137);
    --acc-message-border: rgba(201, 168, 76, 0.3);
    --acc-message-title: #c9a84c;
    --acc-message-text: #e8ecf3;

    --acc-checklist-bg: rgba(6, 21, 43, 0.5);
    --acc-checklist-border: rgba(201, 168, 76, 0.15);
    --acc-checklist-title: #e8c97a;
    --acc-checklist-item-bg: #0d2649;
    --acc-checklist-item-border: rgba(201, 168, 76, 0.15);
    --acc-checklist-item-checked-bg: rgba(39, 174, 96, 0.08);
    --acc-checklist-item-checked-border: #27ae60;
    --acc-checklist-label: #e8ecf3;
    --acc-checklist-label-checked: #2ed573;

    --acc-info-box-bg: #001a33;
    --acc-info-box-inner: #0a1a2b;
    --acc-info-label: #8494ad;
    --acc-info-value: #e8ecf3;

    --acc-modal-overlay: rgba(0, 0, 0, 0.85);
    --acc-modal-bg: #0a1a2b;
    --acc-modal-border: rgba(201, 168, 76, 0.2);
    --acc-modal-header-bg: #001a33;
    --acc-modal-footer-bg: #001a33;

    --acc-decision-border: rgba(201, 168, 76, 0.15);
    --acc-decision-title: #ffa502;

    --acc-status-pending-bg: rgba(243, 156, 18, 0.15);
    --acc-status-pending-text: #ffa502;
    --acc-status-accepted-bg: rgba(39, 174, 96, 0.15);
    --acc-status-accepted-text: #2ed573;
    --acc-status-rejected-bg: rgba(231, 76, 60, 0.15);
    --acc-status-rejected-text: #ff4757;

    /* 🌙 صفحه اصلی (Index) */
    --site-bg: #06152b;
    --site-bg-alt: #0a1e3d;
    --top-notice-bg: #020811;
    --top-notice-text: #e8c97a;
    --navbar-custom-bg: #0a1e3d;
    --hero-gradient: linear-gradient(135deg, #020811 0%, #0a1e3d 50%, #1a3a6a 100%);
    --footer-site-bg: #020811;
    --footer-site-text: #b8c2d6;
    --footer-site-border: rgba(201, 168, 76, 0.15);

    --scrollbar-track: #06152b;
}

/* ============================================================
   پایه
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

body {
    direction: rtl;
    font-family: 'Vazirmatn', Vazir, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* ============================================================
   ✅ لایه سایت - برای صفحه اصلی (index.php)
   ============================================================ */
.site-body {
    background: var(--site-bg);
}

/* ============================================================
   ✅ نوار اعلانات سایت
   ============================================================ */
.top-notice {
    background-color: var(--top-notice-bg);
    color: var(--top-notice-text);
    font-size: 0.85rem;
    padding: 6px 0;
    text-align: center;
    font-weight: 400;
}

.top-notice i {
    color: var(--brand-gold);
    margin-left: 8px;
}

[data-theme="dark"] .top-notice {
    background-color: var(--top-notice-bg);
    color: var(--top-notice-text);
}

/* ============================================================
   ✅ هدر سایت (صفحه اصلی)
   ============================================================ */
.site-header {
    background: var(--site-bg);
    padding: 15px 0;
}

.header-logo img {
    height: 75px;
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0;
    color: var(--text-primary);
}

[data-theme="dark"] .header-title h1 {
    color: var(--brand-gold-light);
}

.header-title .subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.header-title .legal-tag {
    background: var(--brand-gold);
    color: #000;
    font-size: 0.65rem;
    padding: 2px 12px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    margin-top: 4px;
}

.search-box input {
    border-radius: 30px;
    padding-right: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    padding: 10px 20px;
    width: 100%;
    outline: none;
}

.search-box input:focus {
    border-color: var(--brand-gold);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.search-box button {
    border-radius: 30px;
    background-color: var(--brand-dark);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: var(--brand-gold);
    color: #000;
}

/* ============================================================
   ✅ منوی ناوبری سایت
   ============================================================ */
.navbar-custom {
    background-color: var(--navbar-custom-bg) !important;
    padding: 10px 0;
}

.navbar-custom .nav-link {
    color: #fff !important;
    font-weight: 400;
    padding: 6px 18px !important;
    transition: 0.2s;
    border-radius: 6px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    background-color: var(--brand-gold);
    color: #000 !important;
}

.navbar-custom .dropdown-menu {
    background-color: var(--navbar-custom-bg);
    border: none;
    border-radius: 10px;
    padding: 8px 0;
}

.navbar-custom .dropdown-item {
    color: #fff !important;
    transition: 0.2s;
}

.navbar-custom .dropdown-item:hover {
    background-color: var(--brand-gold);
    color: #000 !important;
}

.navbar-custom .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   ✅ اسلایدر (Hero)
   ============================================================ */
.hero-section {
    background: var(--hero-gradient);
    padding: 60px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '⚖️';
    position: absolute;
    top: -20%;
    left: -5%;
    font-size: 350px;
    opacity: 0.06;
    pointer-events: none;
}

.hero-section .gavel-icon {
    font-size: 4rem;
    color: var(--brand-gold);
}

.hero-content h2 {
    font-weight: 900;
    font-size: 2.2rem;
    color: #fff;
}

.hero-content .highlight {
    color: var(--brand-gold);
}

.hero-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    color: #fff;
}

.hero-btn {
    background-color: var(--brand-gold);
    color: #000;
    font-weight: 700;
    padding: 10px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    border: 2px solid transparent;
}

.hero-btn:hover {
    background-color: transparent;
    color: var(--brand-gold);
    border-color: var(--brand-gold);
}

.hero-btn-outline {
    background-color: transparent;
    color: #fff;
    font-weight: 700;
    padding: 10px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-right: 12px;
}

.hero-btn-outline:hover {
    background-color: var(--brand-gold);
    color: #000;
    border-color: var(--brand-gold);
}

.hero-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   ✅ آمار برجسته
   ============================================================ */
.stats-section {
    background: var(--site-bg-alt);
    padding: 40px 0;
    border-bottom: 3px solid var(--brand-gold);
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

[data-theme="dark"] .stat-item .number {
    color: var(--brand-gold-light);
}

.stat-item .number i {
    color: var(--brand-gold);
    font-size: 2rem;
    margin-left: 8px;
}

.stat-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================================
   ✅ خدمات داوری
   ============================================================ */
.service-box {
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: 0.3s;
    border: 1px solid var(--card-border);
    border-bottom: 4px solid transparent;
    height: 100%;
}

.service-box:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--brand-gold);
    box-shadow: var(--shadow-lg);
}

.service-box i {
    font-size: 2.8rem;
    color: var(--brand-blue);
    background: var(--bg-secondary);
    padding: 18px;
    border-radius: 50%;
    margin-bottom: 16px;
    display: inline-block;
}

[data-theme="dark"] .service-box i {
    color: var(--brand-gold-light);
    background: rgba(201, 168, 76, 0.15);
}

.service-box h5 {
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================================
   ✅ درباره کانون
   ============================================================ */
.about-section {
    padding: 50px 0;
    background: var(--site-bg);
}

.about-section .feature-list {
    list-style: none;
    padding: 0;
}

.about-section .feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.about-section .feature-list li i {
    color: var(--brand-gold);
    margin-left: 10px;
}

.about-section .bg-light {
    background: var(--site-bg-alt) !important;
    border-radius: 16px;
}

/* ============================================================
   ✅ اخبار و پرونده‌های موفق
   ============================================================ */
.news-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    border-right: 4px solid var(--brand-gold);
    transition: 0.2s;
}

.news-card:hover {
    background: var(--bg-tertiary);
}

.news-card .date-badge {
    background: var(--brand-dark);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 12px;
    border-radius: 30px;
    display: inline-block;
}

.news-card .status-success {
    background: var(--success-color);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 12px;
    border-radius: 30px;
    display: inline-block;
}

.news-card h6 {
    font-weight: 700;
    margin: 6px 0 4px;
    color: var(--text-primary);
}

/* ============================================================
   ✅ داوران حرفه‌ای
   ============================================================ */
.judge-section {
    background: var(--site-bg-alt);
    padding: 50px 0;
}

.judge-card {
    text-align: center;
    background: var(--card-bg);
    padding: 25px 15px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    transition: 0.3s;
    height: 100%;
}

.judge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.judge-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-gold);
    margin-bottom: 12px;
}

.judge-card h6 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.judge-card .specialty {
    font-size: 0.75rem;
    color: var(--brand-gold);
    font-weight: 600;
}

.judge-card small {
    color: var(--text-muted);
    display: block;
    font-size: 0.7rem;
}

/* ============================================================
   ✅ لینک‌های سریع
   ============================================================ */
.quick-link-item {
    background: var(--card-bg);
    padding: 20px 10px;
    border-radius: 14px;
    text-align: center;
    transition: 0.2s;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    font-weight: 500;
}

.quick-link-item:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
    color: var(--brand-gold);
}

.quick-link-item i {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
}

/* ============================================================
   ✅ فرم تماس
   ============================================================ */
.contact-section {
    padding: 50px 0;
    background: var(--site-bg);
}

.contact-box {
    background: var(--site-bg-alt);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.contact-box input,
.contact-box textarea {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 10px 15px;
    width: 100%;
    font-family: inherit;
    outline: none;
}

.contact-box input:focus,
.contact-box textarea:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.contact-box .btn-submit {
    background: var(--brand-dark);
    color: #fff;
    padding: 10px 40px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.contact-box .btn-submit:hover {
    background: var(--brand-gold);
    color: #000;
}

/* ============================================================
   ✅ فوتر سایت
   ============================================================ */
.footer {
    background-color: var(--footer-site-bg);
    color: var(--footer-site-text);
    padding: 45px 0 20px;
}

.footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer a {
    color: var(--footer-site-text);
    text-decoration: none;
    transition: 0.2s;
}

.footer a:hover {
    color: var(--brand-gold);
}

.footer .social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    margin-left: 8px;
    color: #fff;
    transition: 0.2s;
}

.footer .social-icon:hover {
    background: var(--brand-gold);
    color: #000;
}

.footer-bottom {
    border-top: 1px solid var(--footer-site-border);
    padding-top: 18px;
    margin-top: 30px;
    font-size: 0.8rem;
    text-align: center;
}

/* ============================================================
   HEADER (پنل داشبورد)
   ============================================================ */
.header {
    width: 100%;
    height: 70px;
    background: var(--header-bg);
    border-bottom: 2px solid var(--header-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--header-shadow);
}

.header-right { display: flex; align-items: center; gap: 15px; }

.header-right img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--header-logo-border);
    box-shadow: var(--header-logo-shadow);
    transition: transform 0.3s;
    object-fit: cover;
}

.header-right img:hover { transform: scale(1.1); }

.header-right span {
    font-size: 18px;
    font-weight: 700;
    color: var(--header-text);
}

.header-right span:first-of-type { color: var(--header-text-accent); }

.search-box { width: 35%; position: relative; }

.search-box input {
    width: 100%;
    padding: 11px 45px 11px 15px;
    border-radius: 25px;
    border: 1px solid var(--header-search-border);
    background: var(--header-search-bg);
    color: var(--header-search-text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.search-box input::placeholder { color: var(--header-search-placeholder); }

.search-box input:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.3);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--header-search-icon);
}

.header-left { display: flex; align-items: center; gap: 20px; }

.notification { position: relative; }

.notification-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-left i {
    font-size: 22px;
    color: var(--header-icon);
    cursor: pointer;
}

.header-left i:hover {
    color: var(--header-icon-hover);
    transform: translateY(-2px);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--theme-btn-bg);
    border: 2px solid var(--theme-btn-border);
    color: var(--theme-btn-text);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 0;
    font-family: inherit;
}

.theme-toggle:hover {
    background: var(--theme-btn-hover-bg);
    color: var(--theme-btn-hover-text);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.6);
}

.theme-toggle i {
    color: inherit !important;
    font-size: 18px !important;
    transition: all 0.4s ease;
    position: absolute;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .icon-sun { opacity: 0; transform: translate(-50%, -50%) rotate(180deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }

[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: translate(-50%, -50%) rotate(-180deg) scale(0.5); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--mobile-menu-btn-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* ============================================================
   SIDEBAR (پنل داشبورد)
   ============================================================ */
.sidebar {
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--sidebar-bg);
    border-left: 1px solid var(--sidebar-border);
    position: fixed;
    right: 0;
    top: 70px;
    overflow-y: auto;
    box-shadow: var(--sidebar-shadow);
    transition: transform 0.3s ease-in-out, background 0.35s ease;
    z-index: 999;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: var(--sidebar-scrollbar-track); }
.sidebar::-webkit-scrollbar-thumb { background: var(--sidebar-scrollbar-thumb); border-radius: 10px; }

.profile-box {
    text-align: center;
    padding: 28px 20px;
    border-bottom: 1px solid var(--profile-border);
    background: var(--profile-bg);
    position: relative;
}

.profile-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-light));
}

.profile-box img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--brand-gold);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
    object-fit: cover;
}

.profile-box h3 {
    margin: 15px 0 5px;
    font-size: 17px;
    color: var(--profile-name);
    font-weight: 700;
}

.profile-box p {
    margin: 0;
    font-size: 13px;
    color: var(--profile-phone);
}

.online-status {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--success-light);
    border-radius: 50%;
    margin-left: 5px;
}

/* ============================================================
   MENU
   ============================================================ */
.menu { list-style: none; padding: 10px 0; margin: 0; }
.menu > li { position: relative; }

.menu > li > a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--menu-text);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: all 0.25s;
    cursor: pointer;
    border-bottom: 1px solid var(--menu-border);
    position: relative;
    overflow: hidden;
}

.menu > li > a::before {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--brand-gold);
    transform: translateX(10px);
    transition: transform 0.3s;
}

.menu > li > a:hover {
    background: var(--menu-hover-bg);
    color: var(--menu-text-hover);
    padding-right: 24px;
}

.menu > li > a:hover::before { transform: translateX(0); }

.icon {
    margin-left: 14px;
    font-size: 18px;
    color: var(--menu-icon);
    width: 24px;
    text-align: center;
}

.menu > li > a:hover .icon { color: var(--menu-icon-hover); }

.menu > li.has-sub > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    color: var(--menu-icon);
    transition: transform 0.3s;
}

.menu > li.has-sub.active > a::after {
    transform: rotate(180deg);
    color: var(--menu-icon-hover);
}

.submenu {
    display: none;
    background: var(--submenu-bg);
    border-right: 2px solid var(--brand-gold);
    animation: slideDown 0.3s ease;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, background 0.35s ease;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu > li.has-sub.active > .submenu {
    display: block;
    max-height: 2000px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.submenu li { position: relative; list-style: none; }

.submenu li a {
    display: block;
    padding: 11px 45px;
    color: var(--submenu-text);
    text-decoration: none;
    font-size: 13.5px;
    border-bottom: 1px solid var(--submenu-border);
    transition: all 0.25s;
    position: relative;
}

.submenu li a::before {
    content: '›';
    position: absolute;
    right: 25px;
    color: var(--brand-gold);
    font-size: 16px;
    transition: transform 0.25s;
}

.submenu li a:hover {
    background: var(--submenu-active-bg);
    color: var(--submenu-text-hover);
    padding-right: 50px;
}

.submenu li a:hover::before {
    transform: translateX(-4px);
    color: var(--submenu-text-hover);
}

.menu li.active > a {
    background: var(--menu-active-bg) !important;
    color: var(--menu-active-text) !important;
    border-radius: 0 !important;
    padding-right: 24px;
    font-weight: 600;
}

.menu li.active > a::before { transform: translateX(0) !important; }
.menu li.active > a i { color: var(--menu-active-text) !important; }

.menu .has-sub.active > a {
    background: var(--menu-active-bg) !important;
    color: var(--menu-active-text) !important;
}

.menu .has-sub.active > a i { color: var(--menu-active-text) !important; }

.menu .submenu li a.active {
    background: var(--submenu-active-bg) !important;
    color: var(--submenu-active-text) !important;
    font-weight: 600 !important;
    border-right: 3px solid var(--brand-gold) !important;
    padding-right: 48px;
}

.menu .submenu li a.active::before {
    transform: translateX(-4px);
    color: var(--submenu-active-text);
}

.logout {
    background: rgba(183, 28, 28, 0.12) !important;
    color: #b71c1c !important;
    margin-top: 8px;
}

.logout:hover {
    background: rgba(183, 28, 28, 0.2) !important;
    color: #ffffff !important;
}

.logout .icon { color: #b71c1c !important; }

[data-theme="dark"] .logout {
    background: rgba(183, 28, 28, 0.2) !important;
    color: #ff9a9a !important;
}

[data-theme="dark"] .logout:hover {
    background: rgba(183, 28, 28, 0.35) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .logout .icon { color: #ff9a9a !important; }

/* ============================================================
   MAIN CONTENT (پنل داشبورد)
   ============================================================ */
.main-content {
    margin-right: 280px;
    margin-top: 70px;
    padding: 30px;
    min-height: calc(100vh - 70px);
    background: var(--bg-primary);
    transition: margin-right 0.3s ease, background 0.35s ease;
}

.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 30, 61, 0.7);
    z-index: 998;
    backdrop-filter: blur(3px);
}

.overlay.active { display: block; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-gold);
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    color: var(--brand-gold);
    position: relative;
}

.page-header h2::after {
    content: '';
    position: absolute;
    bottom: -17px;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--brand-gold);
    border-radius: 2px;
}

[data-theme="dark"] .page-header h2 { color: var(--brand-gold-light); }

/* ============================================================
   STATS CARDS
   ============================================================ */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-right: 4px solid var(--brand-gold);
    border-radius: 14px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-right-color: var(--brand-blue);
}

.stat-card i {
    font-size: 38px;
    color: var(--brand-gold);
    margin-bottom: 15px;
    display: inline-block;
}

.stat-card h3 {
    margin: 0 0 5px;
    font-size: 30px;
    color: var(--brand-gold);
    font-weight: 800;
}

[data-theme="dark"] .stat-card h3 { color: var(--brand-gold-light); }

.stat-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-section {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.form-section h4 {
    font-size: 18px;
    color: var(--brand-gold);
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

[data-theme="dark"] .form-section h4 { color: var(--brand-gold-light); }
.form-section h4 i { color: var(--brand-gold); }

.form-section hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 15px 0;
    opacity: 0.5;
}

.section-title {
    font-size: 19px;
    color: var(--brand-gold);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-gold);
    font-weight: 700;
}

[data-theme="dark"] .section-title { color: var(--brand-gold-light); }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--input-text) !important;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    caret-color: var(--brand-gold);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-gold);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
    color: var(--input-text) !important;
}

.form-control::placeholder {
    color: var(--input-placeholder);
    opacity: 1;
}

.form-control:not(:placeholder-shown) { color: var(--input-text) !important; }

.form-control:disabled {
    background: var(--bg-primary);
    opacity: 0.7;
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23c9a84c' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 40px;
    appearance: none;
    -webkit-appearance: none;
}

textarea.form-control { min-height: 80px; resize: vertical; }

input[type="file"] {
    background: var(--input-bg);
    color: var(--input-text);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    width: 100%;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: var(--brand-gold);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    margin-left: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand-gold);
}

.checkbox-group,
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold));
    transform: translateY(-2px);
    color: var(--brand-dark);
}

.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-success {
    background: linear-gradient(135deg, var(--success-light), var(--success-color));
    color: white;
    box-shadow: 0 4px 15px rgba(26, 122, 74, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-success:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-danger {
    background: linear-gradient(135deg, var(--danger-light), var(--danger-color));
    color: white;
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-light), var(--warning-color));
    color: white;
    box-shadow: 0 4px 15px rgba(214, 137, 16, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-info {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-dark));
    color: #ffffff;
    border: 1px solid var(--brand-gold);
}

.btn-info:hover {
    background: linear-gradient(135deg, var(--brand-dark), #06152b);
    color: var(--brand-gold-light);
}

.btn-print {
    background: linear-gradient(135deg, var(--btn-summary-bg), var(--btn-summary-hover));
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-print:hover {
    background: linear-gradient(135deg, var(--btn-summary-hover), #4a3db5);
    transform: translateY(-2px);
    color: #fff;
}

.btn-sm { padding: 6px 14px; font-size: 12px; }

.btn-link {
    background: transparent;
    color: var(--brand-gold);
    text-decoration: underline;
    padding: 4px 8px;
}

.btn-link:hover { color: var(--brand-gold-dark); }

.btn-outline-primary {
    background: transparent;
    color: var(--brand-gold);
    border: 1px solid var(--brand-gold);
}

.btn-outline-primary:hover {
    background: var(--brand-gold);
    color: var(--brand-dark);
}

/* ============================================================
   TABLE STYLES
   ============================================================ */
.table-container {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 25px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.table-search { width: 300px; position: relative; }

.table-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--input-text) !important;
    font-size: 14px;
    font-family: inherit;
}

.table-search input:focus {
    outline: none;
    border-color: var(--brand-gold);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.table-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-gold);
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar { height: 6px; }
.table-responsive::-webkit-scrollbar-track { background: var(--scrollbar-track); border-radius: 10px; }
.table-responsive::-webkit-scrollbar-thumb { background: var(--brand-gold-dark); border-radius: 10px; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--table-row-bg);
    color: var(--text-primary);
}

.data-table th {
    background: var(--table-header-bg);
    color: var(--table-header-text);
    padding: 12px 8px;
    text-align: right;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 2px solid var(--table-header-border);
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--table-border);
    color: var(--text-primary);
    font-size: 13px;
    background: var(--table-row-bg);
}

.data-table tbody tr:nth-child(even) td { background: var(--table-row-alt); }
.data-table tbody tr:hover td { background: var(--table-row-hover); }
.data-table tbody tr:hover td:first-child { border-right: 3px solid var(--brand-gold); }

/* جدول فایل‌ها */
.uploaded-files-table { margin-top: 10px; width: 100%; }

.uploaded-files-table table {
    width: 100%;
    font-size: 13px;
    background: var(--bg-tertiary);
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.uploaded-files-table table th {
    background: var(--table-header-bg);
    color: var(--table-header-text);
    padding: 8px;
    text-align: right;
    border-bottom: 2px solid var(--table-header-border);
    font-weight: 700;
}

.uploaded-files-table table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* ============================================================
   FILTER PANEL
   ============================================================ */
.filter-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--card-border);
    display: none;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.filter-panel.active { display: block; }

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.filter-header h4 {
    margin: 0;
    color: var(--brand-gold);
    font-size: 16px;
    font-weight: 700;
}

[data-theme="dark"] .filter-header h4 { color: var(--brand-gold-light); }

.filter-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-tag {
    background: rgba(201, 168, 76, 0.15);
    color: var(--brand-gold-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    font-weight: 600;
}

[data-theme="dark"] .filter-tag { color: var(--brand-gold-light); }

.filter-tag i { cursor: pointer; font-size: 10px; }

/* ============================================================
   TABLE STATS
   ============================================================ */
.table-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.stat-item i { color: var(--brand-gold); }

.stat-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================================
   STATUS / BADGES
   ============================================================ */
.status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(26, 122, 74, 0.12);
    color: var(--success-color);
    border: 1px solid rgba(26, 122, 74, 0.25);
}

.status-inactive {
    background: rgba(183, 28, 28, 0.12);
    color: var(--danger-color);
    border: 1px solid rgba(183, 28, 28, 0.25);
}

.status-pending {
    background: rgba(214, 137, 16, 0.12);
    color: var(--warning-color);
    border: 1px solid rgba(214, 137, 16, 0.25);
}

.badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge.bg-warning { background: rgba(214, 137, 16, 0.15) !important; color: var(--warning-color) !important; border: 1px solid rgba(214, 137, 16, 0.3); }
.badge.bg-success { background: rgba(26, 122, 74, 0.15) !important; color: var(--success-color) !important; border: 1px solid rgba(26, 122, 74, 0.3); }
.badge.bg-info { background: rgba(23, 162, 184, 0.15) !important; color: #17a2b8 !important; border: 1px solid rgba(23, 162, 184, 0.3); }
.badge.bg-primary { background: rgba(201, 168, 76, 0.2) !important; color: var(--brand-gold-dark) !important; border: 1px solid rgba(201, 168, 76, 0.4); }

[data-theme="dark"] .badge.bg-primary { color: var(--brand-gold-light) !important; }

.badge.badge-dark { background-color: var(--badge-dark-bg) !important; color: #fff !important; }

/* ============================================================
   ACTION BUTTONS
   ============================================================ */
.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    color: white;
    font-size: 13px;
    text-decoration: none;
    padding: 0;
}

.action-edit { background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark)); color: #ffffff; }
.action-delete { background: linear-gradient(135deg, var(--danger-light), var(--danger-color)); }
.action-view { background: linear-gradient(135deg, var(--success-light), var(--success-color)); }

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px currentColor;
}

.action-btn.action-summary {
    background: var(--btn-summary-bg) !important;
    color: #fff !important;
    width: auto;
    padding: 5px 10px;
    border-radius: 5px;
}

.action-btn.action-summary:hover {
    background: var(--btn-summary-hover) !important;
    transform: scale(1.05);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info { color: var(--text-secondary); font-size: 13.5px; }

.pagination { display: flex; gap: 5px; list-style: none; padding: 0; margin: 0; }

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
}

.page-link:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--brand-gold);
    color: var(--brand-gold-dark);
}

[data-theme="dark"] .page-link:hover { color: var(--brand-gold-light); }

.page-link.active {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
    color: #ffffff;
    border-color: var(--brand-gold);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-primary);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress {
    width: 100%;
    height: 10px;
    background: var(--bg-primary);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-gold-dark), var(--brand-gold), var(--brand-gold-light));
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* ============================================================
   INFO CARDS
   ============================================================ */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.info-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 25px;
    border: 1px solid var(--card-border);
    border-right: 4px solid var(--brand-gold);
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-right-color: var(--brand-blue);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.info-card-header i {
    font-size: 26px;
    color: var(--brand-gold);
    background: rgba(201, 168, 76, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.info-card-header h4 {
    margin: 0;
    color: var(--brand-gold);
    font-size: 17px;
    font-weight: 700;
}

[data-theme="dark"] .info-card-header h4 { color: var(--brand-gold-light); }

.info-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    background: none;
    border-radius: 0;
}

.info-stats .stat-item:last-child { border-bottom: none; }

.info-stats .stat-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-stats .stat-label i {
    color: var(--brand-gold);
    width: 20px;
    text-align: center;
}

.info-stats .stat-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
}

.progress-small {
    width: 100px;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-small-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-light));
    border-radius: 3px;
}

/* ============================================================
   UPTIME COUNTER
   ============================================================ */
.uptime-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.uptime-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px var(--success-color);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    position: relative;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
    font-size: 14px;
}

.alert-success {
    background: rgba(26, 122, 74, 0.1);
    color: var(--success-color);
    border-color: rgba(26, 122, 74, 0.3);
}

[data-theme="dark"] .alert-success {
    background: rgba(39, 174, 96, 0.15);
    color: #2ed573;
    border-color: rgba(39, 174, 96, 0.3);
}

.alert-danger {
    background: rgba(183, 28, 28, 0.1);
    color: var(--danger-color);
    border-color: rgba(183, 28, 28, 0.3);
}

[data-theme="dark"] .alert-danger {
    background: rgba(231, 76, 60, 0.15);
    color: #ff4757;
    border-color: rgba(231, 76, 60, 0.3);
}

.alert-warning {
    background: rgba(214, 137, 16, 0.1);
    color: var(--warning-color);
    border-color: rgba(214, 137, 16, 0.3);
}

[data-theme="dark"] .alert-warning {
    background: rgba(243, 156, 18, 0.15);
    color: #ffa502;
    border-color: rgba(243, 156, 18, 0.3);
}

.alert-info {
    background: rgba(201, 168, 76, 0.1);
    color: var(--brand-gold-dark);
    border-color: rgba(201, 168, 76, 0.3);
}

[data-theme="dark"] .alert-info {
    background: rgba(201, 168, 76, 0.15);
    color: var(--brand-gold-light);
    border-color: rgba(201, 168, 76, 0.3);
}

.alert .btn-close {
    margin-right: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}

.alert .btn-close:hover { opacity: 1; }

/* ============================================================
   STEP WIZARD
   ============================================================ */
.step-wizard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--step-wizard-bg);
    border-radius: 10px;
    position: relative;
    border: 1px solid var(--step-wizard-border);
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.step-wizard::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 3%;
    right: 3%;
    height: 3px;
    background: var(--step-line-bg);
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    flex: 1;
    text-decoration: none;
    min-width: 60px;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--step-number-bg);
    color: var(--step-number-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step-item.active .step-number {
    background: var(--step-number-active-bg);
    color: var(--step-number-active-text);
    box-shadow: var(--step-number-active-shadow);
}

.step-item.done .step-number {
    background: var(--step-number-done-bg);
    color: var(--step-number-done-text);
}

.step-label {
    margin-top: 6px;
    font-size: 11px;
    color: var(--step-label-text);
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

.step-item.active .step-label {
    color: var(--step-label-active-text);
    font-weight: bold;
}

.step-item.done .step-label { color: var(--step-label-done-text); }

.step-content {
    background: var(--step-content-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--step-content-shadow);
    border: 1px solid var(--step-content-border);
    min-height: 400px;
}

.form-actions .btn {
    min-width: 120px;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
}

/* ============================================================
   PARTY / EVIDENCE CARDS (مرحله ۱)
   ============================================================ */
.party-section { margin-bottom: 25px; }

.party-section h5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 16px;
    padding-bottom: 8px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--brand-gold);
}

.party-section h5 .btn { font-size: 12px; padding: 6px 14px; }

.party-item,
.evidence-item {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.party-item label,
.evidence-item label {
    color: var(--text-primary) !important;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 600;
}

.party-item h6,
.evidence-item h6 {
    color: var(--warning-color) !important;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* ============================================================
   ARBITRATOR CARDS (مرحله ۲)
   ============================================================ */
.arbitrator-item {
    background: var(--arb-card-bg) !important;
    border: 1px solid var(--arb-card-border) !important;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--arb-card-shadow);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.arbitrator-item label {
    color: var(--text-primary) !important;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 600;
}

.arbitrator-number {
    background: var(--arb-number-bg) !important;
    color: var(--arb-number-text) !important;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.arbitrator-date-box {
    background: var(--arb-date-bg);
    border: 1px solid var(--arb-date-border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--arb-date-text);
    font-weight: bold;
    min-height: 38px;
    display: flex;
    align-items: center;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.arbitrator-item.duplicate {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.count-valid { color: var(--success-color); font-weight: bold; }
.count-invalid { color: var(--danger-color); font-weight: bold; }

[data-theme="dark"] .count-valid { color: #2ed573; }
[data-theme="dark"] .count-invalid { color: #ff4757; }

/* ============================================================
   CASE INFO BOXES
   ============================================================ */
.case-header-info {
    background: var(--case-header-info-bg);
    border: 2px solid var(--case-header-info-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.case-info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    background: var(--case-info-box-bg);
    border: 1px solid var(--case-info-box-border);
    border-radius: 10px;
    height: 100%;
}

.case-info-box .info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand-gold);
    font-size: 22px;
}

.case-info-box .info-label {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 4px;
}

.case-info-box .info-value {
    color: var(--brand-gold);
    font-size: 18px;
    font-weight: bold;
}

[data-theme="dark"] .case-info-box .info-value { color: var(--brand-gold-light); }

.case-info-box .info-value.number {
    direction: ltr;
    font-family: 'Courier New', monospace;
    letter-spacing: 1.5px;
    font-size: 20px;
    text-align: left;
}

/* ============================================================
   DATE PICKER
   ============================================================ */
.datepicker-wrapper { position: relative; }

.datepicker-wrapper .calendar-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-gold);
    pointer-events: none;
}

.persian-date-input { padding-left: 40px !important; }

/* ============================================================
   COUNCIL FEE SECTION (مرحله ۱)
   ============================================================ */
.council-fee-section {
    background: var(--card-bg);
    border: 2px solid var(--warning-color);
    border-radius: 14px;
    padding: 25px;
    margin-top: 30px;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.council-fee-section h4 { color: var(--warning-color); }

.council-fee-table {
    width: 100%;
    color: var(--text-primary);
    font-size: 13px;
    border-collapse: collapse;
}

.council-fee-table th {
    padding: 8px;
    text-align: right;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.council-fee-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.council-fee-total {
    margin-top: 15px;
    padding: 15px;
    background: var(--case-info-box-bg);
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--warning-color);
}

.council-fee-total .label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.council-fee-total .value {
    color: var(--warning-color);
    font-size: 28px;
    font-weight: bold;
    direction: ltr;
}

.council-fee-total .value small {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================================
   ☀️🌙 مرحله ۳: کارت قبولی داور (Arbitrator Acceptance)
   ============================================================ */
.arbitrator-acceptance-card {
    background: var(--acc-card-bg);
    border: 2px solid var(--acc-card-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.arbitrator-acceptance-card.status-pending { border-color: var(--acc-card-pending); }
.arbitrator-acceptance-card.status-accepted { border-color: var(--acc-card-accepted); }
.arbitrator-acceptance-card.status-rejected { border-color: var(--acc-card-rejected); }

/* هدر کارت */
.acc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--acc-header-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    background: transparent;
}

.acc-card-header h3 {
    color: var(--acc-message-title);
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.acc-card-header .arbitrator-name {
    color: var(--acc-name-color);
    margin-right: 10px;
    font-weight: 700;
}

.acc-card-header small {
    color: var(--text-secondary);
    font-size: 13px;
}

/* بج‌های وضعیت کارت */
.acc-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.acc-status-badge.pending {
    background: var(--acc-status-pending-bg);
    color: var(--acc-status-pending-text);
    border: 1px solid var(--acc-status-pending-text);
}

.acc-status-badge.accepted {
    background: var(--acc-status-accepted-bg);
    color: var(--acc-status-accepted-text);
    border: 1px solid var(--acc-status-accepted-text);
}

.acc-status-badge.rejected {
    background: var(--acc-status-rejected-bg);
    color: var(--acc-status-rejected-text);
    border: 1px solid var(--acc-status-rejected-text);
}

/* پیام ارجاع */
.acc-referral-message {
    background: var(--acc-message-bg);
    border: 1px solid var(--acc-message-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.acc-referral-title {
    text-align: center;
    color: var(--acc-message-title);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.acc-referral-text {
    text-align: center;
    color: var(--acc-message-text);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.acc-referral-info {
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

.acc-referral-info .row { align-items: center; }

.acc-referral-info strong.label {
    color: var(--text-secondary);
    font-weight: 600;
}

.acc-referral-info .value {
    color: var(--acc-message-title);
    font-weight: bold;
    margin-right: 10px;
}

.acc-referral-info .value.date { color: var(--success-color); }

[data-theme="dark"] .acc-referral-info .value.date { color: #2ed573; }

/* چک‌لیست بررسی */
.acc-checklist-section {
    background: var(--acc-checklist-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: background 0.35s ease;
}

.acc-checklist-title {
    color: var(--acc-checklist-title);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--acc-checklist-border);
    padding-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.acc-checklist-count-badge {
    background: var(--brand-gold);
    color: #ffffff;
    font-size: 12px;
    margin-right: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
}

[data-theme="dark"] .acc-checklist-count-badge {
    background: var(--brand-gold);
    color: var(--brand-dark);
}

/* آیتم چک‌لیست */
.acc-checklist-item {
    background: var(--acc-checklist-item-bg);
    border: 1px solid var(--acc-checklist-item-border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.acc-checklist-item:hover {
    background: var(--bg-hover);
    border-color: var(--brand-gold);
}

.acc-checklist-item.checked {
    background: var(--acc-checklist-item-checked-bg);
    border-color: var(--acc-checklist-item-checked-border);
}

.acc-checklist-item .checklist-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.acc-checklist-item .checklist-checkbox {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--success-color);
    flex-shrink: 0;
}

.acc-checklist-item .checklist-checkbox:disabled { cursor: not-allowed; }

.acc-checklist-item .checklist-label {
    color: var(--acc-checklist-label);
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.6;
    flex: 1;
    transition: color 0.35s ease;
}

.acc-checklist-item.checked .checklist-label {
    color: var(--acc-checklist-label-checked);
}

.acc-checklist-item .checklist-label.disabled { cursor: default; }

/* اطلاعات داخل چک‌لیست */
.acc-info-box {
    background: var(--acc-info-box-bg);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    transition: background 0.35s ease;
}

.acc-info-block {
    padding: 12px;
    background: var(--acc-info-box-inner);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background 0.35s ease;
}

.acc-info-block:last-child { margin-bottom: 0; }

.acc-info-block-title {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.acc-info-row {
    padding: 8px 0;
    color: var(--acc-info-value);
    font-size: 13px;
    line-height: 1.8;
}

.acc-info-row .label {
    color: var(--acc-info-label);
    font-weight: 600;
    margin-left: 5px;
}

.acc-info-row .value {
    color: var(--acc-info-value);
    font-weight: 700;
}

/* نام تکمیل‌کننده */
.acc-completer-section { margin-bottom: 15px; }

.acc-completer-section label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.acc-completer-section input {
    background: var(--input-bg);
    color: var(--input-text);
    border: 1px solid var(--input-border);
    height: 40px;
}

.acc-completer-section input:read-only { opacity: 0.7; }

/* دکمه‌های تصمیم نهایی */
.acc-decision-section {
    border-top: 2px solid var(--acc-decision-border);
    padding-top: 20px;
    margin-top: 20px;
}

.acc-decision-title {
    color: var(--acc-decision-title);
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.acc-decision-btn {
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
}

.acc-decision-hint {
    text-align: center;
    margin-top: 10px;
}

.acc-decision-hint small {
    color: var(--text-secondary);
    font-size: 12px;
}

/* نمایش وضعیت نهایی */
.acc-final-status {
    border-top: 2px solid var(--acc-decision-border);
    padding-top: 15px;
    margin-top: 20px;
}

.acc-final-status.accepted { border-top-color: var(--acc-card-accepted); }
.acc-final-status.rejected { border-top-color: var(--acc-card-rejected); }

.acc-final-status-box {
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.acc-final-status-box.accepted {
    background: var(--acc-status-accepted-bg);
    border: 1px solid var(--acc-status-accepted-text);
}

.acc-final-status-box.rejected {
    background: var(--acc-status-rejected-bg);
    border: 1px solid var(--acc-status-rejected-text);
}

.acc-final-status-box i {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.acc-final-status-box.accepted i { color: var(--acc-status-accepted-text); }
.acc-final-status-box.rejected i { color: var(--acc-status-rejected-text); }

.acc-final-status-box h5 {
    margin: 10px 0;
    font-size: 15px;
    font-weight: 700;
}

.acc-final-status-box.accepted h5 { color: var(--acc-status-accepted-text); }
.acc-final-status-box.rejected h5 { color: var(--acc-status-rejected-text); }

.acc-final-status-box small {
    color: var(--text-secondary);
    font-size: 12px;
}

/* دلیل رد */
.acc-rejection-reason {
    background: var(--acc-info-box-bg);
    border-radius: 8px;
    padding: 15px;
    border-right: 4px solid var(--acc-card-rejected);
    margin-top: 15px;
    text-align: right;
}

.acc-rejection-reason h6 {
    color: var(--acc-status-rejected-text);
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.acc-rejection-reason p {
    color: var(--text-primary);
    margin: 0;
    line-height: 1.9;
    white-space: pre-line;
    font-size: 13px;
}

/* اطلاعات پایین کارت */
.acc-meta-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.acc-meta-info small {
    color: var(--text-secondary);
    font-size: 12px;
}

.acc-meta-info strong {
    color: var(--acc-decision-title);
    font-weight: 700;
}

.acc-meta-info strong.date { color: var(--brand-gold); }

[data-theme="dark"] .acc-meta-info strong.date { color: var(--brand-gold-light); }

/* Modal رد پرونده */
.acc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--acc-modal-overlay);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.acc-modal-overlay.active { display: flex; }

.acc-modal-box {
    background: var(--acc-modal-bg);
    border: 1px solid var(--acc-modal-border);
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.acc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--acc-modal-border);
    background: var(--acc-modal-header-bg);
    border-radius: 15px 15px 0 0;
    transition: background 0.35s ease;
}

.acc-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--acc-status-rejected-text);
    font-weight: 700;
}

.acc-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.acc-modal-close:hover {
    background: rgba(231, 76, 60, 0.15);
    color: var(--acc-status-rejected-text);
}

.acc-modal-body { padding: 25px; }

.acc-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid var(--acc-modal-border);
    background: var(--acc-modal-footer-bg);
    border-radius: 0 0 15px 15px;
}

/* دلیل رد - اجباری */
.acc-reject-reason-textarea {
    background: var(--input-bg);
    color: var(--input-text);
    border: 1px solid var(--acc-status-rejected-text);
    resize: vertical;
    font-size: 14px;
    line-height: 1.7;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    min-height: 120px;
    font-family: inherit;
    transition: all 0.3s;
}

.acc-reject-reason-textarea:focus {
    outline: none;
    background: var(--bg-secondary);
    border-color: var(--acc-status-rejected-text);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    color: var(--input-text);
}

.acc-reject-required {
    color: var(--acc-status-rejected-text);
    font-size: 18px;
}

.acc-reject-hint {
    color: var(--acc-status-pending-text);
    font-weight: normal;
    font-size: 12px;
}

.acc-char-counter {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.acc-char-counter .hint {
    color: var(--text-secondary);
    font-size: 12px;
}

.acc-char-counter .count {
    color: var(--acc-status-pending-text);
    font-size: 12px;
    font-weight: 700;
}

.acc-char-counter .count.valid { color: var(--acc-status-accepted-text); }

/* Alert سفارشی برای modal رد */
.acc-modal-alert {
    background: var(--acc-status-rejected-bg);
    border: 1px solid var(--acc-status-rejected-text);
    color: var(--acc-status-rejected-text);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* Alert سفارشی (هشدار بدون داور) */
.acc-empty-warning {
    background: var(--acc-status-pending-bg);
    border: 1px solid var(--acc-status-pending-text);
    color: var(--acc-status-pending-text);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.acc-empty-warning i { color: var(--acc-status-pending-text); }

/* کلاس‌های کمکی فایل‌ها و کارت‌های طرفین (مرحله ۳) */
.acc-file-chip {
    display: inline-block;
    margin: 2px 5px 2px 0;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.acc-party-detail {
    margin-bottom: 10px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.acc-party-detail:last-child { margin-bottom: 0; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--brand-gold-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-gold); }

/* ============================================================
   TEXT UTILITIES
   ============================================================ */
.text-muted { color: var(--text-muted) !important; opacity: 0.85; }
.text-center { text-align: center; }
.text-end { text-align: left; }
.text-start { text-align: right; }
.w-100 { width: 100% !important; }
.float-left { float: left !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.me-auto { margin-left: auto !important; }
.me-0 { margin-left: 0 !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.p-4 { padding: 1.5rem !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.rounded-4 { border-radius: 16px !important; }
.list-unstyled { list-style: none; padding: 0; }
.bg-danger.bg-opacity-10 { background: rgba(183, 28, 28, 0.1) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-success { color: var(--success-color) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .sidebar { width: 250px; }
    .main-content { margin-right: 250px; }
    .info-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 992px) {
    .mobile-menu-btn { display: block; }
    .sidebar { transform: translateX(100%); width: 280px; }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-right: 0; padding: 20px; }
    .search-box { display: none; }
    .table-header { flex-direction: column; align-items: stretch; }
    .table-search { width: 100%; }
    .filter-body { grid-template-columns: 1fr; }
    .table-container { padding: 15px; border-radius: 10px; }
}

@media (max-width: 768px) {
    .header { height: 60px; padding: 0 12px; }
    .sidebar { top: 60px; height: calc(100vh - 60px); }
    .main-content { margin-top: 60px; padding: 15px; }
    .header-right span { font-size: 14px; }
    .header-left { gap: 12px; }
    .header-left i { font-size: 19px; }
    .theme-toggle { width: 36px; height: 36px; }
    .theme-toggle i { font-size: 15px !important; }
    .form-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 8px 6px; }
    .stats-cards { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .stat-card { padding: 18px; }
    .stat-card h3 { font-size: 22px; }
    .table-stats { flex-direction: column; gap: 10px; }
    .table-stats .stat-item { justify-content: space-between; }
    .pagination-container { flex-direction: column; align-items: stretch; gap: 10px; }
    .pagination { justify-content: center; flex-wrap: wrap; }
    .info-cards { grid-template-columns: 1fr; }
    .info-stats .stat-item { flex-direction: column; align-items: flex-start; gap: 5px; }
    .progress-small { width: 100%; }
    .page-header { flex-direction: column; align-items: stretch; gap: 15px; }
    .page-header .form-actions { width: 100%; justify-content: center; }
    .page-header .form-actions .btn { flex: 1; }
    .step-wizard { padding: 10px; }
    .step-wizard::before { display: none; }
    .step-item { min-width: 40px; flex: 1 1 auto; }
    .step-number { width: 30px; height: 30px; font-size: 11px; }
    .step-label { font-size: 9px; white-space: normal; }
    .form-actions .btn { min-width: 80px; padding: 8px 12px; font-size: 13px; }
    .party-section h5 { flex-direction: column; align-items: flex-start; }

    /* مرحله ۳ */
    .arbitrator-acceptance-card { padding: 15px; }
    .acc-card-header h3 { font-size: 16px; }
    .acc-referral-title { font-size: 16px; }
    .acc-referral-text { font-size: 14px; }
    .acc-checklist-item { padding: 12px; }
    .acc-checklist-item .checklist-label { font-size: 13px; }
    .acc-decision-btn { padding: 12px; font-size: 14px; }
    .acc-modal-box { margin: 10px; }
    .acc-modal-header, .acc-modal-body, .acc-modal-footer { padding: 15px; }

    /* صفحه اصلی سایت */
    .header-title h1 { font-size: 1.1rem; }
    .hero-content h2 { font-size: 1.6rem; }
    .hero-section { padding: 40px 0; text-align: center; }
    .hero-image { margin-top: 30px; }
    .search-box { margin-top: 10px; }
    .stat-item .number { font-size: 1.8rem; }
    .hero-btn-outline { margin-right: 0; margin-top: 10px; }
    .header-logo img { height: 55px; }
}

@media (max-width: 576px) {
    .sidebar { width: 100%; }
    .stats-cards { grid-template-columns: 1fr; }
    .checkbox-group, .radio-group { flex-direction: column; gap: 10px; }
    .header-right span { display: none; }
    .action-buttons { flex-direction: column; }
    .action-btn { width: 30px; height: 30px; }
    .table-container { padding: 10px; }
    .data-table { font-size: 11px; }
    .data-table th, .data-table td { padding: 6px 4px; }
    .form-section { padding: 15px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .step-wizard,
    .form-actions,
    .page-header .form-actions,
    .header,
    .sidebar,
    .overlay,
    .theme-toggle,
    .notification-wrapper,
    .acc-modal-overlay,
    .acc-decision-section,
    .acc-completer-section,
    .checklist-checkbox,
    .top-notice,
    .navbar-custom,
    .footer {
        display: none !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 20px !important;
        background: #ffffff !important;
        color: #000000 !important;
    }

    .step-content,
    .form-section,
    .party-item,
    .evidence-item,
    .arbitrator-item,
    .arbitrator-acceptance-card {
        background: #ffffff !important;
        padding: 10px !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .alert { display: none !important; }

    input, select, textarea {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #999 !important;
    }

    .data-table th {
        background: #0a1e3d !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .data-table td {
        color: #000000 !important;
        background: #ffffff !important;
    }

    .acc-checklist-item {
        background: #ffffff !important;
        border: 1px solid #ddd !important;
    }
}