@font-face {
    font-family: vazir;
    src: url('../assets/font/Vazir.eot');
    src: url('../assets/font/Vazir.eot?#iefix') format('FontName-opentype'),
         url('../assets/font/Vazir.woff') format('woff'),
         url('../assets/font/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: vazir, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    direction: rtl;
}

/* ============================================
   کانتینر اصلی
   ============================================ */

.glass-container {
    width: 190%;
    max-width: 780px;
    padding: 15px;
    margin: 0 auto;
}

.glass-container, .glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 25px 20px;
}

/* ============================================
   صفحات احراز هویت (ورود و ثبت‌نام)
   ============================================ */

.auth-section {
    animation: fadeIn 0.5s ease;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 48px;
    color: #fff;
    margin-bottom: 10px;
}

.logo h2 {
    color: #fff;
    font-weight: 500;
    font-size: 24px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    z-index: 1;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 15px 45px 15px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus, 
.input-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-group select option {
    color: #333;
}

/* گروه جنسیت */
.gender-group {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    color: #fff;
}

.gender-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.gender-group input[type="radio"] {
    accent-color: #764ba2;
    width: 18px;
    height: 18px;
}

/* گروه تاریخ تولد */
.birth-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.birth-group select {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
}

.birth-group select option {
    color: #333;
}

/* دکمه اصلی */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    opacity: 0.9;
}

/* لینک تغییر صفحه */
.toggle-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-link:hover {
    color: #fff;
}

.toggle-link i {
    margin: 0 5px;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================
   داشبورد و کارت‌ها
   ============================================ */

.glass-card {
    margin-bottom: 20px;
}

.glass-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 18px;
}

.glass-card h3 i {
    margin-left: 10px;
}

/* ============================================
   جدول اقساط - حالت پیش‌فرض
   ============================================ */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    font-size: 14px;
    min-width: 500px;
}

table th {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 10px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

table tr.paid {
    background: rgba(46, 213, 115, 0.1);
}

table tr.overdue {
    background: rgba(255, 71, 87, 0.1);
}

/* وضعیت‌ها */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    white-space: nowrap;
    display: inline-block;
}

.status-paid {
    background: rgba(46, 213, 115, 0.3);
    color: #fff;
}

.status-pending {
    background: rgba(255, 165, 0, 0.3);
    color: #fff;
}

.status-overdue {
    background: rgba(255, 71, 87, 0.3);
    color: #fff;
}

/* تصویر رسید */
.receipt-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
}

.receipt-thumb:hover {
    transform: scale(1.05);
}

/* دکمه‌های اکشن */
.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-btn.danger {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.3);
}

.action-btn.danger:hover {
    background: rgba(255, 71, 87, 0.4);
}

/* ============================================
   پیام خالی بودن لیست
   ============================================ */

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state i {
    font-size: 56px;
    margin-bottom: 15px;
    display: block;
    color: rgba(255, 255, 255, 0.3);
}

.empty-state p {
    font-size: 16px;
    margin: 5px 0;
}

.empty-state .sub-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

/* ============================================
   بخش‌های تفکیک شده (وام، چک، قرض)
   ============================================ */

.debt-section {
    margin-bottom: 25px;
}

.section-header {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header i {
    margin-left: 8px;
}

.section-header .badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* آیتم‌های لیست */
.loan-item,
.check-item,
.debt-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-right: 3px solid transparent;
    transition: all 0.3s ease;
}

.loan-item {
    border-right-color: #4a90d9;
}

.check-item {
    border-right-color: #e67e22;
}

.debt-item {
    border-right-color: #27ae60;
}

.loan-item:hover,
.check-item:hover,
.debt-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px);
}

/* لوگو بانک */
.loan-item img,
.check-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   مودال
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px 20px !important;
}

.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* ============================================
   فیلدهای داینامیک (چک و قرض)
   ============================================ */

#checkFieldsContainer,
#debtFieldsContainer {
    margin-top: 15px;
}

#checkFieldsContainer > div,
#debtFieldsContainer > div {
    animation: slideDown 0.3s ease;
}

