﻿/* استایل دکمه شناور چت‌بات */
/* تنظیم فاصله برای محتوای اصلی */
/* تنظیم فاصله برای محتوای اصلی */
/* اطمینان از اینکه container فاصله اضافی ایجاد نمی‌کنه */
.container {
    padding-top: 0;
}
.chat-guide-panel {
    position: fixed;
    bottom: 80px;
    left: 20px; /* تغییر به سمت چپ */
    width: 350px;
    height: 500px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1050;
    display: none;
    flex-direction: column;
    font-family: Tahoma;
}

.chat-header {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .chat-header h6 {
        margin: 0;
        font-size: 1.1rem;
    }

    .chat-header button {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

.chat-stage-title {
    padding: 10px;
    background: #e3f2fd;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto; /* اسکرول همیشه فعال */
    background: #f8f9fa;
    max-height: 350px; /* ارتفاع ثابت برای جلوگیری از تغییر سایز پنل */
}

.chat-input-container {
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
    border-radius: 0 0 15px 15px;
    display: flex;
    align-items: center;
    position: sticky; /* ثابت نگه داشتن بخش ورودی */
    bottom: 0;
}

.chat-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    resize: none;
    font-family: Tahoma;
}

.chat-send-btn {
    margin-left: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    font-family: Tahoma;
    cursor: pointer;
}

.chat-open-btn {
    position: fixed;
    bottom: 150px;
    left: 20px; /* تغییر به سمت چپ */
    z-index: 1050;
    background: linear-gradient(to bottom, #007bff, #0056b3);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,123,255,0.4);
    cursor: pointer;
    font-size: 1.8rem;
}
.banner-video {
    width: 100%;
    height: 300px; /* ارتفاع دلخواه */
    overflow: hidden;
    position: relative;
}

    .banner-video video {
        width: 100%;
        height: 100%;
        object-fit: cover; /* برای پر کردن container بدون اعوجاج */
    }
.chatbot-toggle-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* تغییر از right به left */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c4cc, #007bff); /* گرادیانت جذاب */
    color: #fff;
    border: none;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chatbot-message-options {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.chatbot-message-option {
    padding: 10px;
    margin: 5px 0;
    background-color: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #333;
}

    .chatbot-message-option:hover {
        background-color: #e9ecef;
    }

.response-content {
    margin-top: 10px;
    padding: 10px;
    background-color: #e6f3ff;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.1); /* افکت بزرگ شدن هنگام هاور */
    background: linear-gradient(135deg, #0097a7, #0056b3);
}

#chatbotContent .deep-seek-chat-container {
    max-height: 80vh; /* محدود کردن ارتفاع برای اسکرول */
    overflow-y: auto;
    padding: 10px;
}

#chatbotContent #chat-box {
    max-height: 300px; /* تنظیم ارتفاع چت‌باکس داخل offcanvas */
}
/* انیمیشن پالس */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }
}

.chatbot-toggle-btn {
    animation: pulse 2s infinite;
}

/* استایل بخش انتخاب اولیه */
.chatbot-selection {
    text-align: center;
}

.chatbot-selection-header {
    margin-bottom: 20px;
}

    .chatbot-selection-header p {
        font-size: 1.1rem;
        color: #34495e;
        font-weight: 500;
    }

.chatbot-selection-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.chatbot-selection-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .chatbot-selection-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

.chatbot-selection-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 10px;
}

.chatbot-selection-card h6 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.chatbot-selection-card p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0;
}

/* استایل‌های چت‌بات (بخش‌های قبلی بدون تغییر) */
.chatbot-container {
    direction: rtl;
    padding: 15px;
}

.chatbot-header {
    text-align: center;
    margin-bottom: 20px;
}

    .chatbot-header h3 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .chatbot-header p {
        font-size: 1rem;
        color: #666;
    }

.chatbot-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.chat-message.bot-message {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    cursor: pointer;
}

.chatbot-options ul {
    list-style: none;
    padding: 0;
}

