.chart-container { max-width: 1200px; margin: 0 auto; }
.chart-header { text-align: center; padding: 25px 20px; background: rgba(30, 35, 60, 0.6); backdrop-filter: blur(10px); border-radius: 20px; margin-bottom: 25px; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); position: relative; }
.chart-back-button { position: absolute; top: 15px; right: 15px; display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(74, 93, 143, 0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 30px; color: white; text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: all 0.3s ease; }
.chart-back-button:hover { background: rgba(74, 93, 143, 0.8); transform: translateX(5px); box-shadow: 0 3px 10px rgba(255, 255, 255, 0.2); }
.chart-back-button svg { width: 16px; height: 16px; fill: white; }
.chart-logo { font-size: 2.5rem; margin-bottom: 10px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-5px); } }
.chart-header h1 { color: white; font-size: 1.8rem; font-weight: 800; margin-bottom: 5px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); }
.chart-subtitle { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; font-weight: 400; }
.chart-filter-section { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 25px; }
.chart-filter-btn { padding: 10px 20px; border: none; border-radius: 30px; background: rgba(30, 35, 60, 0.6); backdrop-filter: blur(10px); color: white; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.2); }
.chart-filter-btn:hover { background: rgba(50, 55, 80, 0.8); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }
.chart-filter-btn.active { background: linear-gradient(135deg, #4a5d8f 0%, #5b4a7d 100%); color: white; box-shadow: 0 5px 20px rgba(90, 74, 125, 0.4); border: 1px solid rgba(255, 255, 255, 0.3); }
.chart-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.chart-stat-card { background: rgba(30, 35, 60, 0.6); backdrop-filter: blur(10px); border-radius: 18px; padding: 20px 15px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; position: relative; overflow: hidden; }
.chart-stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #4a5d8f, #5b4a7d); }
.chart-stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); background: rgba(40, 45, 70, 0.7); border: 1px solid rgba(255, 255, 255, 0.2); }
.chart-stat-icon { font-size: 2rem; margin-bottom: 8px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); }
.chart-stat-title { color: rgba(255, 255, 255, 0.9); font-size: 0.85rem; margin-bottom: 5px; font-weight: 500; }
.chart-stat-value { color: white; font-size: 1.8rem; font-weight: 800; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); }
.chart-charts-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.chart-chart-card { background: rgba(30, 35, 60, 0.6); backdrop-filter: blur(10px); border-radius: 18px; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.1); }
.chart-chart-card.full-width { grid-column: 1 / -1; }
.chart-chart-title { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; text-align: center; }
.chart-chart-container { position: relative; height: 280px; }
.chart-chart-container.large { height: 320px; }
.chart-chart-container2 { position: relative; height: 940px; }
.chart-chart-container2.large { height: 840px; }
.chart-toggle-group { display: flex; justify-content: center; gap: 8px; margin-bottom: 15px; }
.chart-toggle-btn { padding: 8px 18px; border: none; border-radius: 20px; background: rgba(30, 35, 60, 0.6); color: white; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); }
.chart-toggle-btn.active { background: linear-gradient(135deg, #4a5d8f 0%, #5b4a7d 100%); color: white; border: 1px solid rgba(255, 255, 255, 0.3); }
.chart-footer { background: rgba(30, 35, 60, 0.6); backdrop-filter: blur(10px); border-radius: 18px; padding: 25px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1); margin-top: 25px; }
.chart-footer h3 { color: white; font-size: 1.2rem; margin-bottom: 15px; }
.chart-footer p { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; margin: 10px 0; }
.chart-social-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 15px; }
.chart-social-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: rgba(30, 35, 60, 0.6); border-radius: 12px; color: white; text-decoration: none; font-weight: 500; font-size: 0.85rem; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); }
.chart-social-link:hover { background: rgba(50, 55, 80, 0.8); transform: translateY(-2px); border: 1px solid rgba(255, 255, 255, 0.2); }
@media (max-width: 1024px) {
    .chart-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .chart-charts-section { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .chart-header h1 { font-size: 1.4rem; }
    .chart-stats-grid { grid-template-columns: 1fr; }
    .chart-back-button span { display: none; }
    .chart-back-button { padding: 8px 12px; }
}
.chart-loading { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: white; animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chart-charts-section2 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}






.ch2chart-filter-btn.ch2disabled {
    opacity: 0.5;
    pointer-events: none;
    background-color: #e0e0e0;
    cursor: not-allowed;
}
.ch2hidden {
    display: none !important;
}
.ch2chart-clickable:hover {
    cursor: pointer;
}
.ch2preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.ch2preloader-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #6b48ff;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.ch2chart-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    font-family: 'IRANSans', sans-serif;
    border-radius: 24px;
}
.ch2stats-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.ch2stats-header h3 {
    font-size: 2.4rem;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(45deg, #6b48ff, #00ddeb);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 10px;
    animation: slideIn 1s ease-out;
}
.ch2stats-header p {
    font-size: 1.2rem;
    color: #b0b0ff;
    opacity: 0.8;
    animation: fadeIn 1.5s ease-out;
}
@keyframes slideIn {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.ch2stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}
.ch2chart-stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}
.ch2chart-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(107, 72, 255, 0.2), rgba(0, 221, 235, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ch2chart-stat-card:hover::before {
    opacity: 1;
}
.ch2chart-stat-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.1);
}
.ch2chart-stat-icon {
    font-size: 3.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 12px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.ch2chart-stat-card:hover .ch2chart-stat-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 5px 15px rgba(107, 72, 255, 0.5);
    background: rgba(107, 72, 255, 0.3);
}
.ch2chart-stat-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ch2chart-stat-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.ch2chart-stat-value {
    font-size: 2.3rem;
    font-weight: 700;
    color: #00ddeb;
    animation: fadeIn 1.3s ease-in-out;
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .ch2chart-stats-grid {
        padding: 20px;
    }
    .ch2stats-cards {
        grid-template-columns: 1fr;
    }
    .ch2chart-stat-card {
        padding: 20px;
    }
    .ch2chart-stat-icon {
        font-size: 3rem;
        width: 60px;
        height: 60px;
    }
    .ch2chart-stat-title {
        font-size: 1.2rem;
    }
    .ch2chart-stat-value {
        font-size: 2rem;
    }
    .ch2stats-header h3 {
        font-size: 2rem;
    }
}