#checkFieldsContainer .input-group,
#debtFieldsContainer .input-group {
    margin-bottom: 10px;
}

#checkFieldsContainer .input-group input,
#debtFieldsContainer .input-group input {
    padding: 12px 45px 12px 15px;
    font-size: 14px;
}

/* اسکرول برای فیلدهای داینامیک */
#checkFieldsContainer::-webkit-scrollbar,
#debtFieldsContainer::-webkit-scrollbar {
    width: 5px;
}

#checkFieldsContainer::-webkit-scrollbar-track,
#debtFieldsContainer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#checkFieldsContainer::-webkit-scrollbar-thumb,
#debtFieldsContainer::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* ============================================
   ورودی تاریخ شمسی
   ============================================ */

.persian-date-input {
    direction: ltr !important;
    text-align: center;
    font-family: vazir, sans-serif;
}

.persian-date-input::placeholder {
    text-align: center;
}

/* ============================================
   استایل DatePicker شمسی
   ============================================ */

.persian-datepicker {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
    padding: 10px !important;
    width: 280px !important;
    font-family: vazir, sans-serif !important;
}

.persian-datepicker .picker-header {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 10px !important;
    color: #fff !important;
}

.persian-datepicker .picker-header .picker-title {
    color: #fff !important;
}

.persian-datepicker .picker-header .picker-title .picker-next,
.persian-datepicker .picker-header .picker-title .picker-prev {
    color: #fff !important;
}

.persian-datepicker .picker-content table td {
    padding: 5px !important;
}

.persian-datepicker .picker-content table td a {
    color: #333 !important;
    border-radius: 8px !important;
    padding: 5px 10px !important;
    font-family: vazir, sans-serif !important;
}

.persian-datepicker .picker-content table td a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #fff !important;
}

.persian-datepicker .picker-content table td a.selected {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #fff !important;
}

/* ============================================
   اعداد فارسی
   ============================================ */

.persian-number {
    font-family: vazir, sans-serif;
    direction: ltr;
    unicode-bidi: embed;
}

.persian-number-input {
    direction: ltr !important;
    text-align: right !important;
    font-family: vazir, sans-serif !important;
    letter-spacing: 1px;
}

.persian-number-input::placeholder {
    text-align: right;
    direction: rtl;
}

/* ============================================
   واکنش‌گرایی - موبایل
   ============================================ */

@media (max-width: 768px) {
    body {
        padding: 2px;
        align-items: flex-start;
    }
    
    .glass-container {
        padding: 5px;
        width: 100%;
        max-width: 780px;
    }
    
    .glass-container, .glass-card {
        padding: 15px 12px;
    }
    
    .glass-card {
        margin-bottom: 15px;
    }
    
    /* فرم‌ها */
    .birth-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .gender-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .input-group input, 
    .input-group select {
        font-size: 14px;
        padding: 12px 40px 12px 12px;
    }
    
    .btn-primary {
        font-size: 13px;
        padding: 12px;
    }
    
    /* جدول */
    table {
        font-size: 12px;
        min-width: 400px;
    }
    
    table th,
    table td {
        padding: 8px 5px;
        font-size: 11px;
    }
    
    table th {
        font-size: 11px;
    }
    
    /* بخش‌های تفکیک شده */
    .section-header {
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .section-header div {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .loan-item,
    .check-item,
    .debt-item {
        padding: 12px !important;
    }
    
    .loan-item > div:first-child,
    .check-item > div:first-child,
    .debt-item > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .loan-item > div:first-child > div:last-child,
    .check-item > div:first-child > div:last-child,
    .debt-item > div:first-child > div:last-child {
        flex-wrap: wrap;
        gap: 5px !important;
    }
    
    /* مودال */
    .modal-content {
        max-width: 100%;
        padding: 15px !important;
    }
    
    /* وضعیت خالی */
    .empty-state {
        padding: 30px 15px;
    }
    
    .empty-state i {
        font-size: 40px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .glass-container, .glass-card {
        padding: 12px 6px;
    }
    
    table {
        font-size: 10px;
        min-width: 320px;
    }
    
    table th,
    table td {
        padding: 6px 3px;
        font-size: 10px;
    }
    
    .status-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
    
    .receipt-thumb {
        width: 30px;
        height: 30px;
    }
    
    .action-btn {
        padding: 4px 8px;
        font-size: 12px;
        margin-top: -40px;
    }
    
    .logo i {
        font-size: 36px;
    }
    
    .logo h2 {
        font-size: 20px;
    }
}

/* ============================================
   رفع مشکل نمایش در ابتدا
   ============================================ */

#installmentsTable {
    min-height: 100px;
}

#installmentsTable .empty-state {
    display: block !important;
}

/* حالت بارگذاری */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.loading-state i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    animation: spin 1s linear infinite;
}

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




