/* فایل CSS پلاگین ختم صلوات - طراحی جذاب و روشن */
/* assets/style.css */

/* متغیرهای طراحی جذاب */
:root {
    --primary-green: #16a085;
    --light-green: #1abc9c;
    --emerald: #2ecc71;
    --mint: #a8e6cf;
    --cream: #f8fff9;
    --gold: #f39c12;
    --soft-blue: #ebf8ff;
    --purple: #9b59b6;
    --orange: #e67e22;
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --text-muted: #7f8c8d;
    --border-light: #ecf0f1;
    --shadow-colored: 0 8px 32px rgba(22, 160, 133, 0.15);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(22, 160, 133, 0.25);
    --gradient-green: linear-gradient(135deg, #16a085 0%, #1abc9c 50%, #2ecc71 100%);
    --gradient-gold: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --radius: 20px;
    --radius-small: 12px;
}

/* تنظیمات عمومی */
#khatm-salavat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    font-family: inherit;
    direction: rtl;
    background: #ffffff;
    min-height: auto;
    border-radius: 0;
}

/* هدر جذاب */
.khatm-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
}

.khatm-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-green);
}

.khatm-header h2 {
    margin: 0 0 24px 0;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.total-salavat {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-green);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
}

/* حذف انیمیشن‌های shimmer */
.total-salavat::before {
    display: none; /* حذف shimmer */
}

@keyframes shimmer-total {
    /* حذف keyframe */
}

.total-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.25rem;
}

/* گرید کارت ها */
.khatm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

/* کارت های ساده‌تر */
.khatm-card {
    background: #ffffff; /* سالید ساده */
    border-radius: var(--radius);
    border: 1px solid rgba(22, 160, 133, 0.15);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* کم کردن مدت انیمیشن */
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* سایه ساده‌تر */
}

/* حذف افکت‌های پیچیده */
.khatm-card::before,
.khatm-card::after {
    display: none; /* حذف کامل */
}

.khatm-card:hover {
    transform: translateY(-4px); /* کم کردن جابجایی */
    box-shadow: 0 8px 20px rgba(22, 160, 133, 0.15); /* سایه ساده‌تر */
}

.khatm-card.active {
    border-color: rgba(22, 160, 133, 0.3);
}

.khatm-card.completed {
    background: #f8f9fa; /* بک‌گراند ساده */
    border-color: rgba(46, 204, 113, 0.3);
}

/* حذف انیمیشن celebration پیچیده */
.khatm-card.completed .khatm-content::before {
    display: none; /* حذف کامل */
}

/* تصویر کارت ساده */
.khatm-image {
    height: 220px;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* حذف افکت shimmer پیچیده */
.khatm-image::before {
    display: none;
}

.khatm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease; /* کم کردن مدت */
}

.khatm-card:hover .khatm-image img {
    transform: scale(1.05); /* کم کردن مقدار scale */
}

.no-image {
    font-size: 4rem;
    color: white;
    /* حذف انیمیشن float پیچیده */
}

/* محتوای کارت */
.khatm-content {
    padding: 32px 24px;
    position: relative;
    background: inherit;
    border-radius: 0 0 var(--radius) var(--radius);
}

.khatm-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* نوار پیشرفت ساده */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 6px;
    overflow: hidden;
    margin: 24px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-green);
    border-radius: 6px;
    transition: width 0.8s ease; /* کم کردن مدت */
    position: relative;
}

/* حذف افکت shimmer */
.progress-fill::after {
    display: none;
}

/* آمار جذاب */
.khatm-stats {
    text-align: center;
    margin: 24px 0;
}

.current-count {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.current-number {
    background: var(--gradient-green);
    color: white;
    padding: 14px 22px;
    border-radius: var(--radius-small);
    font-size: 1.375rem;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* سایه ساده */
    position: relative;
}

/* حذف انیمیشن rotate-shine */
.current-number::before {
    display: none;
}

.target-number {
    background: #f8f9fa;
    color: var(--text-secondary);
    padding: 14px 22px;
    border-radius: var(--radius-small);
    font-size: 1.375rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* سایه ساده */
    border: 1px solid rgba(22, 160, 133, 0.1);
}

.remaining-count {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    background: rgba(22, 160, 133, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.completed-badge {
    background: var(--gradient-gold);
    color: white;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 1.125rem;
    font-weight: 800;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* سایه ساده */
}

/* حذف انیمیشن pulse-glow */

/* دکمه های فوق‌العاده */
.salavat-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.salavat-btn {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 16px 20px;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 70px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.salavat-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-green);
    transition: left 0.4s ease;
    z-index: -1;
}

.salavat-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.salavat-btn:hover::before {
    left: 0;
}

.salavat-btn:hover::after {
    width: 100%;
    height: 100%;
}

.salavat-btn:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.salavat-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.salavat-btn.clicked {
    transform: scale(0.95);
    animation: click-wave 0.6s ease;
}

@keyframes click-wave {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* راهنمای دکمه ها */
.buttons-guide {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.1) 0%, rgba(26, 188, 156, 0.1) 100%);
    border-radius: var(--radius-small);
    border: 1px solid rgba(22, 160, 133, 0.2);
    backdrop-filter: blur(10px);
}

.buttons-guide-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0;
}

