﻿/* تعریف فونت IranSans */
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/eot/IRANSansWeb_Bold.eot');
    src: url('../fonts/eot/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb_Bold.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb_Bold.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb_Bold.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/eot/IRANSansWeb_Medium.eot');
    src: url('../fonts/eot/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb_Medium.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/eot/IRANSansWeb_Light.eot');
    src: url('../fonts/eot/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb_Light.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb_Light.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb_Light.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/eot/IRANSansWeb_UltraLight.eot');
    src: url('../fonts/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb_UltraLight.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb_UltraLight.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/eot/IRANSansWeb.eot');
    src: url('../fonts/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb.ttf') format('truetype');
}



/* Vazirmatn - Light 300 */
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 300;
    src: url('/fonts/vazirmatn/Vazirmatn-Light.woff2') format('woff2'), url('/fonts/vazirmatn/Vazirmatn-Light.woff') format('woff');
}

/* Vazirmatn - Regular 400 */
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2'), url('/fonts/vazirmatn/Vazirmatn-Regular.woff') format('woff');
}

/* Vazirmatn - Medium 500 */
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 500;
    src: url('/fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2'), url('/fonts/vazirmatn/Vazirmatn-Medium.woff') format('woff');
}

/* Vazirmatn - SemiBold 600 */
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2'), url('/fonts/vazirmatn/Vazirmatn-SemiBold.woff') format('woff');
}

/* Vazirmatn - Bold 700 */
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2'), url('/fonts/vazirmatn/Vazirmatn-Bold.woff') format('woff');
}

/* مثال استفاده در کل سایت */
body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}



body {
    font-family: IRANSans, Tahoma, sans-serif;
    line-height: 1.8;
    background-color: #f8f9fa;
    direction: rtl;
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.85);
        z-index: -1;
    }

.container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

    .card-modern:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

