:root {
    /* رنگ‌های اصلی */
    --primary: #0f172a;       /* سرمه‌ای تیره و رسمی */
    --secondary: #10b981;     /* سبز مدرن */
    --accent: #3b82f6;        /* آبی روشن */
    --bg-body: #f8fafc;       /* پس‌زمینه خیلی روشن */
    --bg-card: #ffffff;
    
    /* تایپوگرافی */
    --font-main: 'Vazirmatn', sans-serif;
    
    /* شعاع‌ها (Radius) - نکته کلیدی درخواست شما */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* سایه‌ها */
    --shadow-sm: 0 2px 4px rgba(148, 163, 184, 0.05);
    --shadow-md: 0 8px 16px -4px rgba(148, 163, 184, 0.1);
    --shadow-lg: 0 20px 40px -8px rgba(148, 163, 184, 0.15);
    --shadow-hover: 0 25px 50px -12px rgba(16, 185, 129, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-container {
    padding-bottom: 60px;
}

/* --- Header --- */
.modern-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-circle {
    width: 56px;
    height: 56px;
    background: #ecfdf5;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1fae5;
}

.logo-img {
    width: 36px;
    height: auto;
}

.header-titles h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.subtitle {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 400;
}

/* --- Language Switcher --- */
.language-switcher {
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--radius-full);
    display: flex;
    gap: 4px;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* --- Search Section --- */
.search-section {
    margin: 40px 0;
}

.search-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
    min-width: 250px;
}

.search-icon {
    color: #94a3b8;
    margin-left: 12px;
}

.search-box input {
    width: 100%;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    padding: 12px 0;
    outline: none;
    color: var(--primary);
}

.search-box input::placeholder {
    color: #cbd5e1;
}

.select-wrapper {
    position: relative;
    border-right: 1px solid #e2e8f0;
    margin-right: 8px;
    min-width: 180px;
}

.select-wrapper select {
    width: 100%;
    appearance: none;
    background: #f8fafc;
    border: none;
    padding: 12px 16px;
    padding-left: 40px;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    outline: none;
    transition: background 0.2s;
}

.select-wrapper select:hover {
    background: #f1f5f9;
}

.chevron-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

/* --- Grid & Cards --- */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.form-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(16, 185, 129, 0.2);
}

.card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.form-card:hover .card-icon-wrapper {
    transform: scale(1.05) rotate(3deg);
}

.card-icon {
    width: 32px;
    height: 32px;
}

.card-content {
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between; /* کلید کار همینجاست: فاصله حداکثری */
    align-items: center;
    margin-bottom: 16px;
    width: 100%;
}

.badge {
    font-size: 0.75rem; /* 12px */
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 99px; /* کاملا بیضی */
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.province-badge {
    background-color: #f1f1f1 !important; /* Slate-100 */
    color: #64748b; /* Slate-500 */
    border: 1px solid #e2e8f0;
    font-weight: 600;
    border-radius: 8px !important;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.cta-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s;
}

.cta-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s;
}

.form-card:hover .cta-text {
    color: var(--secondary);
}

.form-card:hover .cta-icon {
    background: var(--secondary);
    color: white;
    transform: translateX(-4px); /* حرکت فلش به چپ در حالت RTL */
}

.form-card:hover .province-badge {
    background-color: #e2e8f0;
    color: #475569;
}

/* --- Empty State --- */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px dashed #e2e8f0;
    color: #94a3b8;
}

.empty-state-icon {
    margin-bottom: 16px;
    color: #cbd5e1;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .language-switcher {
        width: 100%;
        justify-content: center;
    }
    
    .lang-btn {
        flex: 1;
    }
    
    .search-box {
        flex-direction: column;
        padding: 4px;
    }
    
    .select-wrapper {
        width: 100%;
        border-right: none;
        border-top: 1px solid #f1f5f9;
        margin-right: 0;
    }
    
    .input-wrapper {
        width: 100%;
        padding: 4px 12px;
    }
}
/* --- Pagination --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm); /* یا radius-full برای دایره‌ای */
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--secondary);
    color: var(--secondary);
    background: #f0fdf4;
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.2);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

.page-dots {
    color: #94a3b8;
    letter-spacing: 2px;
}

/* واکنش‌گرا */
@media (max-width: 480px) {
    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}
.search-box {
    /* ... کدهای قبلی ... */
    display: flex;
    flex-wrap: wrap; /* مهم: اگر جا نشد بره خط بعد */
    gap: 8px; /* فاصله بین المان‌ها */
}

.input-wrapper {
    flex: 2; /* جستجو فضای بیشتری بگیره */
    min-width: 200px;
}

.select-wrapper {
    flex: 1;
    min-width: 160px; /* حداقل عرض سلکت‌ها */
    border-right: none; /* بوردر قبلی رو حذف کن */
    border-left: 1px solid #e2e8f0; /* بوردر سمت چپ برای جداکننده */
}

/* در حالت راست چین (فارسی) */
[dir="rtl"] .select-wrapper {
    border-left: none;
    border-right: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column; /* در موبایل زیر هم باشن */
    }
    .select-wrapper {
        width: 100%;
        border: none;
        border-top: 1px solid #e2e8f0;
    }
}