.chatbot-options .chatbot-option {
    padding: 10px;
    margin-bottom: 5px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

    .chatbot-options .chatbot-option:hover {
        background-color: #0056b3;
    }

.chatbot-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.chat-message {
    margin-bottom: 10px;
}

.bot-message {
    text-align: right;
    background-color: #f1f1f1;
    padding: 8px;
    border-radius: 5px;
}

.user-message {
    text-align: left;
    background-color: #007bff;
    color: white;
    padding: 8px;
    border-radius: 5px;
}


.live-chat-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .live-chat-input textarea {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 5px;
        resize: none;
    }

    .live-chat-input button {
        align-self: flex-end;
    }
/* استایل‌های منوی کشویی پروفایل */
.offcanvas-body .profile-menu-item {
    display: block; /* آیتم‌ها به صورت عمودی نمایش داده شوند */
    margin-bottom: 15px; /* فاصله بین آیتم‌ها */
    text-align: right; /* تراز متن به راست برای زبان فارسی */
}

    .offcanvas-body .profile-menu-item a {
        display: block; /* لینک‌ها به صورت بلوک نمایش داده شوند */
        color: #333; /* رنگ متن */
        text-decoration: none; /* حذف زیرخط لینک */
        padding: 10px 15px; /* فاصله داخلی */
        transition: background-color 0.3s; /* انیمیشن برای تغییر رنگ پس‌زمینه */
    }

        .offcanvas-body .profile-menu-item a:hover {
            background-color: #f5f5f5; /* رنگ پس‌زمینه هنگام هاور */
        }

/* استایل زیرمنو */
.offcanvas-body .has-submenu .submenu {
    display: none; /* زیرمنو به صورت پیش‌فرض مخفی باشد */
    padding-right: 20px; /* فاصله از سمت راست برای زیرمنو */
}

.offcanvas-body .has-submenu.active .submenu {
    display: block; /* زیرمنو هنگام فعال شدن نمایش داده شود */
}

.offcanvas-body .submenu li {
    display: block; /* آیتم‌های زیرمنو به صورت عمودی */
}

    .offcanvas-body .submenu li a {
        display: block; /* لینک‌های زیرمنو به صورت بلوک */
        color: #555; /* رنگ متن زیرمنو */
        padding: 8px 15px; /* فاصله داخلی */
        text-decoration: none; /* حذف زیرخط لینک */
    }

        .offcanvas-body .submenu li a:hover {
            background-color: #f5f5f5; /* رنگ پس‌زمینه هنگام هاور */
        }

/* آیکون‌ها */
.offcanvas-body .profile-menu-item i {
    margin-left: 10px; /* فاصله آیکون از متن */
}

/* آیکون زیرمنو */
.offcanvas-body .submenu-toggle {
    float: left; /* آیکون فلش به سمت چپ برای زبان فارسی */
}
/* استایل‌های انتخاب دسته‌بندی پرونده */
.category-way-container {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step h5 {
    font-size: 1.3rem;
    color: #34495e;
    margin-bottom: 20px;
}
/* افزایش فاصله عمودی برای بخش‌ها */
/* افزایش فاصله عمودی برای بخش‌ها */
.section.optech-section-padding {
    padding-top: 150px !important; /* فاصله بیشتر از بالا */
    padding-bottom: 60px !important;
}

/* بهبود استایل کارت‌ها برای دیده شدن بهتر */
.card-option {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* سایه قوی‌تر */
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin-bottom: 20px; /* فاصله بین کارت‌ها */
    min-height: 100px; /* ارتفاع حداقل برای کارت‌ها */
}

    .card-option:hover {
        transform: translateY(-5px);
        background-color: #f8f9fa;
    }

    .card-option.selected {
        background-color: #00c4cc;
        color: #ffffff;
    }

        .card-option.selected i {
            color: #ffffff !important;
        }

.card-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* اطمینان از فاصله مناسب بین مراحل */
.step {
    margin-bottom: 40px;
}

/* تنظیمات برای کانتینر کارت‌ها */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* فاصله بین کارت‌ها */
}

/* تنظیمات برای آیکون‌ها */
.card-option i {
    font-size: 2rem;
    margin-left: 15px;
    color: #00c4cc;
}

/* استایل برای کانتینر اصلی */
.category-way-container {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px; /* فاصله داخلی بیشتر */
    max-width: 1000px;
    margin: 0 auto;
}

.chatbot-back-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

    .chatbot-back-btn i {
        font-size: 16px;
    }

    .chatbot-back-btn:hover {
        color: #0056b3;
    }

@font-face {
    font-family: 'MyFont'; /* یه اسم برای فونت انتخاب کن */
    src: url('/assets/fonts/IranNastaliq.ttf') format('truetype'); /* مسیر فونت رو مشخص کن */
    font-weight: normal;
    font-style: normal;
}

.custom-font {
    font-family: 'MyFont', sans-serif !important; /* فونت دلخواهت رو اعمال کن */
}

.case-details {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

    .case-details strong {
        color: #2c3e50;
        display: inline-block;
        width: 120px;
    }

.optech-default-btn.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .optech-default-btn.btn-primary:hover {
        background-color: #0056b3;
        border-color: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    }
/* استایل برای پس‌زمینه فرم */
.optech-contact-wrap.light-bg {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* استایل برای عنوان */
.optech-contact-wrap h2 {
    font-size: 1.8rem;
    color: #007bff;
}

/* استایل برای لیبل */
.form-label {
    font-size: 1.1rem;
    color: #2c3e50;
}

/* استایل برای ورودی */
.form-control {
    background-color: #f8f9fa;
    color: #2c3e50;
    border-color: #ced4da;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus {
        background-color: #f8f9fa;
        color: #2c3e50;
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    }

    .form-control::placeholder {
        color: #6c757d;
    }

/* استایل برای دکمه جستجو */
.optech-default-btn.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .optech-default-btn.btn-primary:hover {
        background-color: #0056b3;
        border-color: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    }

/* استایل برای دکمه چت */
.chat-button {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    border: none;
    text-decoration: none;
    font-size: 14px;
    border-radius: 5px;
    transition: 0.3s;
}

    .chat-button:hover {
        background-color: #0056b3;
    }

/* استایل برای جدول */
.table th, .table td {
    vertical-align: middle;
    text-align: center;
}

.table th {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.table-hover tbody tr:hover {
    background-color: #f1f5f9;
}
/* استایل‌های صفحه چت با هوش مصنوعی */
.deep-seek-chat-page .deep-seek-chat-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* استایل wallet */
.deep-seek-chat-page .wallet-info {
    text-align: left;
    margin-bottom: 20px;
    font-size: 16px;
    color: #2c3e50;
}

    .deep-seek-chat-page .wallet-info label {
        background-color: #e9ecef;
        padding: 5px 10px;
        border-radius: 5px;
    }

/* استایل باکس چت */
.deep-seek-chat-page #chat-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.deep-seek-chat-page #chat-box {
    border: 1px solid #ced4da;
    border-radius: 8px;
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
}

/* استایل پیام‌ها */
.deep-seek-chat-page .message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    max-width: 70%;
    word-wrap: break-word;
}

.deep-seek-chat-page .user-message {
    background-color: #007bff;
    color: white;
    margin-right: auto;
    margin-left: 20%;
    text-align: right;
}

.deep-seek-chat-page .ai-message {
    background-color: #e9ecef;
    color: #2c3e50;
    margin-left: auto;
    margin-right: 20%;
    text-align: left;
}

.deep-seek-chat-page .message strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

/* استایل باکس ورودی پیام */
.deep-seek-chat-page #question-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.deep-seek-chat-page #messageInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease;
}

    .deep-seek-chat-page #messageInput:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    }

/* استایل دکمه ارسال */
.deep-seek-chat-page #sendButton {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .deep-seek-chat-page #sendButton:hover {
        background-color: #0056b3;
    }