.btn-gradient {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

    .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
        background: linear-gradient(45deg, #0056b3, #007bff);
    }

.status-box {
    min-height: 100px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
}

.progress-animated {
    height: 20px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-bar-animated {
    background: linear-gradient(90deg, #007bff, #00bfff);
    transition: width 1s ease-in-out;
    animation: progressAnimation 1.5s infinite;
}

@keyframes progressAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.nav-item {
    transition: all 0.3s ease;
}

    .nav-item:hover {
        background: linear-gradient(45deg, #007bff, #00bfff);
        border-radius: 8px;
        transform: scale(1.05);
    }

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

.fa-3x {
    font-size: 3.5em;
}

h1, h2, h3 {
    font-weight: bold;
}

.card {
    border-radius: 1rem;
}

.footer-compact .container {
    padding: 5px 15px !important;
    line-height: 1.2 !important;
    font-size: 0.9rem;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* استایل‌های جدید برای منوی گرافیکی */
.stat-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .stat-card h3 {
        font-size: 2rem;
        font-weight: bold;
        margin: 0;
    }

    .stat-card h6 {
        font-size: 0.9rem;
        margin: 0;
        opacity: 0.9;
    }

/* رسپانسیو - باید در انتهای فایل باشد */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
        border-radius: 10px;
    }

    .card-modern {
        transition: all 0.3s ease;
        border: none;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .stat-card {
        margin-bottom: 15px;
    }

    .display-5 {
        font-size: 1.5rem !important;
    }

    .btn-gradient {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        margin: 5px;
        padding: 15px;
    }

    .card-modern {
        margin-bottom: 15px;
    }
}

/* در فایل site.css یا در تگ <style> اضافه کنید */
.pre-style {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    font-family: 'IRANSans', Tahoma, sans-serif;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

.card-header {
    font-weight: 600;
}

#messagePreview .card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    #messagePreview .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }


/* کارت اصلی */
.login-card {
    width: 100%;
    max-width: 600px; /* بزرگتر شد */
    min-width: 350px;
    border-radius: 15px;
    overflow: hidden;
}

/* بدنه فرم */
.login-body {
    padding: 20px 40px; /* padding کمتر شد */
}

/* فیلدهای فرم */
.form-group {
    margin-bottom: 18px;
}

/* ورودی‌ها */
input.form-control {
    height: 45px;
    font-size: 1rem;
}

/* دکمه ورود */
.login-btn {
    padding: 12px;
    font-size: 1.1rem;
}


/* استایل‌های نمودار */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    direction: rtl !important; /* نمایش از راست به چپ */
}

    .chart-container canvas {
        direction: rtl !important; /* نمایش از راست به چپ */
    }

/* اطمینان از جهت‌نمایی صحیح برای نمودارها */
#statisticsChart, #trendChart, #todayChart {
    direction: rtl !important;
}

.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }

.card-header {
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

/* کارت‌های آمار */
.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #f47ec0 0%, #c45492 100%) !important;
}

/* رسپانسیو */
media (max-width: 768px) 
    .chart-container
{
    height: 300px;
}

.display-5 {
    font-size: 2rem !important;
}



/* در بخش style صفحه */
.card-modern {
    overflow: visible !important;
}

.card-body {
    overflow: visible !important;
}

.chart-container {
    min-height: 400px;
    position: relative;
}

#comparisonChart {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}


/* استایل‌های جدید برای بخش پیشرفت */
.log-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Vazirmatn', monospace;
    font-size: 0.85rem;
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
}

.log-time {
    color: #6c757d;
    font-size: 0.8rem;
    min-width: 70px;
}

.log-message {
    flex: 1;
    margin-right: 10px;
}

.speed-indicator {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* انیمیشن‌های پیشرفته */
@keyframes pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.processing-active {
    animation: pulse-success 2s infinite;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .log-box {
        max-height: 150px;
        font-size: 0.8rem;
    }

    .log-entry {
        flex-direction: column;
        align-items: flex-start;
    }

    .log-time {
        min-width: auto;
        margin-bottom: 2px;
    }
}


/* تنظیم ارتفاع کارت‌ها برای هم‌سطح شدن */
.dashboard .col-md-6 .card {
    height: 100%;
}

    .dashboard .col-md-6 .card .card-body {
        padding-bottom: 30px; /* افزایش padding پایین */
    }

        /* افزایش فاصله زیر آیتم پیامک امروز */
        .dashboard .col-md-6 .card .card-body ul li:nth-child(5) {
            margin-bottom: 30px;
        }


/* افزایش فاصله سطرهای باکس آخرین فعالیت‌ها */
.dashboard .card .card-body ul.list-unstyled li {
    margin-bottom: 15px; /* افزایش فاصله بین سطرها */
    padding: 1px 0; /* افزایش padding داخلی */
    line-height: 0.1; /* افزایش فاصله خطوط */
    border-bottom: 1px solid #f8f9fa; /* خط جداکننده ظریف */
}

    /* حذف خط جداکننده برای آخرین سطر */
    .dashboard .card .card-body ul.list-unstyled li:last-child {
        border-bottom: none;
        margin-bottom: 0; /* حذف فاصله اضافی برای آخرین سطر */
    }

    /* افزایش سایز آیکون‌ها برای بهتر شدن ظاهر */
    .dashboard .card .card-body ul.list-unstyled li i {
        font-size: 1.1em;
        width: 25px; /* ثابت کردن عرض آیکون‌ها */
        text-align: center;
    }

    /* استایل برای اعداد و متن‌های مهم */
    .dashboard .card .card-body ul.list-unstyled li strong {
        font-size: 1.1em;
        color: #007bff;
    }

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .dashboard .card .card-body ul.list-unstyled li {
        margin-bottom: 12px;
        padding: 6px 0;
    }
}


/* اضافه کردن به فایل CSS موجود */
.gradient-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.progress-animated {
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar-animated {
    background: linear-gradient(45deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.log-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.log-entry {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* فوتر */
/* طراحی مدرن با گرادیانت شفاف */
.modern-footer {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%) !important;
    color: #2c3e50 !important;
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    backdrop-filter: blur(15px);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
}

    .footer-brand i {
        color: #e74c3c !important; /* قرمز جذاب */
        font-size: 1.5em;
    }

.footer-designer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

    .footer-designer i {
        color: white !important;
    }

.footer-info {
    color: #6c757d;
    font-size: 0.9em;
}



/* استایل برای فیلدهای غیرقابل ویرایش */
.message-content pre[contenteditable="false"] {
    background-color: #f8f9fa !important;
    color: #6c757d;
    cursor: not-allowed;
}

.message-content pre[contenteditable="true"] {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    min-height: 120px;
}



/* اضافه کردن به فایل CSS موجود */
.persian-datepicker {
    direction: rtl;
    text-align: right;
}

.pdp-default {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
}

/* استایل‌های Pagination */
.pagination {
    direction: ltr;
}

.page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* اضافه کردن به فایل CSS */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
    text-align: center;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.card-modern:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.stat-item {
    padding: 15px;
}

    .stat-item h4 {
        font-weight: bold;
        margin-bottom: 0;
    }

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.pagination .page-link {
    color: #495057;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}




/* راهنما */
.scenario-guide {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    border-right: 4px solid #ffc107;
}

.step-by-step .step {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #dee2e6;
}

    .step-by-step .step:last-child {
        border-bottom: none;
    }

.solution {
    border-right: 3px solid #28a745;
    background: rgba(40, 167, 69, 0.05) !important;
}

.note-box {
    border-right: 3px solid #17a2b8;
    background: rgba(23, 162, 184, 0.1) !important;
}

.step-by-step ol {
    padding-right: 1.5rem;
}

.step-by-step li {
    margin-bottom: 0.5rem;
}



/* اضافه کردن این استایل‌ها به بخش CSS */

.log-entry.text-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-right: 3px solid #dc3545;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 5px;
}

    .log-entry.text-danger i {
        color: #dc3545;
    }

.status-content.text-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    padding: 15px;
    border-radius: 10px;
}

.status-content.text-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    padding: 15px;
    border-radius: 10px;
}

/* صفحه نخست */

/* استایل‌های جدید برای صفحه نخست حرفه‌ای */
.dashboard-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

    .dashboard-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('/images/pattern.png');
        opacity: 0.1;
    }

.hero-content {
    position: relative;
    z-index: 2;
}

.stat-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .stat-card-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #007bff, #00bfff);
    }

    .stat-card-modern:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.stat-subtext {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
}