/* style.css - اضافه کردن استایل‌های مخصوص PWA */

/* حالت Full Screen در iOS */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* مخفی کردن نوار مرورگر در حالت Full Screen */
    .hide-on-pwa {
        display: none !important;
    }
}

/* استایل Splash Screen برای iOS */
.apple-splash {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.apple-splash img {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: splashFade 1s ease;
}

@keyframes splashFade {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}




/* style.css - دکمه حذف */
.delete-btn {
    background: rgba(255, 71, 87, 0.2) !important;
    border-color: rgba(255, 71, 87, 0.3) !important;
    color: #ff4757 !important;
    transition: all 0.3s ease !important;
}

.delete-btn:hover {
    background: rgba(255, 71, 87, 0.4) !important;
    transform: scale(1.05);
}

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

.delete-btn i {
    margin-left: 5px;
}

/* استایل برای دکمه غیرفعال */
.delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}




/* style.css - دکمه‌های فیلتر */
.btn-filter {
    padding: 10px 15px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-filter.active {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-filter i {
    margin-left: 8px;
}

/* استایل برای بخش‌های جاری و تسویه شده */
.pending-badge {
    background: rgba(255, 165, 0, 0.3);
    color: #ffa502;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.settled-badge {
    background: rgba(46, 213, 115, 0.3);
    color: #2ed573;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
}





/* ============================================
   رفع مشکل ارتفاع - نسخه نهایی با placeholder مخفی
   ============================================ */

#installmentsTable {
    min-height: 450px;
    position: relative;
    display: block;
}

/* placeholder مخفی برای حفظ ارتفاع */
#installmentsTable .height-holder {
    display: block;
    height: 450px;
    visibility: hidden;
    pointer-events: none;
}

/* محتوای اصلی که روی placeholder قرار می‌گیرد */
#installmentsTable .table-content {
    position: relative;
    z-index: 1;
    min-height: 450px;
}

/* ============================================
   حالت خالی اصلی
   ============================================ */