/* استایل دکمه‌های اتمام و نظرات */
.deep-seek-chat-page #buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.deep-seek-chat-page #finishButton,
.deep-seek-chat-page #commentButton {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .deep-seek-chat-page #finishButton:hover,
    .deep-seek-chat-page #commentButton:hover {
        background-color: #218838;
    }

    .deep-seek-chat-page #commentButton:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
    }

/* استایل عنوان بخش */
.deep-seek-chat-page .optech-section-title h2 {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
}

.deep-seek-chat-page .optech-section-title p {
    font-size: 1.1rem;
    color: #6c757d;
}
/* استایل‌های صفحه انتخاب موضوع مشاوره */
.legal-advice-page .optech-section-title h2 {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
}

.legal-advice-page .optech-section-title p {
    font-size: 1.1rem;
    color: #6c757d;
}

.legal-advice-page .legal-advice-form-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

/* استایل پیام اطلاع‌رسانی */
.legal-advice-page .alert {
    margin-bottom: 20px;
    font-size: 16px;
}

/* استایل فرم */
.legal-advice-page .form-group {
    margin-bottom: 20px;
}

    .legal-advice-page .form-group label {
        font-size: 16px;
        color: #2c3e50;
        margin-bottom: 8px;
        display: block;
    }

.legal-advice-page .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .legal-advice-page .form-control:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    }