.stat-subtext-danger {
    font-size: 0.85rem;
    color: #dc3545;
    font-weight: 600;
}

/* کارت‌های مدرن */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

/* انیمیشن‌های جدید */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 123, 255, 0.8);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

/* نمودارهای بهبود یافته */
.chart-container-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* دکمه‌های مدرن */
.btn-modern {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

    .btn-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
        color: white;
    }

.btn-success-modern {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

    .btn-success-modern:hover {
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    }

/* بخش ویژگی‌ها */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .dashboard-hero {
        padding: 25px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* افکت‌های ویژه */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* پیشرفت آنیمیشن */
.progress-modern {
    height: 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar-modern {
    background: linear-gradient(90deg, #007bff, #00bfff);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* باکس های رنگی صفحه نخست */

/* استایل‌های جدید برای باکس‌های رنگی */
.stat-card-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
}

.stat-card-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
}

.stat-card-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: white !important;
}

.stat-card-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: white !important;
}

.stat-card-purple {
    background: linear-gradient(135deg, #6f42c1 0%, #5a2d9c 100%) !important;
    color: white !important;
}

.stat-card-pink {
    background: linear-gradient(135deg, #e83e8c 0%, #d91a72 100%) !important;
    color: white !important;
}

.stat-card-orange {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%) !important;
    color: white !important;
}

.stat-card-teal {
    background: linear-gradient(135deg, #20c997 0%, #199d76 100%) !important;
    color: white !important;
}

    /* استایل آیکون‌ها در باکس‌های رنگی */
    .stat-card-success .stat-icon,
    .stat-card-primary .stat-icon,
    .stat-card-info .stat-icon,
    .stat-card-warning .stat-icon,
    .stat-card-purple .stat-icon,
    .stat-card-pink .stat-icon,
    .stat-card-orange .stat-icon,
    .stat-card-teal .stat-icon {
        background: rgba(255, 255, 255, 0.2) !important;
        color: white !important;
    }

    /* استایل متن‌ها در باکس‌های رنگی */
    .stat-card-success .stat-number,
    .stat-card-primary .stat-number,
    .stat-card-info .stat-number,
    .stat-card-warning .stat-number,
    .stat-card-purple .stat-number,
    .stat-card-pink .stat-number,
    .stat-card-orange .stat-number,
    .stat-card-teal .stat-number {
        color: white !important;
        -webkit-text-fill-color: white !important;
    }

    .stat-card-success .stat-label,
    .stat-card-primary .stat-label,
    .stat-card-info .stat-label,
    .stat-card-warning .stat-label,
    .stat-card-purple .stat-label,
    .stat-card-pink .stat-label,
    .stat-card-orange .stat-label,
    .stat-card-teal .stat-label {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .stat-card-success .stat-subtext,
    .stat-card-primary .stat-subtext,
    .stat-card-info .stat-subtext,
    .stat-card-warning .stat-subtext,
    .stat-card-purple .stat-subtext,
    .stat-card-pink .stat-subtext,
    .stat-card-orange .stat-subtext,
    .stat-card-teal .stat-subtext {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .stat-card-success .stat-subtext-danger,
    .stat-card-primary .stat-subtext-danger,
    .stat-card-info .stat-subtext-danger,
    .stat-card-warning .stat-subtext-danger,
    .stat-card-purple .stat-subtext-danger,
    .stat-card-pink .stat-subtext-danger,
    .stat-card-orange .stat-subtext-danger,
    .stat-card-teal .stat-subtext-danger {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* استایل progress bar در باکس‌های رنگی */
    .stat-card-success .progress-modern,
    .stat-card-primary .progress-modern,
    .stat-card-info .progress-modern,
    .stat-card-warning .progress-modern,
    .stat-card-purple .progress-modern,
    .stat-card-pink .progress-modern,
    .stat-card-orange .progress-modern,
    .stat-card-teal .progress-modern {
        background: rgba(255, 255, 255, 0.3) !important;
    }

    .stat-card-success .progress-bar-modern,
    .stat-card-primary .progress-bar-modern,
    .stat-card-info .progress-bar-modern,
    .stat-card-warning .progress-bar-modern,
    .stat-card-purple .progress-bar-modern,
    .stat-card-pink .progress-bar-modern,
    .stat-card-orange .progress-bar-modern,
    .stat-card-teal .progress-bar-modern {
        background: rgba(255, 255, 255, 0.8) !important;
    }


/* استایل‌های جدید برای عملیات سریع */
.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 80px; /* ارتفاع کم */
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .quick-action-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        color: white !important;
        text-decoration: none;
    }

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 15px;
    font-size: 1.3rem;
}

.quick-action-text {
    flex: 1;
    text-align: right;
}

    .quick-action-text h6 {
        margin: 0 0 5px 0;
        font-weight: 600;
        font-size: 0.95rem;
    }

    .quick-action-text small {
        opacity: 0.9;
        font-size: 0.8rem;
    }

/* استایل برای نمودار با خطوط کم رنگ */
.chart-line-light {
    border-color: rgba(75, 192, 192, 0.3) !important;
    background-color: rgba(75, 192, 192, 0.1) !important;
}

/* تنظیمات خاص برای نمودار خطی با رنگ‌های کم رنگ */
.light-blue-line {
    border-color: rgba(54, 162, 235, 0.3) !important;
    background-color: rgba(54, 162, 235, 0.1) !important;
}

.light-green-line {
    border-color: rgba(75, 192, 192, 0.3) !important;
    background-color: rgba(75, 192, 192, 0.1) !important;
}


/* استایل‌های جدید برای عملیات سریع */
.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 80px; /* ارتفاع کم */
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .quick-action-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        color: white !important;
        text-decoration: none;
    }

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 15px;
    font-size: 1.3rem;
}

.quick-action-text {
    flex: 1;
    text-align: right;
}

    .quick-action-text h6 {
        margin: 0 0 5px 0;
        font-weight: 600;
        font-size: 0.95rem;
    }

    .quick-action-text small {
        opacity: 0.9;
        font-size: 0.8rem;
    }

/* استایل برای نمودار با خطوط کم رنگ */
.chart-line-light {
    border-color: rgba(75, 192, 192, 0.3) !important;
    background-color: rgba(75, 192, 192, 0.1) !important;
}

/* تنظیمات خاص برای نمودار خطی با رنگ‌های کم رنگ */
.light-blue-line {
    border-color: rgba(54, 162, 235, 0.3) !important;
    background-color: rgba(54, 162, 235, 0.1) !important;
}

.light-green-line {
    border-color: rgba(75, 192, 192, 0.3) !important;
    background-color: rgba(75, 192, 192, 0.1) !important;
}

/* تغییر رنگ باکس ارسال ناموفق به صورتی */
.stat-card-warning {
    background: linear-gradient(135deg, #e83e8c 0%, #d91a72 100%) !important;
    color: white !important;
}

    /* استایل آیکون و متن در باکس صورتی */
    .stat-card-warning .stat-icon {
        background: rgba(255, 255, 255, 0.2) !important;
        color: white !important;
    }

    .stat-card-warning .stat-number {
        color: white !important;
        -webkit-text-fill-color: white !important;
    }

    .stat-card-warning .stat-label {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .stat-card-warning .stat-subtext-danger {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .stat-card-warning .progress-modern {
        background: rgba(255, 255, 255, 0.3) !important;
    }

    .stat-card-warning .progress-bar-modern {
        background: rgba(255, 255, 255, 0.8) !important;
    }

/* send help */
/* استایل‌های جدول‌های راهنما */
.excel-guide-section {
    margin-top: 2rem;
}

.guide-table {
    display: none;
    padding: 1rem;
}

    .guide-table.active {
        display: block;
        animation: fadeIn 0.5s ease-in;
    }

    .guide-table .table {
        margin-bottom: 0;
        font-size: 0.9rem;
    }

        .guide-table .table th {
            background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
            color: white;
            font-weight: 600;
            text-align: center;
            padding: 12px 8px;
            border: none;
            font-size: 0.85rem;
        }

        .guide-table .table td {
            text-align: center;
            padding: 10px 8px;
            vertical-align: middle;
            border-color: #dee2e6;
            font-size: 0.85rem;
        }

    .guide-table .table-striped tbody tr:nth-of-type(odd) {
        background-color: rgba(40, 167, 69, 0.05);
    }

    .guide-table .table-hover tbody tr:hover {
        background-color: rgba(40, 167, 69, 0.1);
        transform: scale(1.01);
        transition: all 0.2s ease;
    }

/* انیمیشن */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* رسپانسیو */
@media (max-width: 768px) {
    .guide-table .table {
        font-size: 0.8rem;
    }

        .guide-table .table th,
        .guide-table .table td {
            padding: 8px 4px;
        }

    .excel-guide-section .card-body {
        padding: 0.5rem;
    }
}

/* استایل هدر کارت */
.excel-guide-section .card-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    border: none;
}

/* استایل توضیحات */
.excel-guide-section .alert-light {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* اسکرول منو */
/* اضافه کردن اسکرول به سایدبار */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: all var(--transition-speed) ease;
    z-index: 1000;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    /* اضافه کردن اسکرول عمودی */
    overflow-y: auto;
    overflow-x: hidden;
}

    /* استایل‌های اسکرول بار برای مرورگرهای مختلف */
    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 3px;
    }

        .sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--hover-color);
        }

/* برای فایرفاکس */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(0, 0, 0, 0.1);
}