.ch3chart-filter-btn.ch3disabled {
    opacity: 0.5;
    pointer-events: none;
    background-color: #e0e0e0;
    cursor: not-allowed;
}
.ch3hidden {
    display: none !important;
}
.ch3chart-clickable:hover {
    cursor: pointer;
}
.ch3preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.ch3preloader-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #ff6f61;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.ch3chart-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Vazirmatn', sans-serif;
}
.ch3stats-header {
    text-align: center;
    margin-bottom: 30px;
}
.ch3stats-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(45deg, #ff6f61, #ffb88c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.ch3stats-header p {
    font-size: 1.2rem;
    color: #d1d1d1;
}
.ch3stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}
.ch3chart-stat-card {
    background: linear-gradient(135deg, rgba(40, 45, 80, 0.9), rgba(20, 25, 50, 0.8));
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}
.ch3chart-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 111, 97, 0.3), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ch3chart-stat-card:hover::before {
    opacity: 1;
}
.ch3chart-stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.ch3chart-stat-icon {
    font-size: 3.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 12px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}
.ch3chart-stat-card:hover .ch3chart-stat-icon {
    transform: rotate(10deg) scale(1.1);
    background: rgba(255, 111, 97, 0.3);
}
.ch3chart-stat-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ch3chart-stat-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.ch3chart-stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ff6f61;
    animation: fadeIn 1.2s ease-in-out;
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .ch3stats-cards {
        grid-template-columns: 1fr;
    }
    .ch3chart-stat-card {
        padding: 20px;
    }
    .ch3chart-stat-icon {
        font-size: 3rem;
        width: 60px;
        height: 60px;
    }
    .ch3chart-stat-title {
        font-size: 1.1rem;
    }
    .ch3chart-stat-value {
        font-size: 2rem;
    }
    .ch3stats-header h3 {
        font-size: 1.8rem;
    }
}










.chart-filter-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background-color: #e0e0e0;
    cursor: not-allowed;
}
.hidden {
    display: none !important;
}
.chart-clickable:hover {
    cursor: pointer;
}
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}







.ch1chart-filter-btn.ch1disabled {
    opacity: 0.5;
    pointer-events: none;
    background-color: #e0e0e0;
    cursor: not-allowed;
}
.ch1hidden {
    display: none !important;
}
.ch1chart-clickable:hover {
    cursor: pointer;
}
.ch1preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.ch1preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6b48ff;
    border-radius: 50%;
}
.ch1chart-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: none;
    margin: 0;
    font-family: 'IRANSans', sans-serif;
    border-radius: 0;
}
.ch1stats-header {
    text-align: center;
    margin-bottom: 20px;
}
.ch1stats-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.ch1stats-header p {
    font-size: 1.1rem;
    color: #b0b0ff;
    opacity: 0.9;
    font-weight: 300;
}
.ch1stats-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px; /* حاشیه داخلی برای کارت‌ها */
}
.ch1chart-stat-card {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(107, 72, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}
.ch1chart-stat-card:hover {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.15));
    border-color: rgba(107, 72, 255, 0.4);
}
.ch1chart-stat-icon {
    font-size: 2.8rem;
    background: rgba(107, 72, 255, 0.2);
    border-radius: 10px;
    padding: 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b48ff;
    box-shadow: 0 0 10px rgba(107, 72, 255, 0.5); /* افکت گلو */
}
.ch1chart-stat-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ch1chart-stat-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.3px;
}
.ch1chart-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00ddeb;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
    .ch1chart-stats-grid {
        padding: 15px;
    }
    .ch1chart-stat-card {
        padding: 15px;
    }
    .ch1chart-stat-icon {
        font-size: 2.2rem;
        width: 50px;
        height: 50px;
    }
    .ch1chart-stat-title {
        font-size: 1.1rem;
    }
    .ch1chart-stat-value {
        font-size: 1.8rem;
    }
    .ch1stats-header h3 {
        font-size: 1.8rem;
    }
    .ch1stats-header p {
        font-size: 1rem;
    }
}


.ch1chart-stat-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}