/* استایل textarea */
.legal-advice-page #limitedTextarea {
    resize: vertical;
    min-height: 120px;
}

/* استایل دکمه ارسال */
.legal-advice-page .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

    .legal-advice-page .btn-primary:hover {
        background-color: #0056b3;
        border-color: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    }
/* استایل‌های صفحه انتخاب نوع پرونده */
.section.questionnaire-page {
    direction: rtl;
    font-family: 'Vazir', sans-serif; /* فرضاً فونت فارسی استفاده می‌کنی */
    margin-top: 100px; /* فاصله از بالا برای جلوگیری از تداخل با navbar */
}

    /* استایل عنوان */
    .section.questionnaire-page h2 {
        font-size: 2rem;
        color: #007bff;
        text-align: center;
        margin-bottom: 20px;
    }

    /* استایل فرم */
    .section.questionnaire-page #questionnaireForm {
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 30px;
        max-width: 600px;
        margin: 0 auto;
    }

    /* استایل گروه‌های فرم */
    .section.questionnaire-page .form-group {
        margin-bottom: 20px;
    }

        .section.questionnaire-page .form-group label {
            font-size: 16px;
            color: #2c3e50;
            margin-bottom: 8px;
            display: block;
        }

        /* استایل dropdownها */
        .section.questionnaire-page .form-group .form-control {
            width: 100%;
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 8px;
            font-size: 16px;
            background-color: #f8f9fa;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

            .section.questionnaire-page .form-group .form-control:focus {
                outline: none;
                border-color: #007bff;
                box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
            }

    /* استایل Select2 (برای dropdownهای پیشرفته) */
    .section.questionnaire-page .select2-container--default .select2-selection--single {
        border: 1px solid #ced4da;
        border-radius: 8px;
        height: 40px;
        background-color: #f8f9fa;
    }

        .section.questionnaire-page .select2-container--default .select2-selection--single .select2-selection__rendered {
            line-height: 40px;
            font-size: 16px;
            color: #2c3e50;
        }

        .section.questionnaire-page .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: 40px;
        }

        .section.questionnaire-page .select2-container--default .select2-selection--single:focus {
            border-color: #007bff;
            box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
        }

    /* استایل دکمه ذخیره */
    .section.questionnaire-page .btn-primary {
        background-color: #007bff;
        border-color: #007bff;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s ease;
        width: 100%;
        display: block;
        text-align: center;
    }

        .section.questionnaire-page .btn-primary:hover {
            background-color: #0056b3;
            border-color: #0056b3;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
        }
