/* آگهیتا - استایل شبیه دیوار */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazir-Thin-FD.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazir-FD.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Medium (وزن 500) - عناوین متوسط و دکمه‌ها */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazir-Medium-FD.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazir-Bold-FD.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Bold (وزن 700) - تیترهای بزرگ و اعداد شمارنده */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazir-Black-FD.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
    --primary-color: #a62626;
    --secondary-color: #00bfd6;
    --success-color: #00a049;
    --danger-color: #e00;
    --warning-color: #ff9800;
    --bg-color: var(--tg-theme-bg-color, #f5f5f5);
    --card-bg: var(--tg-theme-secondary-bg-color, #fff);
    --text-color: var(--tg-theme-text-color, #333);
    --hint-color: var(--tg-theme-hint-color, #888);
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    direction: rtl;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 70px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* کانتینر اصلی */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 10px;
}

/* هدر */
.header {
    background: var(--card-bg);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
}

.header-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

/* هدر صفحات داخلی */
.page-header {
    background: var(--card-bg);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    z-index: 100;
    box-shadow: var(--shadow);
}

.page-header h1 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-align: center;
}

.page-header .back-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    text-align: center;
    color: var(--text-color);
}

.page-header .header-action {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap;
}

/* نوار جستجو */
.search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.06);
}

.search-container {
    position: relative;
    flex: 1;
}

.search-bar {
    width: 100%;
    padding: 12px 42px 12px 14px;
    font-size: 15px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    outline: none;
    transition: box-shadow 0.15s, border-color 0.15s;
    text-align: right;
}

.search-bar::placeholder {
    color: var(--hint-color);
    text-align: center;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hint-color);
    font-size: 18px;
}

.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.03);
    color: var(--text-color);
    font-size: 13px;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.06);
    white-space: nowrap;
}

.location-btn span:last-child {
    font-size: 12px;
    color: var(--hint-color);
}

@media (max-width: 380px) {
    .search-wrapper { padding: 6px; gap: 8px; }
    .search-bar { padding: 10px 36px 10px 10px; font-size: 14px; }
    .location-btn { padding: 6px 8px; font-size: 12px; }
}

/* دسته‌بندی‌ها */
.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.cat-card {
    background: var(--card-bg);
    text-align: center;
    padding: 15px 8px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:active {
    transform: scale(0.95);
}

.cat-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.cat-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}
a.btn-call {
    width: 50%;
}
/* سکشن عنوان */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5px;
    font-size: 14px;
    color: var(--hint-color);
}

.section-title span {
    font-weight: 600;
    color: var(--text-color);
}

/* Favorites */
.section-tabs { padding: 10px 4px; }
.tabs { display:flex; gap:8px; align-items:center; padding:6px 0; }
.tab { background:transparent; border:none; padding:10px 12px; border-radius:8px; font-weight:600; color:var(--hint-color); cursor:pointer; }
.tab.active { color:var(--primary-color); border-bottom:3px solid var(--primary-color);    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif; }

.favorites-list { display:flex; flex-direction:column; gap:10px; padding: 10px 0; }
.favorite-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    display:flex;
    flex-direction: column;
    gap:10px;
}
.favorite-row { display:flex; gap:12px; align-items:flex-start; }
.favorite-thumb { width:76px; height:76px; border-radius:8px; overflow:hidden; flex-shrink:0; background:#f0f0f0; display:flex; align-items:center; justify-content:center; }
.favorite-thumb img { width:100%; height:100%; object-fit:cover; }
.favorite-body { flex:1; }
.favorite-title { font-weight:700; font-size:15px; margin-bottom:6px; }
.favorite-meta { color:var(--hint-color); font-size:13px; }
.favorite-actions { display:flex; gap:8px; }
.favorite-actions .btn { flex:1; padding:10px; font-size:14px; }
.favorite-actions .btn-outline { background: transparent; border:1px solid var(--border-color); }

@media (max-width:420px) {
    .favorite-row { flex-direction:row; }
    .favorite-thumb { width:72px; height:72px; }
}

/* کارت آگهی */
.ads-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ad-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row-reverse;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ad-card:active {
    transform: scale(0.98);
}

.ad-image-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 40px;
}

.ad-info {
    padding: 12px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ad-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-price {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 700;
    margin: 8px 0;
}

.ad-price.negotiable {
    color: var(--hint-color);
    font-size: 14px;
}

.ad-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--hint-color);
}

.ad-meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* برچسب‌ها */
.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.badge-urgent {
    background: var(--danger-color);
    color: #fff;
}

.badge-new {
    background: var(--success-color);
    color: #fff;
}

/* دکمه‌ها */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-block {
    width: 100%;
}

.btn:active {
    transform: scale(0.97);
}

/* دکمه شناور */
.fab {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(166, 38, 38, 0.4);
    cursor: pointer;
    z-index: 99;
    border: none;
}

/* نوار پایین */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 5px 15px;
    color: var(--hint-color);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 22px;
}

/* صفحه جزئیات آگهی */
.ad-detail {
    background: var(--card-bg);
}