.empty-main-container {
    min-height: 450px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.empty-main-container .empty-icon {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

.empty-main-container .empty-title {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.empty-main-container .empty-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   حالت خالی برای هر بخش
   ============================================ */

.empty-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    min-height: 100px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.empty-section .empty-icon-small {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 8px;
}

.empty-section .empty-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   حالت خالی برای اقساط جاری و تسویه شده
   ============================================ */

.empty-state-container {
    min-height: 200px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.empty-state-container .empty-icon {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 10px;
}

.empty-state-container .empty-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.empty-state-container .empty-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   بخش‌های اصلی
   ============================================ */

.debt-section {
    margin-bottom: 25px;
}

.section-header {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 55px;
}

/* آیتم‌های لیست */
.loan-item,
.check-item,
.debt-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-right: 3px solid transparent;
    transition: all 0.3s ease;
}

.loan-item:last-child,
.check-item:last-child,
.debt-item:last-child {
    margin-bottom: 0;
}

/* ============================================
   واکنش‌گرایی
   ============================================ */

@media (max-width: 768px) {
    #installmentsTable {
        min-height: 350px;
    }
    
    #installmentsTable .height-holder {
        height: 350px;
    }
    
    #installmentsTable .table-content {
        min-height: 350px;
    }
    
    .empty-main-container {
        min-height: 350px;
        padding: 30px 15px;
    }
    
    .empty-main-container .empty-icon {
        font-size: 40px;
    }
    
    .empty-main-container .empty-title {
        font-size: 16px;
    }
    
    .empty-main-container .empty-subtitle {
        font-size: 13px;
    }
    
    .empty-state-container {
        min-height: 150px;
        padding: 20px 15px;
    }
    
    .empty-state-container .empty-icon {
        font-size: 32px;
    }
    
    .empty-state-container .empty-title {
        font-size: 14px;
    }
    
    .empty-state-container .empty-subtitle {
        font-size: 12px;
    }
    
    .loan-item,
    .check-item,
    .debt-item {
        padding: 12px;
    }
    
    .section-header {
        min-height: 45px;
        padding: 10px 15px;
    }
    
    .empty-section {
        min-height: 80px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #installmentsTable {
        min-height: 280px;
    }
    
    #installmentsTable .height-holder {
        height: 280px;
    }
    
    #installmentsTable .table-content {
        min-height: 280px;
    }
    
    .empty-main-container {
        min-height: 280px;
        padding: 20px 10px;
    }
    
    .empty-main-container .empty-icon {
        font-size: 32px;
    }
    
    .empty-main-container .empty-title {
        font-size: 14px;
    }
    
    .empty-main-container .empty-subtitle {
        font-size: 12px;
    }
    
    .empty-state-container {
        min-height: 120px;
        padding: 15px 10px;
    }
    
    .empty-state-container .empty-icon {
        font-size: 28px;
    }
    
    .empty-state-container .empty-title {
        font-size: 13px;
    }
    
    .empty-state-container .empty-subtitle {
        font-size: 11px;
    }
    
    .loan-item,
    .check-item,
    .debt-item {
        padding: 10px;
    }
}


/* style.css - استایل لوگو */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    margin-bottom: 15px;
 /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); */
    transition: transform 0.3s ease;
    object-fit: cover;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 36px;
    color: #fff;
    margin-bottom: 5px;
}

.logo h2 {
    color: #fff;
    font-weight: 500;
    font-size: 24px;
    margin: 0;
}
















/* ============================================
   استایل نمایش مبلغ قسط
   ============================================ */

#installmentPreview {
    animation: slideDown 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

#installmentPreview .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 5px;
}

#installmentPreview .amount {
    color: #2ed573;
    font-size: 24px;
    font-weight: bold;
}

#installmentPreview .details {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-top: 5px;
}

#installmentPreview .details span {
    display: inline-block;
    margin: 0 10px;
}

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

/* استایل برای موبایل */
@media (max-width: 480px) {
    #installmentPreview .amount {
        font-size: 20px;
    }
    
    #installmentPreview .details span {
        display: block;
        margin: 3px 0;
    }
}




/* ============================================
   استایل تاریخ در هدر
   ============================================ */

/* تاریخ امروز */
.today-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.today-date i {
    font-size: 14px;
}

.today-date .date-icon {
    font-size: 16px;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 480px) {
    .today-date {
        font-size: 12px;
        margin-top: 3px;
    }
    
    .today-date .date-icon {
        font-size: 14px;
    }
}




/* ============================================
   استایل بخش بدهی‌های معوق و این ماه
   ============================================ */

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

.debt-summary-item {
    border-radius: 12px;
    padding: 15px;
}

.debt-summary-item .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.debt-summary-item .amount {
    font-size: 20px;
    font-weight: bold;
}

.debt-summary-item .count {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

.debt-summary-item .icon {
    font-size: 30px;
}

.overdue-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
}

.overdue-item .title {
    font-size: 13px;
    color: #fff;
}

.overdue-item .date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.overdue-item .amount {
    font-size: 14px;
    font-weight: bold;
}

/* واکنش‌گرایی */
@media (max-width: 480px) {
    .debt-summary {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .debt-summary-item .amount {
        font-size: 16px;
    }
    
    .debt-summary-item .icon {
        font-size: 24px;
    }
}