/* استایل‌های صفحه لیست قراردادها */
.section.contract-list-page {
    direction: rtl;
    font-family: 'Vazir', sans-serif; /* فرضاً فونت فارسی استفاده می‌کنی */
    margin-top: 100px; /* فاصله از بالا برای جلوگیری از تداخل با navbar */
}

    /* استایل عنوان بخش */
    .section.contract-list-page .optech-section-title.center {
        text-align: center;
    }

        .section.contract-list-page .optech-section-title.center h2 {
            font-size: 2rem;
            color: #007bff;
            margin-bottom: 10px;
        }

        .section.contract-list-page .optech-section-title.center p {
            font-size: 1.1rem;
            color: #6c757d;
        }

    /* استایل پیام خالی */
    .section.contract-list-page .text-muted {
        font-size: 16px;
        color: #6c757d;
    }

    /* استایل جدول */
    .section.contract-list-page .contract-table {
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        overflow: hidden; /* برای گرد کردن گوشه‌های جدول */
    }

        .section.contract-list-page .contract-table thead {
            background-color: #007bff;
            color: white;
        }

            .section.contract-list-page .contract-table thead th {
                font-size: 16px;
                padding: 12px;
                text-align: center;
            }

        .section.contract-list-page .contract-table tbody tr {
            transition: background-color 0.3s ease;
        }

            .section.contract-list-page .contract-table tbody tr:hover {
                background-color: #f8f9fa;
            }

        .section.contract-list-page .contract-table tbody td {
            font-size: 14px;
            padding: 12px;
            text-align: center;
            vertical-align: middle;
        }

    /* استایل badge‌ها */
    .section.contract-list-page .badge {
        font-size: 14px;
        padding: 6px 12px;
        border-radius: 12px;
    }

        .section.contract-list-page .badge.bg-success {
            background-color: #28a745 !important;
        }

        .section.contract-list-page .badge.bg-danger {
            background-color: #dc3545 !important;
        }

        .section.contract-list-page .badge.bg-warning {
            background-color: #ffc107 !important;
            color: #212529 !important;
        }

    /* استایل دکمه جزئیات */
    .section.contract-list-page .contract-details-btn {
        background-color: #17a2b8;
        border-color: #17a2b8;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.3s ease;
    }

        .section.contract-list-page .contract-details-btn:hover {
            background-color: #138496;
            border-color: #138496;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
        }

/* استایل‌های صفحه جزئیات درخواست مطالعه پرونده */
.section.request-read-case-details-page {
    direction: rtl;
    font-family: 'Vazir', sans-serif;
    margin-top: 100px;
}

    /* استایل عنوان بخش */
    .section.request-read-case-details-page .optech-section-title.center {
        text-align: center;
    }

        .section.request-read-case-details-page .optech-section-title.center h2 {
            font-size: 2rem;
            color: #007bff;
            margin-bottom: 10px;
        }

    /* استایل باکس جزئیات */
    .section.request-read-case-details-page .request-details {
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 20px;
        max-width: 800px;
        margin: 0 auto;
    }

        .section.request-read-case-details-page .request-details strong {
            color: #2c3e50;
            display: inline-block;
            width: 150px;
        }

    /* استایل badge‌ها */
    .section.request-read-case-details-page .badge {
        font-size: 14px;
        padding: 6px 12px;
        border-radius: 12px;
    }

        .section.request-read-case-details-page .badge.bg-success {
            background-color: #28a745 !important;
        }

        .section.request-read-case-details-page .badge.bg-danger {
            background-color: #dc3545 !important;
        }

        .section.request-read-case-details-page .badge.bg-warning {
            background-color: #ffc107 !important;
            color: #212529 !important;
        }

    /* استایل دکمه بازگشت */
    .section.request-read-case-details-page .btn-primary {
        background-color: #007bff;
        border-color: #007bff;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s ease;
    }

        .section.request-read-case-details-page .btn-primary:hover {
            background-color: #0056b3;
            border-color: #0056b3;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
        }
/* استایل‌های صفحه جزئیات قرارداد ثابت */
.section.static-contract-details-page {
    direction: rtl;
    font-family: 'Vazir', sans-serif;
    margin-top: 100px; /* فاصله از navbar */
}

    /* استایل عنوان بخش */
    .section.static-contract-details-page .optech-section-title.center {
        text-align: center;
    }

        .section.static-contract-details-page .optech-section-title.center h2 {
            font-size: 2rem;
            color: #007bff;
            margin-bottom: 20px;
        }

    /* استایل پیام‌های موفقیت و خطا */
    .section.static-contract-details-page .alert {
        margin-bottom: 20px;
        font-size: 16px;
    }

    /* استایل باکس جزئیات قرارداد */
    .section.static-contract-details-page .contract-details {
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 20px;
        margin-bottom: 20px;
    }

        .section.static-contract-details-page .contract-details h3 {
            font-size: 1.5rem;
            color: #2c3e50;
            margin-bottom: 20px;
            text-align: center;
        }

        .section.static-contract-details-page .contract-details strong {
            color: #2c3e50;
            display: inline-block;
            width: 120px;
        }

    /* استایل بندهای قرارداد */
    .section.static-contract-details-page .contract-clauses {
        background-color: #f8f9fa;
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
    }

        .section.static-contract-details-page .contract-clauses h4 {
            font-size: 1.25rem;
            color: #2c3e50;
            margin-bottom: 15px;
        }

        .section.static-contract-details-page .contract-clauses ul {
            list-style-type: disc;
            padding-right: 20px;
        }

        .section.static-contract-details-page .contract-clauses li {
            font-size: 16px;
            color: #6c757d;
            margin-bottom: 10px;
        }

    /* استایل دکمه پذیرش */
    .section.static-contract-details-page .contract-accept-btn {
        background-color: #007bff;
        border-color: #007bff;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s ease;
    }

        .section.static-contract-details-page .contract-accept-btn:hover {
            background-color: #0056b3;
            border-color: #0056b3;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
        }