.image-slider {
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    overflow: hidden;
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}

.slider-dot.active {
    background: #fff;
}

.ad-detail-content {
    padding: 20px;
}

.ad-detail-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.6;
}

.ad-detail-price {
    font-size: 22px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.ad-detail-section {
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.ad-detail-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--hint-color);
}

.ad-detail-section p {
    font-size: 14px;
    line-height: 2;
    white-space: pre-wrap;
}

.ad-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--hint-color);
}

/* دکمه ثابت پایین */
.sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.btn-chat {
    background: var(--secondary-color);
    color: #fff;
    flex: 1;
    padding: 15px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    FONT-FAMILY: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
}

.btn-call {
    background: var(--success-color);
    color: #fff;
    flex: 1;
    padding: 15px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    text-decoration: none;
}

.btn-report {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* فرم‌ها */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 15px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary-color);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* آپلود عکس */
.image-upload {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.upload-box {
    aspect-ratio: 1;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    color: var(--hint-color);
    font-size: 12px;
    transition: border-color 0.2s;
}

.upload-box:hover {
    border-color: var(--primary-color);
}

.upload-box .icon {
    font-size: 28px;
}

.upload-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

/* استپ‌ها */
.steps {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
}

.step.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

.step-content {
    display: none;
    padding: 20px;
}

.step-content.active {
    display: block;
}

/* انتخاب دسته */
.cat-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cat-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.cat-list-item:active {
    background: var(--bg-color);
}

.cat-list-item-icon {
    font-size: 24px;
    margin-left: 12px;
}

.cat-list-item-name {
    flex: 1;
    font-size: 14px;
}

.cat-list-item-arrow {
    color: var(--hint-color);
}

/* چت */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    background: var(--bg-color);
}

.chat-header {
    background: var(--card-bg);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.chat-header img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.chat-ad-info {
    flex: 1;
}

.chat-ad-title {
    font-size: 13px;
    font-weight: 500;
}

.chat-ad-price {
    font-size: 12px;
    color: var(--secondary-color);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.message-sent {
    background: var(--primary-color);
    color: #fff;
    align-self: flex-start;
    border-bottom-right-radius: 4px;
}

.message-received {
    background: var(--card-bg);
    align-self: flex-end;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
}

.chat-input {
    background: var(--card-bg);
    padding: 12px 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transform: rotate(180deg);
}

/* پروفایل */
.profile-header {
    background: var(--card-bg);
    padding: 25px;
    text-align: center;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 15px;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
}

.profile-menu {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.profile-menu-text {
    flex: 1;
    font-size: 14px;
}

.profile-menu-badge {
    background: var(--danger-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* لیست خالی */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--hint-color);
}

.empty-state-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 14px;
}

/* لودینگ */
.loading {
    text-align: center;
    padding: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-text {
    font-size: 14px;
    color: var(--hint-color);
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-buttons .btn {
    flex: 1;
}

/* ریسپانسیو */
@media (max-width: 360px) {
    .categories {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cat-name {
        font-size: 10px;
    }
    
    .ad-image-wrapper {
        width: 110px;
        height: 110px;
    }
}

/* City picker modal styles */
.cities-container { background: transparent; }
.province-group { border-bottom: 1px solid var(--border-color); }
.province-header { display:flex; align-items:center; justify-content:space-between; padding:12px 8px; cursor:pointer; }
.province-header h4 { margin:0; font-size:14px; font-weight:600; }
.province-toggle { background:none; border:none; font-size:18px; color:var(--hint-color); }
.city-list { display:none; }
.city-list.show { display:block; }
.city-item { display:flex; align-items:center; padding:10px 12px; gap:10px; font-size:14px; }
.city-item + .city-item { border-top:1px solid var(--border-color); }
.city-item .check { width:22px; height:22px; border-radius:6px; border:1px solid var(--border-color); display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:14px; }
.city-item .check.checked { background: var(--primary-color); border-color: var(--primary-color); }
#selected-chips { padding-bottom: 6px; }
.chip { padding:6px 10px; border-radius:20px; border:1px solid var(--primary-color); color:var(--primary-color); display:inline-flex; gap:8px; align-items:center; background:transparent; }
.chip .remove { font-size:14px; cursor:pointer; }
.selected-count { font-weight:600; }
.modal-footer .btn-primary:disabled { opacity:0.6; pointer-events:none; }

/* Modal Overlay - برای گزارش تخلف */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay .modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--hint-color);
    cursor: pointer;
}
.modal-body {
    padding: 15px;
}
.modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

/* استایل فیلدهای فرم در مودال گزارش */
.filter-group {
    margin-bottom: 16px;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    outline: none;
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(166, 38, 38, 0.1);
}

.filter-select:hover,
.filter-input:hover {
    border-color: #999;
}

.filter-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 36px;
}

.filter-input::placeholder {
    color: var(--hint-color);
}

.filter-input:disabled,
.filter-select:disabled {
    background: #f9f9f9;
    cursor: not-allowed;
    opacity: 0.7;
}