/* تنظیم ارتفاع بخش‌های داخلی سایدبار */
.sidebar-menu {
    padding: 20px 0;
    max-height: calc(100vh - 200px); /* محدودیت ارتفاع برای اسکرول */
    overflow-y: auto;
}

.user-panel {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky; /* ثابت ماندن در پایین هنگام اسکرول */
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* بهبود استایل برای حالت جمع شده */
.sidebar.collapsed .sidebar-menu {
    max-height: calc(100vh - 150px);
}

/* مدیریت اسکرول در موبایل */
@media (max-width: 768px) {
    .sidebar {
        overflow-y: auto;
    }

    .sidebar-menu {
        max-height: calc(100vh - 180px);
    }
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.user-panel {
    flex-shrink: 0;
    margin-top: auto;
}
/* پایان اسکرول منو */


/* استایل‌های جدید برای بخش‌های پیشرفته */
.efficiency-stats .stat-item {
    border-right: 4px solid #17a2b8;
    transition: all 0.3s ease;
}

    .efficiency-stats .stat-item:hover {
        background-color: #e9ecef !important;
        transform: translateX(-5px);
    }

.map-container {
    position: relative;
}

    .map-container img {
        border: 3px solid #dee2e6;
        transition: all 0.3s ease;
    }

        .map-container img:hover {
            border-color: #007bff;
            transform: scale(1.02);
        }

.comparison-chart-container {
    position: relative;
}

/* استایل برای جدول مقایسه‌ای */
#comparisonTable th {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    font-weight: 600;
    text-align: center;
}

#comparisonTable td {
    text-align: center;
    vertical-align: middle;
}

#comparisonTable tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* رسپانسیو */
@media (max-width: 768px) {
    .efficiency-stats {
        margin-top: 20px;
    }

    .map-container {
        margin-bottom: 20px;
    }

    #comparisonTable {
        font-size: 0.8rem;
    }
}

/* اضافه کردن به فایل CSS */
.toast-warning, .toast-error {
    font-family: Vazirmatn, Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
}

#efficiencyChartSection {
    transition: all 0.3s ease;
}

.stat-item {
    border-right: 4px solid #007bff;
}

    .stat-item:nth-child(2) {
        border-right-color: #28a745;
    }

    .stat-item:nth-child(3) {
        border-right-color: #ffc107;
    }