/* استایل‌های هدر */
.site-header.optech-header-section {
    direction: rtl;
    font-family: 'Vazir', sans-serif;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed; /* جایگزین sticky */
    top: 0;
    width: 100%;
    z-index: 1000;
    min-height: 10px; /* ارتفاع ثابت */
}

main.main-content {
    padding-top: 150px; /* فاصله برای جلوگیری از تداخل با هدر */
}

.optech-preloader-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

    .optech-preloader-wrap[style*="display: none"] {
        display: none !important;
    }
/* استایل لوگو */
.site-header.optech-header-section .brand-logo img {
    max-height: 50px;
}

/* استایل منوی اصلی */
.site-header.optech-header-section .site-menu-main {
    display: flex;
    gap: 20px;
}

    .site-header.optech-header-section .site-menu-main .nav-item {
        display: flex;
        align-items: center;
    }

    .site-header.optech-header-section .site-menu-main .nav-link-item {
        font-size: 16px;
        color: #2c3e50;
        padding: 10px 15px;
        transition: color 0.3s ease;
    }

        .site-header.optech-header-section .site-menu-main .nav-link-item:hover {
            color: #007bff;
        }

/* استایل دکمه پروفایل */
.site-header.optech-header-section .user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007bff !important;
    font-weight: 500;
}

    .site-header.optech-header-section .user-profile-btn i {
        font-size: 18px;
    }

/* استایل دکمه خروج */
/* استایل container دکمه خروج */
.logout-container {
    margin-left: 20px; /* فاصله از سمت چپ */
    display: flex;
    align-items: center;
}