/* مودال جذاب */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    animation: modal-fade-in 0.3s ease;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    margin: 10% auto;
    padding: 48px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 
        var(--shadow-hover),
        0 0 100px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(22, 160, 133, 0.1);
    position: relative;
    overflow: hidden;
    animation: modal-slide-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-slide-in {
    from { transform: translateY(-50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-green);
}

.modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 600;
}

#confirm-count {
    background: var(--gradient-green);
    color: white;
    font-weight: 900;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 1.375rem;
    box-shadow: var(--shadow-soft);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-confirm {
    background: var(--gradient-green);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.btn-confirm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.4s ease;
}

.btn-confirm:hover::before {
    left: 100%;
}

.btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-cancel {
    background: rgba(127, 140, 141, 0.1);
    color: var(--text-secondary);
    border: 2px solid rgba(127, 140, 141, 0.3);
    padding: 16px 36px;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(127, 140, 141, 0.2);
    transform: translateY(-2px);
    border-color: rgba(127, 140, 141, 0.5);
}

/* بارگذاری جذاب */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    border: 6px solid rgba(22, 160, 133, 0.2);
    border-radius: 50%;
    border-top: 6px solid var(--primary-green);
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(22, 160, 133, 0.2);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 700;
}

/* خلاصه آمار ختم صلوات - بدون سایه و ردیوس */
#khatm-summary-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl;
}

#khatm-summary-container > div {
    background: #ffffff;
    border-radius: 0; /* حذف ردیوس */
    padding: 32px;
    box-shadow: none; /* حذف سایه */
    border: none; /* حذف border */
    margin: 0;
    width: 100%;
}

#khatm-summary-container h3 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.summary-grid > div {
    text-align: center;
    padding: 20px 16px;
    background: #ffffff; /* سالید */
    border-radius: 0; /* حذف ردیوس */
    border: 1px solid #e0e0e0; /* border ساده */
    transition: none; /* حذف transition */
    position: relative;
    box-shadow: none; /* حذف سایه */
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* حذف کامل خط سبز بالای کارت‌ها */
.summary-grid > div::before {
    display: none; /* حذف کامل */
}

.summary-grid > div:hover {
    transform: none; /* حذف انیمیشن hover */
    box-shadow: none; /* بدون سایه در hover */
    border-color: #e0e0e0; /* بدون تغییر border */
}

.summary-grid > div > div:first-child {
    font-size: 2rem; /* کم کردن سایز فونت */
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.1; /* کم کردن line-height */
    word-break: break-all; /* شکستن اعداد طولانی */
    overflow-wrap: break-word;
}

.summary-grid > div > div:last-child {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem; /* کم کردن سایز */
    line-height: 1.2;
}

/* رنگ‌های متفاوت برای هر کارت آمار */
.summary-grid > div:nth-child(1) > div:first-child {
    color: #16a085;
}

.summary-grid > div:nth-child(2) > div:first-child {
    color: #f39c12;
}

.summary-grid > div:nth-child(3) > div:first-child {
    color: #2ecc71;
}

.summary-grid > div:nth-child(4) > div:first-child {
    color: #9b59b6;
}

/* toast messages */
.success-toast {
    font-family: inherit;
    z-index: 1002;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-hover);
    border: 2px solid rgba(76, 175, 80, 0.2);
}

/* ریسپانسیو فوق‌العاده */
@media (max-width: 1024px) {
    .khatm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    #khatm-salavat-container {
        padding: 24px;
    }
    
    #khatm-summary-container {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    #khatm-salavat-container {
        padding: 20px;
        background: #ffffff;
    }
    
    #khatm-summary-container {
        padding: 20px;
    }
    
    .khatm-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .khatm-content {
        padding: 24px 20px;
    }
    
    .khatm-image {
        height: 200px;
    }
    
    .salavat-buttons {
        gap: 10px;
    }
    
    .salavat-btn {
        flex: 1;
        min-width: 50px; /* کم کردن عرض در موبایل */
        padding: 10px 12px; /* کم کردن padding در موبایل */
        font-size: 1rem; /* کم کردن فونت در موبایل */
    }
    
    .modal-content {
        margin: 15% auto;
        padding: 36px 28px;
        width: 95%;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 16px;
    }
    
    .buttons-guide {
        padding: 12px 16px;
    }
    
    .buttons-guide-text {
        font-size: 0.875rem;
    }
    
    /* طراحی مخصوص موبایل برای خلاصه آمار */
    .summary-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        grid-template-areas: 
            "total"
            "completed"
            "active-today" !important;
    }
    
    .summary-grid > div:nth-child(1) { 
        grid-area: total;
        grid-column: 1 / -1;
    }
    
    .summary-grid > div:nth-child(2) { 
        grid-area: completed;
        grid-column: 1 / -1;
    }
    
    /* ختم فعال و صلوات امروز در یک ردیف */
    .summary-grid > div:nth-child(3),
    .summary-grid > div:nth-child(4) {
        grid-area: active-today;
    }
    
    .summary-grid > div:nth-child(3) {
        margin-bottom: 16px;
    }
    
    /* دو ستونه برای دو کارت آخر */
    @supports (display: subgrid) {
        .summary-grid {
            grid-template-areas: 
                "total total"
                "completed completed"
                "active today" !important;
            grid-template-columns: 1fr 1fr !important;
        }
        
        .summary-grid > div:nth-child(3) { 
            grid-area: active;
            margin-bottom: 0;
        }
        
        .summary-grid > div:nth-child(4) { 
            grid-area: today;
        }
    }
    
    /* فال‌بک برای مرورگرهایی که subgrid ندارند */
    .summary-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 16px !important;
    }
    
    .summary-grid > div:nth-child(1) { 
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    .summary-grid > div:nth-child(2) { 
        grid-column: 1 / -1;
        grid-row: 2;
    }
    
    .summary-grid > div:nth-child(3) { 
        grid-column: 1;
        grid-row: 3;
    }
    
    .summary-grid > div:nth-child(4) { 
        grid-column: 2;
        grid-row: 3;
    }
}

