@font-face {
    font-family: 'IranYekan';
    src: url('../fonts/iran_yekan_medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-ultra-light: #eff6ff;
    --secondary: #0ea5e9;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --dark-2: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-ultra-light: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 40px rgba(26,86,219,0.15);
    --shadow-xl: 0 20px 60px rgba(26,86,219,0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    font-family: 'IranYekan', Tahoma, Arial, sans-serif;
    background: var(--gray-ultra-light);
    color: var(--dark);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-ultra-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.4; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { line-height: 1.8; }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: #e0af25; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: 'IranYekan', Tahoma, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26,86,219,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,86,219,0.45);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16,185,129,0.35);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: var(--white);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; border-radius: 50%; }
.form-group {
    margin-bottom: 20px;
}

.form-label {
    margin-top: 10px;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-2);
    font-size: 0.9rem;
}

.form-control {
        margin: 10px;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: 'IranYekan', Tahoma, sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,86,219,0.1);
}

.form-control::placeholder { color: var(--gray-light); }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 40px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .form-control { padding-right: 48px; }
.input-group-icon {
    position: absolute;
    right: 16px;
    color: var(--gray);
    pointer-events: none;
}
.card {
        margin-top: 10px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-lg); }

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-ultra-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--gray-ultra-light); }
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-ultra-light);
    color: var(--primary);
}
.sidebar {
    width: 260px;
    background: var(--white);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    box-shadow: var(--shadow);
    z-index: 9000;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    margin: 0 auto 12px;
    display: block;
    background: rgba(255,255,255,0.2);
    padding: 8px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.sidebar-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

.sidebar-nav {
    padding: 16px 12px;
}

.sidebar-nav-item {
    margin-bottom: 4px;
}

@media (max-width: 480px) {
    .mx{
      margin-bottom: 80px;
    }
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.95rem;
}

.sidebar-nav-link:hover, .sidebar-nav-link.active {
    background: var(--primary-ultra-light);
    color: var(--primary);
}

.sidebar-nav-link.active {
    background: linear-gradient(135deg, var(--primary-ultra-light) 0%, rgba(59,130,246,0.1) 100%);
    color: var(--primary);
    font-weight: 700;
}

.sidebar-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px 8px;
    margin-top: 8px;
}
.main-content {
    margin-right: 260px;
    min-height: 100vh;
    padding: 24px;
    transition: var(--transition);
}
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1e3a8a 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.8;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-ultra-light) 0%, rgba(59,130,246,0.15) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: rotate(-5deg) scale(1.1);
}

.feature-icon svg { color: var(--primary); transition: var(--transition); }
.feature-card:hover .feature-icon svg { color: var(--white); }
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    border-right: 4px solid var(--primary);
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue { background: var(--primary-ultra-light); color: var(--primary); }
.stat-icon.green { background: #ecfdf5; color: var(--success); }
.stat-icon.orange { background: #fffbeb; color: var(--warning); }
.stat-icon.red { background: #fef2f2; color: var(--danger); }

.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--dark); }
.stat-label { font-size: 0.85rem; color: var(--gray); margin-top: 4px; }
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th {
    background: var(--gray-ultra-light);
    color: var(--dark-2);
    font-weight: 700;
    padding: 14px 16px;
    text-align: right;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
    vertical-align: middle;
}

.table tbody tr:hover { background: var(--primary-ultra-light); }
.table tbody tr:last-child td { border-bottom: none; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-primary { background: var(--primary-ultra-light); color: var(--primary); }
.badge-success { background: #ecfdf5; color: var(--success); }
.badge-warning { background: #fffbeb; color: var(--warning); }
.badge-danger { background: #fef2f2; color: var(--danger); }
.badge-gray { background: var(--gray-ultra-light); color: var(--gray); }
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid transparent;
}

.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: var(--primary-ultra-light); border-color: #bfdbfe; color: #1e40af; }
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition);
}

.modal-overlay.show .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-ultra-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--gray);
}
.modal-close:hover { background: var(--danger); color: var(--white); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }
.progress {
    height: 8px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 100px;
    transition: width 0.6s ease;
}
.tabs {
    display: flex;
    gap: 4px;
    background: var(--gray-ultra-light);
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--gray);
    font-family: 'IranYekan', Tahoma, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.3s ease; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fadeInUp { animation: fadeInUp 0.5s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.5s ease forwards; }
.animate-slideInRight { animation: slideInRight 0.5s ease forwards; }
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-ultra-light);
}

.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary);
    background: var(--primary-ultra-light);
}