/* استایل دکمه خروج */
.site-header.optech-header-section .logout-btn {
    background: linear-gradient(135deg, #007bff, #00c4cc); /* گرادیانت آبی هماهنگ با تم */
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Vazir', sans-serif;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

    .site-header.optech-header-section .logout-btn:hover {
        background: linear-gradient(135deg, #0056b3, #0097a7);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    }
/* استایل منوی موبایل */
.site-header.optech-header-section .mobile-menu-trigger {
    display: none;
}

@media (max-width: 992px) {
    .site-header.optech-header-section .mobile-menu-trigger {
        display: block;
    }

    .site-header.optech-header-section .menu-block-wrapper {
        display: none;
    }
}

/* استایل منوی پروفایل (Offcanvas) */
.profile-offcanvas {
    width: 300px !important;
    background-color: #f8f9fa;
}

    .profile-offcanvas .offcanvas-header {
        background-color: #007bff;
        color: white;
    }

        .profile-offcanvas .offcanvas-header .offcanvas-title {
            font-size: 18px;
            font-weight: 500;
        }

        .profile-offcanvas .offcanvas-header .btn-close {
            filter: invert(1); /* برای سفید کردن آیکون بستن */
        }

    /* استایل آیتم‌های منو */
    .profile-offcanvas .offcanvas-body .profile-menu-item {
        margin-bottom: 10px;
    }

    .profile-offcanvas .offcanvas-body .profile-menu-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
        font-size: 16px;
        color: #2c3e50;
        background-color: #ffffff;
        border-radius: 8px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        .profile-offcanvas .offcanvas-body .profile-menu-link:hover {
            background-color: #007bff;
            color: white;
        }

        .profile-offcanvas .offcanvas-body .profile-menu-link i {
            font-size: 18px;
        }

    /* استایل زیرمنو */
    .profile-offcanvas .offcanvas-body .has-submenu .submenu {
        display: none;
        margin-top: 5px;
        padding-right: 20px;
    }

    .profile-offcanvas .offcanvas-body .has-submenu.active .submenu {
        display: block;
    }

    .profile-offcanvas .offcanvas-body .submenu li {
        margin-bottom: 5px;
    }

    .profile-offcanvas .offcanvas-body .submenu .submenu-link {
        display: block;
        padding: 8px 15px;
        font-size: 14px;
        color: #6c757d;
        border-radius: 8px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        .profile-offcanvas .offcanvas-body .submenu .submenu-link:hover {
            background-color: #e9ecef;
            color: #2c3e50;
        }

    /* استایل آیکون زیرمنو */
    .profile-offcanvas .offcanvas-body .has-submenu .submenu-toggle {
        margin-right: auto;
        transition: transform 0.3s ease;
    }

    .profile-offcanvas .offcanvas-body .has-submenu.active .submenu-toggle {
        transform: rotate(180deg);
    }

.select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}
/* تنظیم فاصله عمودی برای بخش About */
.section.large-padding-tb {
    padding-top: 50px !important; /* فاصله مناسب از بالا */
    padding-bottom: 80px !important; /* افزایش فاصله از پایین برای نمایش بهتر بنر */
}

/* کاهش فاصله عمودی برای بخش Services */
.section.optech-section-padding {
    padding-top: 60px !important; /* فاصله بیشتر از بالا برای جداسازی از بنر */
    padding-bottom: 40px !important; /* فاصله معقول از پایین */
}

/* تنظیم اندازه تصویر بنر */
.optech-thumb img {
    max-height: 400px; /* افزایش ارتفاع تصویر بنر برای دیده شدن بهتر */
    width: auto; /* حفظ نسبت تصویر */
}

/* تنظیمات اضافی برای جلوگیری از فاصله‌های ناخواسته */
.container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* تنظیم فاصله محتوای اصلی برای هماهنگی با هدر */
main.main-content {
    padding-top: 100px !important; /* تنظیم فاصله از هدر ثابت */
}

/* کاهش حاشیه‌های اضافی در optech-default-content */
.optech-default-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* تنظیمات برای فشرده‌تر کردن بخش About */
.optech-thumb.extra-mr {
    margin-right: 0 !important; /* حذف حاشیه اضافی */
}

/* تنظیمات برای تصاویر کوچک‌تر در بنر */
.optech-thumb-position img {
    max-height: 200px; /* کاهش اندازه تصویر کوچک‌تر در بنر */
}

/* اطمینان از اینکه شکل‌ها (shapes) فضای اضافی اشغال نمی‌کنند */
.optech-shape1, .optech-shape2 {
    max-height: 100px; /* کاهش اندازه شکل‌ها */
}
/* استایل کلی فوتر */
.optech-footer-section {
    background-color: #1a1a1a; /* پس‌زمینه تیره و شیک */
    color: #ffffff; /* رنگ متن سفید برای کنتراست */
    padding: 40px 0 20px; /* کاهش padding برای جمع‌وجور شدن */
    font-family: 'CustomFont', sans-serif; /* استفاده از فونت سفارشی */
}

/* لوگو */
.footer-logo {
    max-width: 150px; /* اندازه مناسب برای لوگو */
    height: auto;
    margin-bottom: 15px;
}

/* متن توضیحات زیر لوگو */
.optech-footer-textarea p {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc; /* رنگ روشن‌تر برای متن توضیحات */
    margin: 0;
}

/* عنوان‌های فوتر */
.optech-footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

/* لیست لینک‌ها */
.optech-footer-menu ul,
.optech-footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.optech-footer-menu li,
.optech-footer-social li {
    margin-bottom: 10px;
}

.optech-footer-menu a,
.optech-footer-social a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

    .optech-footer-menu a:hover,
    .optech-footer-social a:hover {
        color: #00aaff; /* رنگ آبی برای هاور */
    }

/* آیکون‌های شبکه‌های اجتماعی */
.social-icon i {
    margin-right: 8px;
    font-size: 16px;
}

/* بخش کپی‌رایت */
.optech-footer-bottom {
    border-top: 1px solid #333333; /* خط جداکننده ظریف */
    padding-top: 20px;
    text-align: center;
}

.optech-copywright p {
    font-size: 13px;
    color: #999999;
    margin: 0;
}

/* تنظیمات ریسپانسیو */
@media (max-width: 767px) {
    .optech-footer-top .col-md-6,
    .optech-footer-top .col-md-3 {
        margin-bottom: 30px;
    }

    .optech-footer-title {
        font-size: 16px;
    }

    .optech-footer-menu a,
    .optech-footer-social a {
        font-size: 13px;
    }
}
/* استایل بخش درباره ما */
.optech-about-section {
    background-color: #f8f9fa; /* پس‌زمینه روشن */
    padding: 60px 0; /* فاصله‌گذاری مناسب */
    font-family: 'CustomFont', sans-serif;
}

/* سرفصل اصلی */
.optech-section-title {
    margin-bottom: 40px;
}

    .optech-section-title h2 {
        font-size: 32px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .optech-section-title h2 i {
            margin-right: 10px;
            color: #00aaff;
        }

    .optech-section-title p {
        font-size: 16px;
        color: #666666;
    }

/* محتوای بخش‌ها */
.optech-about-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

    .optech-about-content h3 i {
        margin-right: 10px;
        color: #00aaff;
    }

.optech-about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 20px;
}

/* لیست ویژگی‌ها */
.optech-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .optech-feature-list li {
        font-size: 15px;
        color: #555555;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }

        .optech-feature-list li i {
            margin-right: 10px;
            color: #00aaff;
            font-size: 18px;
        }

/* کارت‌های ویژگی */
.optech-feature-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

    .optech-feature-card:hover {
        transform: translateY(-5px); /* افکت بالا آمدن */
    }

    .optech-feature-card i {
        font-size: 32px;
        color: #00aaff;
        margin-bottom: 15px;
    }

    .optech-feature-card h4 {
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 10px;
    }

    .optech-feature-card p {
        font-size: 14px;
        color: #666666;
        margin: 0;
    }

/* دکمه CTA */
.optech-btn.primary-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #00aaff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

    .optech-btn.primary-btn:hover {
        background-color: #0088cc;
    }

/* تنظیمات ریسپانسیو */
@media (max-width: 767px) {
    .optech-section-title h2 {
        font-size: 28px;
    }

    .optech-about-content h3 {
        font-size: 20px;
    }

    .optech-feature-card {
        margin-bottom: 30px;
    }

    .optech-btn.primary-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
#chatbotOffcanvas .offcanvas-body {
    padding: 10px;
    overflow-y: auto; /* اسکرول عمودی برای offcanvas */
    max-height: 100vh; /* محدود کردن ارتفاع به اندازه viewport */
    box-sizing: border-box;
}

#chatbotContainer {
    display: none; /* به صورت پیش‌فرض مخفی، توسط JS فعال می‌شه */
    width: 100%;
    min-height: 300px; /* حداقل ارتفاع برای جلوگیری از فشرده شدن */
}

#chatbotContent {
    width: 100%;
    min-height: 200px; /* حداقل ارتفاع برای نمایش محتوای PartialView */
    display: block; /* اطمینان از نمایش */
    overflow-y: auto; /* اسکرول داخلی برای محتوای بزرگ */
}

#chatbot-messages, .chatbot-options {
    display: none; /* مخفی کردن در حالت ai-chat */
}

/* لودر گرافیکی */
.chat-loading-spinner {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #007bff;
}

    .chat-loading-spinner::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid #007bff;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 10px;
        vertical-align: middle;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.discount-section {
    padding: .75rem 1rem;
    font-size: .85rem;
}

    .discount-section .form-label {
        font-size: .8rem;
        margin-bottom: .25rem;
    }

    .discount-section .form-control,
    .discount-section .btn {
        font-size: .8rem;
        padding: .25rem .5rem;
        height: auto;
    }

#finalPriceSection {
    padding: .75rem 1rem;
    font-size: .9rem;
}

#walletWarning .alert {
    margin-bottom: 0;
}