@media (max-width: 480px) {
    .khatm-header h2 {
        font-size: 1.875rem;
    }
    
    .khatm-title {
        font-size: 1.25rem;
    }
    
    .khatm-image {
        height: 180px;
    }
    
    .khatm-content {
        padding: 20px 16px;
    }
    
    .current-number,
    .target-number {
        padding: 12px 18px;
        font-size: 1.125rem;
    }
    
    .salavat-btn {
        padding: 12px 14px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 32px 20px;
    }
    
    /* تنظیمات خاص برای موبایل کوچک */
    .summary-grid > div {
        padding: 8px 4px !important;
        min-height: 70px !important;
        border-radius: 0 !important; /* بدون ردیوس */
        box-shadow: none !important; /* بدون سایه */
        border: 1px solid #e0e0e0 !important; /* border ساده */
    }
    
    .summary-grid > div > div:first-child {
        font-size: 1.2rem !important;
        margin-bottom: 2px !important;
    }
    
    .summary-grid > div > div:last-child {
        font-size: 0.7rem !important;
    }
    
    /* برای دو کارت آخر در موبایل کوچک */
    .summary-grid > div:nth-child(3),
    .summary-grid > div:nth-child(4) {
        padding: 6px 3px !important;
        border-radius: 0 !important; /* بدون ردیوس */
        box-shadow: none !important; /* بدون سایه */
    }
    
    .salavat-btn {
        padding: 8px 10px; /* کم کردن بیشتر در موبایل کوچک */
        font-size: 0.9rem;
        min-width: 45px;
    }
}

/* حذف انیمیشن‌های اضافی */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* حذف انیمیشن‌های کارت‌ها برای سبک‌تر شدن */
.khatm-card {
    /* بدون انیمیشن slideInUp */
}

.khatm-card:nth-child(2n),
.khatm-card:nth-child(3n) {
    /* بدون delay */
}

.summary-grid > div {
    /* بدون انیمیشن slideInUp */
}

.summary-grid > div:nth-child(2),
.summary-grid > div:nth-child(3),
.summary-grid > div:nth-child(4) {
    /* بدون delay */
}

/* صفحه گزارشات */
#khatm-reports-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    font-family: inherit;
    direction: rtl;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    border-radius: var(--radius);
}

.reports-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 48px 32px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 2px solid rgba(22, 160, 133, 0.1);
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
}

.reports-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-green);
}

.reports-header h5 {
    margin: 0 0 16px 0;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reports-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.report-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 2px solid rgba(22, 160, 133, 0.1);
    padding: 32px 28px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.report-card:hover::before {
    transform: scaleX(1);
}

.report-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(22, 160, 133, 0.2);
}

.report-card h5 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.report-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(22, 160, 133, 0.1);
    transition: all 0.3s ease;
}

.report-stat:last-child {
    border-bottom: none;
}

.report-stat:hover {
    background: rgba(22, 160, 133, 0.05);
    border-radius: 8px;
    padding: 16px 12px;
}

.stat-label {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 1rem;
}

.stat-value {
    font-weight: 900;
    color: var(--primary-green);
    font-size: 1.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chart-container {
    margin-top: 24px;
    height: 200px;
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.05) 0%, rgba(26, 188, 156, 0.05) 100%);
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.125rem;
    border: 2px dashed rgba(22, 160, 133, 0.2);
    transition: all 0.3s ease;
}

.chart-container:hover {
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.1) 0%, rgba(26, 188, 156, 0.1) 100%);
    border-color: rgba(22, 160, 133, 0.3);
}

/* ریسپانسیو گزارشات */
@media (max-width: 768px) {
    #khatm-reports-container {
        padding: 20px;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .reports-header {
        padding: 32px 20px;
    }
    
    .reports-header h5 {
        font-size: 2rem;
    }
    
    .report-card {
        padding: 24px 20px;
    }
}