.upload-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-ultra-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gray { color: var(--gray); }
.text-muted { color: var(--gray-light); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-0 { padding: 0; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.w-full { width: 100%; }
.hidden { display: none; }
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 1px;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition);
    border-radius: var(--radius);
    min-width: 60px;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-nav-item svg { width: 24px; height: 24px; }

.bottom-nav-fab {
width: 66px;
    height: 66px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: inset -6px -1px 8px 3px rgb(0 0 0 / 48%);
    margin-top: -45px;
    transition: var(--transition);
}

.bottom-nav-fab:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(26,86,219,0.5); }
@media (max-width: 1024px) {
    .sidebar { transform: translateX(100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-right: 0; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .bottom-nav { display: block; }
    .main-content { padding: 16px; padding-bottom: 90px; }
    .hero-title { font-size: 1.8rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .navbar { padding: 0 16px; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .card-body { padding: 16px; }
    .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 95vh; }
    .modal-overlay { align-items: flex-end; padding: 0; }
}

@media (max-width: 480px) {
    .hero { padding: 48px 0; }
    .feature-card { padding: 24px 16px; }
    .btn-lg { padding: 14px 24px; font-size: 1rem; }
}
.datepicker-container {
    position: relative;
}

.datepicker-input {
    cursor: pointer;
}
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--gray-ultra-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.file-item:hover { border-color: var(--primary-light); background: var(--primary-ultra-light); }

.file-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon.pdf { background: #fef2f2; color: var(--danger); }
.file-icon.image { background: #ecfdf5; color: var(--success); }
.file-icon.doc { background: var(--primary-ultra-light); color: var(--primary); }

.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 0.8rem; color: var(--gray); }
.section-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.section-card-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-ultra-light) 0%, rgba(59,130,246,0.05) 100%);
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.notification-badge {
    position: relative;
}

.notification-badge .badge-dot {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--white);
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-box input {
    padding-right: 44px;
    background: var(--gray-ultra-light);
    border-color: transparent;
}

.search-box input:focus {
    background: var(--white);
    border-color: var(--primary);
}

.search-box-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
}
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-ultra-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gray-light);
}
.toast-container {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideInLeft 0.3s ease;
    border-right: 4px solid var(--primary);
}

.toast.success { border-right-color: var(--success); }
.toast.error { border-right-color: var(--danger); }
.toast.warning { border-right-color: var(--warning); }
.stepper {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    overflow-x: auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step.completed:not(:last-child)::after { background: var(--primary); }

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gray);
    z-index: 1;
    transition: var(--transition);
}

.step.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(26,86,219,0.2);
}

.step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.step-label { font-size: 0.8rem; color: var(--gray); font-weight: 600; text-align: center; }
.step.active .step-label { color: var(--primary); }
.step.completed .step-label { color: var(--success); }
input[type="file"].form-control,
input[type="file"] {
  color: transparent !important;
  position: relative;
  cursor: pointer;
  min-height: 48px;
  padding: 10px 14px !important;
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(14,165,233,.05)) !important;
  border: 1.5px dashed rgba(37,99,235,.35) !important;
  border-radius: 14px !important;
}
input[type="file"]::file-selector-button {
  font-family: inherit; border: 0; border-radius: 11px; padding: 9px 16px; margin-left: 12px;
  color: #fff; background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 8px 20px rgba(37,99,235,.22); cursor: pointer;
}
.file-upload-enhanced { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; width: 100%; border: 1.5px dashed rgba(37,99,235,.35); background: linear-gradient(135deg, rgba(37,99,235,.07), rgba(6,182,212,.05)); border-radius: 16px; padding: 12px; cursor: pointer; transition: .25s ease; }
.file-upload-enhanced:hover { border-color:#2563eb; transform: translateY(-1px); box-shadow:0 12px 30px rgba(15,23,42,.08); }
.file-upload-enhanced .file-pill { background:#2563eb;color:#fff;border-radius:12px;padding:10px 16px;font-weight:800;font-size:.86rem; }
.file-upload-enhanced .file-name { color:#64748b;font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.file-upload-enhanced.has-file .file-name { color:#0f172a;font-weight:800; }
.file-upload-hidden { position:absolute !important; opacity:0 !important; pointer-events:none !important; width:1px !important; height:1px !important; }
.money-input, input[data-money="1"] { direction:ltr !important; text-align:left !important; font-variant-numeric: tabular-nums; }
.card, .stat-card, .form-card { box-shadow: 0 16px 45px rgba(15,23,42,.06); }
.table-wrap, .responsive-table, .table-container { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
@media (max-width: 768px) {
  .grid, .grid-2, .grid-3, .page-grid, .form-row { grid-template-columns: 1fr !important; }
  .card-body { padding: 16px !important; }
  .btn, button.btn { width: 100%; justify-content:center; margin-bottom: 8px; }
  .file-upload-enhanced { grid-template-columns: 1fr; }
  .table-responsive-cards thead { display: none; }
  .table-responsive-cards,
  .table-responsive-cards tbody,
  .table-responsive-cards tr,
  .table-responsive-cards td {
    display: block;
    width: 100%;
  }
  .table-responsive-cards tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
  }
  .table-responsive-cards td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-ultra-light);
    font-size: 0.88rem;
    gap: 8px;
  }
  .table-responsive-cards td:last-child {
    border-bottom: none;
  }
  .table-responsive-cards td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--dark-2);
    flex-shrink: 0;
    font-size: 0.82rem;
    min-width: 80px;
  }
  .table-responsive-cards td .btn {
    width: auto;
    margin-bottom: 0;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .table-responsive-cards td form {
    display: inline;
  }
  .table-responsive-cards td form .btn {
    width: auto;
    margin-bottom: 0;
  }
}
jdp-container {
  z-index: 99999 !important;
  font-family: 'IranYekan', Tahoma, sans-serif !important;
  max-width: 300px;
}
@media (max-width: 480px) {
  jdp-container {
    max-width: 90vw;
    left: 5vw !important;
    right: 5vw !important;
  }
}
input[data-jdp] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231a56db' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 40px !important;
  cursor: pointer;
}
.notification-count-badge{position:absolute;top:-7px;left:-7px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:linear-gradient(135deg,#ef4444,#f97316);color:#fff;font-size:.68rem;font-weight:900;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(239,68,68,.32);border:2px solid #fff;line-height:1}
