/* ==========================================================================
   ۱. تنظیمات پایه و متغیرها
   ========================================================================== */
:root {
    --primary-color: #6e8efb;
    --secondary-color: #a777e3;
    --bg-light: #f4f7fe;
    --card-radius: 20px;
    --glass-bg: rgba(255, 255, 255, 0.85);
}

body {
    margin: 0; padding-top: 1px; padding-right:2.5%; width: 95%; direction: rtl; z-index: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-image: url('https://my.gguide.ir/images/template/cubes.png?1770846766') !important;
        background-attachment: fixed; 
        background-color: #f4f7f6;
        background-position: right top; /* چسبیدن به بالا و سمت راست */
    text-rendering: optimizeLegibility;
}

/* اصلاح فاصله محتوا از هدر برای جلوگیری از هم‌پوشانی */
.container {
    padding-top: 40px;
    min-height: 80vh;
}

a, a:hover, a:focus {
    text-decoration: none;
    outline: none;
}

footer {
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   ۲. هدر کپسولی (Top Header)
   ========================================================================== */
.floating-header {
    position: fixed; top: 5px; left: 50%; transform: translateX(-50%);
    width: var(--h-width, 90%); height: 65px;
    background: var(--h-bg, rgba(255, 255, 255, 0.3));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: var(--h-radius, 50%); z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex; align-items: center;
}

.header-container {
    position: relative; /* لنگرگاه برای دکمه‌های داخلی */
    display: flex; width: 100%; align-items: center; justify-content: center;
}

.header-icon-btn {
    width: 45px; height: 45px; background: var(--primary-color); color: #fff;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; cursor: pointer; transition: 0.3s;
}

.header-icon-btn:hover { transform: scale(1.1); background: #5a7be0; }
.header-center img { max-height: 40px; width: auto; }


/* ==========================================================================
   ۳. منوهای چسبنده دو طرف (Sticky Menus) - بخش حیاتی
   ========================================================================== */
.side-sticky-menu {
    position: absolute; /* به جای fixed */
    top: 50%; transform: translateY(-50%);
    cursor: pointer; z-index: 1001;
}

.side-right { right: 25px; }
.side-left { left: 25px; }

.parallax-icon-btn {
    width: 50px; height: 50px; background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    color: var(--primary-color); font-size: 20px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.side-sticky-menu:hover .parallax-icon-btn {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color); color: #fff;
}

/* ==========================================================================
   ۴. پنل‌های کشویی (Off-canvas)
   ========================================================================== */
.off-canvas-panel {
    position: fixed; top: 0; width: 300px; height: 100%;
    background: #fff; z-index: 3000; display: flex; flex-direction: column;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 0 40px rgba(0,0,0,0.1); visibility: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh; /* ارتفاع کامل صفحه */
    overflow: hidden; /* جلوگیری از اسکرول دوگانه */
}

.panel-right { right: -300px; border-radius: 30px 0 0 30px; }
.panel-left { left: -300px; border-radius: 0 30px 30px 0; }
.panel-right.active { right: 0; visibility: visible; }
.panel-left.active { left: 0; visibility: visible; }


/* بخش محتوا باید قابلیت اسکرول داشته باشد */
.off-canvas-panel .panel-content {
    flex: 1; /* تمام فضای باقی‌مانده را بگیرد */
    overflow-y: auto; /* فعال‌سازی اسکرول عمودی */
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
    padding: 25px 20px !important;
    
    /* شخصی‌سازی نوار اسکرول برای زیبایی بیشتر (اختیاری) */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

/* استایل نوار اسکرول برای مرورگرهای Chrome/Safari */
.off-canvas-panel .panel-content::-webkit-scrollbar {
    width: 5px;
}
.off-canvas-panel .panel-content::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

/* ==========================================================================
   ۵. استایل‌های جدید برای پروژه و چت (UX بهبود یافته)
   ========================================================================== */

.gguide-chat-wrapper {
    display: flex; gap: 25px; direction: rtl; width: 100%; align-items: flex-start;
}

.chat-sidebar-info {
    width: 320px; min-width: 320px; position: sticky; top: 100px;
    display: flex; flex-direction: column; gap: 20px; order: 1;
}

.chat-main-area { flex: 1; order: 2; background: transparent; }

/* ناحیه نمایش پیام‌ها با قابلیت تغییر ارتفاع */
.chat-messages {
    height: 600px; min-height: 400px; resize: vertical; overflow-y: auto;
    background: #fff; padding: 25px; border-radius: 25px; margin-bottom: 20px;
    display: flex; flex-direction: column; box-shadow: var(--shadow);
}

/* ۲. مهندسی حباب‌های پیام (یکپارچه شده) */
.msg-bubble {
    padding: 12px 18px; margin-bottom: 15px; border-radius: 20px;
    max-width: 80%; line-height: 1.8; position: relative; font-size: 14px;
    clear: both; transition: all 0.2s ease;
}

/* پیام‌های من (فرستنده) */
.msg-me { 
    background: var(--primary-color); color: #fff; align-self: flex-start; 
    border-bottom-right-radius: 4px; box-shadow: 0 4px 15px rgba(110, 142, 251, 0.2);
}

/* پیام‌های طرف مقابل */
.msg-other { 
    background: #f1f5f9; color: #334155; align-self: flex-end; 
    border-bottom-left-radius: 4px; 
}

/* پیام‌های سیستمی و فایل‌ها */
.msg-system-text {
    background: #fff9db; align-self: center; text-align: center;
    color: #856404; width: 85%; border-radius: 15px; padding: 12px; margin: 20px 0;
    font-size: 13px; border: 1px solid #ffeeba;
}

.msg-system-file {
    align-self: center !important; width: 90%; background: #f8fafc;
    border: 2px dashed var(--primary-color); border-radius: 20px; padding: 20px; margin: 20px 0;
}

/* ۳. جزییات داخلی پیام (فرستنده و پیوست) */
.sender-info {
    display: flex; flex-direction: column; margin-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 4px;
}
.role-text { font-size: 10px; opacity: 0.8; font-weight: bold; }
.name-text { font-size: 12px; font-weight: 800; }

.attachment-box {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px !important; margin-top: 8px;
    background: rgba(255,255,255,0.2); border-radius: 10px;
    max-height: 45px; font-size: 0.9rem !important;
    text-decoration: none !important; color: inherit !important;
}

/* ۴. ناحیه ورودی پیام (UX مدرن) */
.chat-input-container {
    background: #fff; padding: 12px 20px; border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 10px;
}

#messageInput {
    border: none !important; flex-grow: 1; resize: vertical; background: transparent;
    padding: 10px; outline: none !important; min-height: 45px; max-height: 200px;
    font-family: inherit;
}

.btn-attach {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid #eee;
    background: #f8fafc; color: #64748b; display: flex; align-items: center; 
    justify-content: center; cursor: pointer; transition: 0.3s all ease;
}

.btn-attach:hover { color: var(--primary-color); background: #fff; border-color: var(--primary-color); }


/* ظرف اصلی ویرایش شرایط */
.edit-conditions-wrapper {
    overflow: hidden; /* جلوگیری از خروج محتوا */
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.edit-conditions-wrapper h6 {
    color: #2d3436;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid #f1f3f5;
    padding-bottom: 12px;
}

/* استایل فیلدهای ورودی */
.form-unit {
    margin-bottom: 15px;
}


.form-unit label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
}

.form-control-custom {
    width: 95%;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    padding: 10px 15px;
    font-weight: 600;
    color: #2d3436;
    transition: all 0.2s ease;
    background-color: #f8fbff;
}

.form-control-custom:focus {
    outline: none;
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* دکمه ثبت نهایی */
#btnSaveOffer {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

#btnSaveOffer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

#btnSaveOffer:active {
    transform: translateY(0);
}

.form-unit {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column; /* لیبل بالای اینپوت قرار بگیرد */
    gap: 8px;
}

.form-unit label {
    font-size: 13px;
    font-weight: bold;
    color: #475569;
    text-align: right;
}




/* اصلاحات عمومی دکمه‌ها و جوملا */
.btn, .button {height:40px ; border-radius: 50px !important; padding: 5px 5px !important; transition: 0.3s all ease; }
.card, .sidebar-box { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow); border: 1px solid rgba(110, 142, 251, 0.1); }


/* ==========================================================================
   6. اسکرول‌بار اختصاصی و خوشگل
   ========================================================================== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6e8efb 0%, #a777e3 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

/* ==========================================================================
   7. اصلاح منوها و باکس‌های قرمز (تصویر image_00e29b.png)
   ========================================================================== */
.panel-content ul { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
}

.panel-content li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s;
}

.panel-content li:last-child { border: none; }

.panel-content a {
    text-decoration: none !important;
    color: var(--text-main) !important;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 15px 10px;
    gap: 12px;
}

.panel-content a i {
    color: var(--primary-color);
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.panel-content a:hover {
    background: var(--primary-soft);
    color: var(--primary-color) !important;
    padding-right: 15px; /* افکت حرکت به داخل */
}

/* ==========================================================================
   ۸. تنظیمات دکمه بستن (مهندسی شده و دقیق)
   ========================================================================== */
.close-btn {
    position: absolute; /* جدا شدن از جریان متن برای کنترل دقیق */
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #ff5e62 !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

.close-btn:hover {
    transform: rotate(180deg) scale(1.2);
    color: #de3539 !important;
}

/* ضربدر در پنل راست (منوی اصلی): باید در سمت چپِ پنل باشد */
.panel-right .close-btn {
    left: 20px; /* ۱۰ تا ۱۵ پیکسل فاصله از لبه چپ */
    right: auto;
}

/* ضربدر در پنل چپ (پنل کاربر): باید در سمت راستِ پنل باشد */
.panel-left .close-btn {
    right: 20px; /* ۱۰ تا ۱۵ پیکسل فاصله از لبه راست */
    left: auto;
}

/* حذف پدینگ‌های قبلی که باعث ایجاد فضای خالی زشت می‌شد */
.panel-right .panel-header, 
.panel-left .panel-header { 
    padding: 20px !important; 
    display: flex;
    align-items: center;
}

/* ==========================================================================
   9. اصلاحات نهایی فرم‌ها و باکس‌های داخلی
   ========================================================================== */
.otp-wrapper .well, .otp-wrapper .card {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* دکمه خروج در تصویر image_ffe9c7.png */
.logout-box {
    width:50%;
    border: 1px solid #ff5e62;
    background: rgba(255, 94, 98, 0.05);
    color: #ff5e62;
    border-radius: 15px;
    margin-top: 15px;
}


/* ==========================================================================
   10. نوسازی نهایی فرم‌های ورود و ثبت‌نام (OTP & Login)
   ========================================================================== */
/* استایل‌دهی به ورودی شماره موبایل و فیلدها */
.panel-content input[type="text"], 
.panel-content input[type="password"],
.panel-content input[type="tel"] {
    width: 90%;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 15px !important;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.panel-content input:focus {
    border-color: var(--primary-color) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px var(--primary-soft) !important;
}

/* دکمه‌های آبی (ارسال کد تایید و ورود) */
.panel-content .btn-primary, 
.panel-content button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border: none !important;
    border-radius: 20px !important;
    font-weight: bold !important;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.3) !important;
}

/* اصلاح لینک‌های بازیابی (پایین فرم) */
.panel-content ul.nav-tabs, 
.panel-content ul.nav-stacked {
    border: none !important;
}

.panel-content .login-links a {
    width: 90%;
    font-size: 13px !important;
    color: var(--text-muted) !important;
    padding: 5px !important;
}

.panel-content .login-links a:hover {
    color: var(--primary-color) !important;
    background: transparent !important;
}

/* چک‌باکس "مرا به خاطر داشته باش" */
.panel-content .checkbox label {
    font-size: 11px;
    color: #7582A0;
    display: flex;
    align-items: center;
    gap: 8px;
}




/* ==========================================================================
   11. فرم رسید پرداخت ها
   ========================================================================== */

.receipt-item {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.receipt-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #d1d9e6;
}

.receipt-status-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: bold;
}

.status-pending { background: #fff4e5; color: #ff9800; }
.status-confirmed { background: #e6fcf5; color: #087f5b; }
.status-rejected { background: #fff5f5; color: #fa5252; }

.receipt-amount {
    font-family: 'Tahoma', sans-serif;
    font-weight: 700;
    color: #2c3e50;
}
    

/* ==========================================================================
   12- modal
   ========================================================================== */

/* اصلاح بدنه اصلی مودال برای مهار ارتفاع */
.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 999999 !important;
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 20px !important; /* فاصله از لبه‌های مانیتور */
}

.modal-dialog {
    width: 100% !important;
    max-width: 850px !important;
    max-height: 90vh !important; /* مهار کل ارتفاع مودال */
    margin: auto !important;
    display: flex !important;
    align-items: center !important;
}

.modal-content {
    background: #ffffff !important;
    border-radius: 15px !important;
    max-height: 90vh !important; /* اجبار به نشکستن ارتفاع */
    display: flex !important;
    flex-direction: column !important; /* چیدمان عمودی اجزا */
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
    border: none !important;
    width: 100%;
}

/* بخش میانی که باید اسکرول بخورد */
.modal-body {
    flex: 1 1 auto !important; /* اشغال فضای باقی‌مانده */
    overflow-y: auto !important; /* فعال سازی اسکرول فقط اینجا */
    padding: 25px !important;
    background: #fff !important;
}

/* فوتر که باید همیشه دیده شود */
.modal-footer {
    flex-shrink: 0 !important; /* جلوگیری از کوچک شدن یا غیب شدن فوتر */
    background: #f8f9fa !important;
    border-top: 1px solid #eee !important;
    padding: 15px 25px !important;
    display: flex !important;
    justify-content: flex-end !important;
}

/* استایل اختصاصی برای دکمه ضربدر بالای مودال */
.btn-close-custom {
    background: #ff4d4d !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 20px !important;
    line-height: 1 !important;
    position: absolute;
    left: 20px; /* انتقال به لبه سمت چپ */
    top: 20px;
    right: auto !important;
}



/* اصلاح متن قرارداد (تصویر ۵ که بی‌روح بود) */
#employerContractBody, #freelancerContractBody {
    background: #fff !important;
    color: #222 !important;
    padding: 30px !important;
    line-height: 2 !important;
    font-size: 15px !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    text-align: justify !important;
}


/* حذف کامل نمایش دکمه‌ها و مودال‌ها در بدنه صفحه */
.modal:not(.show) {
    display: none !important;
}

/* دکمه‌های عملیاتی را فقط داخل مودال محدود کن */
.modal-footer .btn {
    width: auto !important;
    margin: 5px !important;
}



/* ==========================================================================
   13 - کدهای بخش لاگین و otp
   ========================================================================== */


#user-panel .panel-content form {
    padding: 25px 20px !important; /* هل دادن همه چیز به مرکز */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ۲. استایل فیلدها با ارتفاع بلندتر و ظاهر شکیل */
#user-panel .panel-content input.inputbox, 
#user-panel .panel-content input[type="text"], 
#user-panel .panel-content input[type="password"],
#user-panel .panel-content input[type="tel"] {
    width: 100% !important; /* حالا ۱۰۰٪ نسبت به والدِ پدینگ‌دار سنجیده می‌شود */
    height: 52px !important; /* ارتفاع بلندتر برای تجربه کاربری بهتر */
    margin-bottom: 10px !important;
    padding: 0 15px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
    box-sizing: border-box !important; /* جلوگیری از بیرون زدگی */
}


#user-panel .panel-content .btn-primary, 
#user-panel .panel-content button[type="submit"] {
    background: var(--primary-color);
    border: none;
    border-radius: 15px;
    padding: 12px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

#user-panel .panel-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    filter: brightness(1.1);
}


/* ۴. استایل متن‌ها و لیبل‌ها */
#user-panel .panel-content label {
    margin: 5px 5px 5px 0 !important;
    font-size: 13px;
    color: #555;
    display: block;
}

/* استایل لینک‌های بازیابی رمز و نام کاربری */
#user-panel .panel-content ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

#user-panel .panel-content ul li a {
    text-decoration: none;
    font-size: 0.85rem;
    color: #666;
    transition: 0.2s;
}

#user-panel .panel-content ul li a:hover {
    color: var(--primary-color);
}


/* ==========================================================================
   14 - بلاگ مطالب
   ========================================================================== */

/* ۱. تنظیم چیدمان کلی بلاگ */
.blog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(900px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* ۲. تبدیل هر مطلب به یک کارت شیشه‌ای */
.blog-item {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05); /* حاشیه کمرنگ دور کارت */
    border-bottom: 4px solid var(--primary-color); /* خط پایینی ضخیم و پررنگ */
    border-radius: 20px;
    padding: 25px; /* پدینگ بیشتر برای تفکیک بهتر محتوا */
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.blog-item:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--secondary-color);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* ۳. استایل عنوان مطلب در کارت */
.page-header h2 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}



.article-info dd {
    flex-wrap: wrap;
    margin: 0;
    background: rgba(0,0,0,0.03);
    padding: 2px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    font-size: 0.7rem;
}

.article-info dd::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 5px;
    color: var(--secondary-color);
}

/* آیکون برای تاریخ و بازدید */
.published::before { content: "\f073"; }
.hits::before { content: "\f06e"; }

/* ۵. استایل تگ‌ها */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.7rem;
}


.tags .label {
    background: var(--primary-color);
    color: #fff;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-left: 5px;
}

.label-special {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(110, 142, 251, 0.3);
    border: none !important;
}

.content-glass-card {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 30px; /* این پدینگ باعث می‌شود کادر حجم بگیرد */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    margin: 30px;
    display: block !important; /* اطمینان از نمایش */
    min-height: 100px; /* یک حداقل ارتفاع برای اطمینان از دیده شدن */
}



/* عنوان مطلب */
.content-glass-card h1, .content-glass-card h2 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(110, 142, 251, 0.1);
    padding-bottom: 10px;
}



/* اصلاح لیست‌های ویژگی (مثل وضعیت پروژه) */
.content-glass-card ul {
    list-style: none;
    padding-right: 0;
}

.content-glass-card ul li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
}

.content-glass-card ul li::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary-color);
}

/* دکمه‌های داخل مطلب (مثل دکمه آبی در عکس) */
.content-glass-card .btn, 
.content-glass-card button {
    border-radius: 50px !important;
    padding: 10px 25px !important;
    transition: all 0.3s ease;
    font-weight: bold;
}


/* افقی کردن کاستوم فیلدها */
.article-info.custom-fields, .article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.article-info dd, .fields-container dd {
    display: inline-flex;
    align-items: center;
    background: rgba(110, 142, 251, 0.05);
    padding: 5px 15px;
    border-radius: 50px;
    margin: 0;
}

/* دکمه ادامه مطلب کپسولی */
/* انتخاب‌گر دقیق برای دکمه ادامه مطلب جوملا */
.blog-item .readmore a, 
.blog-item a.readmore,
.blog-item .btn-primary.readmore {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    font-weight: normal !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: none !important;
}

.blog-item .readmore a::after {
    content: "\f060"; /* فلش به سمت چپ */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.3s ease;
}

.blog-item .readmore a:hover {
    background: var(--secondary-color) !important;
    padding-left: 35px !important;
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.3);
}

.blog-item .readmore a:hover::after {
    transform: translateX(-10px);
}

/* حذف آیکون تیک و استایل‌دهی به بخش امتیاز */
.blog-item .rating-wrapper, 
.blog-item .content_rating {
    display: block;
    margin: 15px 0;
    unicode-bidi: bidi-override;
    color: #bbb !important; /* کمرنگ */
}


.blog-item .rating-wrapper li,
.blog-item .content_rating li {
    display: inline-block !important;
    padding: 0 !important;
    margin: 0 2px !important;
}

/* کمرنگ کردن و یک‌خطی کردن توضیحات امتیاز (رتبه‌بندی کاربر و ...) */
.blog-item .rating-details,
.blog-item .content_rating + span {
    font-size: 0.8rem;
    color: #bbb !important; /* کمرنگ */
    display: block;
    margin-top: 5px;
}


/* حذف متون توضیحی امتیازدهی برای خلوت شدن کارت */
.blog-item .rating-wrapper + span,
.blog-item .content_rating + div {
    display: none !important;
}


/* استایل کلی کانتینر برای موقعیت‌دهی بج */
.blog-item, .item-page {
    position: relative; /* الزامی برای قرارگیری بج در گوشه */
}

/* طراحی بج ویژه */
.special-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: #d63384;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(214, 51, 132, 0.2);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

/* افکت درخشش ملایم برای مطالب ویژه */
.blog-item.is-special {
    border: 1.5px solid rgba(214, 51, 132, 0.3) !important;
    background: rgba(255, 240, 245, 0.6) !important;
}


.item-page .special-badge {
    top: 20px;
    left: -10px; /* کمی بیرون زده از کادر برای جذابیت بیشتر */
    border-radius: 5px 15px 15px 5px;
    font-size: 0.9rem;
    padding: 10px 25px;
}



/* ==========================================================================
   16- صفحه داخلی مطلب
   ========================================================================== */
/* اصلاح تیتر مطلب */
.content-glass-card h1, 
.page-header h1, 
.item-page h1 {
    font-size: 1.3rem !important; /* اندازه منطقی‌تر */
    font-family: var(--main-font) !important;
    font-weight: 700 !important;
    color: var(--primary-color);
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 25px;
}


/* مخفی کردن دکمه‌ها و رادیوهای پیش‌فرض */
.star-rating-wrapper input { display: none; }


/* مخفی کردن هرگونه متن عددی یا توضیحی در کنار ستاره‌ها */
.content_rating_minimal, .rating-stars-list + span, .content_rating_minimal span {
    font-size: 0 !important; /* متن را غیب می‌کند */
    color: transparent !important;
}
.star-rating-wrapper {
    display: inline-flex;
    flex-direction: row-reverse; /* برای انتخاب درست از راست به چپ */
    background: rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

.star-rating-wrapper label {
    cursor: pointer;
    width: 30px;
    height: 30px;
    margin: 0 2px;
}

/* استایل SVGهای داخل لیبل */
.star-rating-wrapper svg {
    fill: #ddd; /* رنگ ستاره‌های خالی */
    transition: all 0.2s;
}

/* جادوی هاور و انتخاب: ستاره‌های قبلی هم روشن می‌شوند */
.star-rating-wrapper label:hover svg,
.star-rating-wrapper label:hover ~ label svg,
.star-rating-wrapper input:checked ~ label svg {
    fill: #ffc107; /* طلایی */
    filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.5));
}



.rating-stars-list {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 3px;
}

.rating-stars-list li {
    width: 20px;
    height: 20px;
}

.rating-stars-list li svg {
    width: 100%;
    height: 100%;
}

.rating-display-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.average-label {
    font-size: 0.85rem;
    color: #666;
}

.rating-stars-list li.full svg { fill: #ffc107; } /* ستاره پر طلایی */
.rating-stars-list li.half svg { fill: #ffc107; } /* نیم‌ستاره طلایی */
.rating-stars-list li.empty svg { fill: #ddd; }    /* ستاره خالی خاکستری */
/* ==========================================================================
   17 - دستیار هوش مصنوعی و جستجو
   ========================================================================== */
   /* دکمه شناور دستیار */
.ai-assistant-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(110, 142, 251, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.ai-assistant-trigger:hover { transform: scale(1.1) rotate(10deg); }

/* پنل چت شیشه‌ای */
.ai-chat-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: none; /* در ابتدا مخفی */
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}


.header-search-capsule {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* برای اینکه در موبایل هم تراز باشد */
@media (max-width: 768px) {
    .header-search-capsule {
        order: 2; /* جابجایی ترتیب نمایش در صورت نیاز */
    }
}



/* ==========================================================================
   18 - سیستم پشتیبانی
   ========================================================================== */

/* ۱. گرید دپارتمان‌ها */
.gg-dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ۲. کانتینر ردیف فیلتر (۵۰-۲۵-۲۵) */
.filter-row-container {
    display: flex;
    flex-wrap: nowrap; /* حفظ چیدمان در یک خط در دسکتاپ */
    margin-right: 0 !important;
    margin-left: 0 !important;
    align-items: center;
}

/* ۳. استایل گروه‌های ورودی و جستجو */
.input-group, .gg-search-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2px 5px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(110, 142, 251, 0.15);
}

.input-group-text {
    background: transparent !important;
    border: none !important;
    padding-right: 15px;
    color: #94a3b8;
}

/* ۴. فیلدها و انتخاب‌گرها (Inputs & Selects) */
.form-control, .form-select.rounded-pill {
    border-radius: 50px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 20px !important;
    font-size: 0.85rem;
    height: auto !important;
    transition: 0.3s;
}

/* حذف حاشیه فیلد داخل گروه جستجو */
.input-group .form-control {
    border: none ;
    background: transparent ;
    box-shadow: none ;
}

.form-select.rounded-pill {
    background-color: #ffffff !important;
    color: #475569 !important;
    cursor: pointer;
    min-width: 150px;
}

.form-select.rounded-pill:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.1) !important;
    outline: none;
}

/* ۵. جداول و آیتم‌های مرتبط */
.table td { 
    vertical-align: middle; 
    height: 20px; 
    border-bottom: 1px solid #f0f2f5; 
}

.related-item-box { 
    min-width: 180px; 
    border: 1px solid #e9ecef !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 10px;
}

.related-item-box:hover { 
    background: #f8f9fa !important;
    transform: translateY(-2px);
    border-color: var(--primary-color) !important;
}

/* ۶. المان‌های کوچک (نشان‌ها و هاورها) */
.badge { 
    font-weight: 500; 
    padding: 0.6em 1em; 
    font-size: 0.75rem; 
    border-radius: 50px;
}

.hover-primary:hover { color: var(--primary-color) !important; }

/* ۷. واکنش‌گرایی (Mobile Friendly) */
@media (max-width: 768px) {
    .filter-row-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    .filter-row-container [class*="col-"] {
        width: 100% !important;
        flex: 0 0 100%;
    }
}

/* ۱. استایل جداول مدرن و شیشه‌ای جی‌گاید */
.gg-table-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px;
    border: 1px solid #dee2e6;
    overflow-x: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gg-table { 
    width: 100%; 
    vertical-align: middle; 
    border-collapse: separate; 
    border-spacing: 0;
}

.gg-table th { 
    padding: 15px; 
    color: #6c757d; 
    font-size: 0.9rem; 
    border-bottom: 2px solid #f8f9fa;
    background: transparent;
}

.gg-table td { 
    padding: 15px; 
    border-bottom: 1px solid #f8f9fa; 
    white-space: nowrap;
    transition: background 0.2s ease;
}

.gg-table tbody tr:hover td {
    background: rgba(13, 110, 253, 0.02); /* یک هایلایت آبی بسیار ملایم هنگام هاور */
}

/* ۲. سایدبار چسبنده اطلاعات */
.gg-sticky-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid #eee;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ۳. المان‌های فرم و ورودی‌ها */
.gg-input-style, .gg-reply-input {
    border-radius: 12px !important;
    border: 1px solid #ced4da !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease-in-out;
    width: 100% !important; 
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.gg-input-style:focus, .gg-reply-input:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1) !important;
    outline: none;
}

/* ۴. دکمه پیوست فایل سفارشی */
.gg-custom-upload {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    transition: 0.3s;
}

.gg-custom-upload:hover {
    background: #fff;
    border-color: #0d6efd;
    color: #0d6efd;
}

/* ۵. کارت‌های دپارتمان (هدر) */
.gg-interactive-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eee !important;
}

.gg-interactive-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-color: #0d6efd !important;
}

.gg-dept-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.gg-dept-card:hover {
    background: rgba(110, 142, 251, 0.2);
    transform: translateY(-5px);
}

.gg-glass-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.gg-chat-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.gg-message-bubble {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

.user-msg {
    align-self: flex-start;
    background: rgba(110, 142, 251, 0.9);
    color: white;
    border-bottom-right-radius: 2px;
}

.staff-msg {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0,0,0,0.05);
    color: #333;
    border-bottom-left-radius: 2px;
}

.msg-info { font-size: 11px; margin-bottom: 5px; opacity: 0.8; }



    .gg-ticket-view { direction: rtl; text-align: right; gap: 20px; }
    
    /* سایدبار چسبنده */
    .gg-ticket-sidebar {
        position: sticky;
        top: 20px;
        height: fit-content;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        border: 1px solid #eee;
    }

    /* حباب‌های چت */
    .gg-chat-box { background: transparent; }
    .message-item {
        max-width: 85%;
        border-radius: 18px;
        padding: 15px;
        margin-bottom: 20px;
        position: relative;
    }
    .message-user { background: #e3f2fd; margin-right: auto; border-bottom-left-radius: 2px; }
    .message-staff { background: #f8f9fa; margin-left: auto; border-bottom-right-radius: 2px; border: 1px solid #eee; }

    /* استایل فرم پاسخ (فیلد توضیحات و پیوست) */
    .gg-reply-section {
        background: #fff;
        border-radius: 20px;
        border: 1px solid #dee2e6;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    .gg-reply-input {
        border-radius: 12px !important;
        border: 1px solid #ced4da !important;
        padding: 15px !important;
        width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    resize: vertical !important;
    transition: 0.3s;
    }
    .gg-reply-input:focus { border-color: #0d6efd !important; box-shadow: 0 0 0 0.25rem rgba(13,110,253,.1); }

    /* دکمه پیوست سفارشی */
    .custom-file-upload {
        display: inline-block;
        padding: 8px 20px;
        cursor: pointer;
        background: #f8f9fa;
        border: 1px dashed #adb5bd;
        border-radius: 10px;
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }
    .custom-file-upload:hover { background: #e9ecef; border-color: #0d6efd; }
    
    

    .gg-support-container { direction: rtl; text-align: right; }
    
    /* استایل هدر کارتی (درخواستی جیمی) */
    .gg-dept-card { 
        transition: all 0.3s ease; 
        min-width: 140px; 
        border: 1px solid #eee !important; 
        background: #fff;
        border-radius: 15px;
    }
    .gg-dept-card:hover { 
        transform: translateY(-5px); 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; 
        border-color: #0d6efd !important; 
    }

    /* استایل جدول ریسپانسیو */
    .gg-table-container {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 15px;
        border: 1px solid #dee2e6;
        overflow-x: auto; /* جلوگیری از بیرون زدگی در موبایل */
    }
    .gg-table { width: 100%; min-width: 700px; vertical-align: middle; }
    .gg-table th { padding: 15px; color: #6c757d; font-size: 0.9rem; border-bottom: 2px solid #f8f9fa; }
    .gg-table td { padding: 15px; border-bottom: 1px solid #f8f9fa; white-space: nowrap; }
    
    /* استایل لینک‌های داخل جدول */
    .ticket-link { text-decoration: none; color: #212529; font-weight: bold; transition: 0.2s; }
    .ticket-link:hover { color: #0d6efd; }
    
    .status-badge { padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; }
    
    
    .gg-main-wrapper {
        display: flex;
        /* جابجایی سایدبار به سمت راست در دسکتاپ */
        flex-direction: row; 
        gap: 25px;
        align-items: flex-start;
        direction: rtl;
    }
    .gg-content-area { flex: 3; min-width: 0; }
    .gg-sidebar-area { flex: 1; min-width: 300px; position: sticky; top: 20px; }

    /* استایل دکمه دانلود پیوست */
    .attachment-link {
        display: inline-flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: inherit;
        text-decoration: none;
        padding: 5px 12px;
        border-radius: 10px;
        font-size: 12px;
        margin-top: 10px;
        transition: 0.3s;
    }
    .attachment-link:hover {
        background: rgba(255, 255, 255, 0.4);
        color: #000;
    }
    .staff-msg .attachment-link { background: rgba(13, 110, 253, 0.05); border-color: rgba(13, 110, 253, 0.1); }

    @media (max-width: 992px) {
        .gg-main-wrapper { flex-direction: column; } 
        .gg-sidebar-area { width: 100%; position: static; }
    }



    /* استایل‌های اختصاصی برای تراز و فاصله */
    .gg-input-style {
        padding: 14px 20px !important;
        border-radius: 12px !important;
        border: 1px solid #e0e0e0 !important;
        background-color: #fcfcfc !important;
        transition: all 0.3s ease;
        width: 100% !important; /* تراز عرض کامل */
    }

    .gg-input-style:focus {
        border-color: #0d6efd !important;
        box-shadow: 0 0 0 0.25 rbg(13, 110, 253, 0.05) !important;
        background-color: #fff !important;
    }

    .btn-close-custom:hover {
        background: #ff4d4d !important;
        color: #fff !important;
        transform: rotate(90deg);
    }

    .gg-modern-upload {
        border: 2px dashed #dee2e6;
        border-radius: 15px;
        padding: 20px;
        display: flex;
        align-items: center;
        background: #fafafa;
        cursor: pointer;
        transition: 0.3s;
    }

    .gg-modern-upload:hover {
        border-color: #0d6efd;
        background: #f8fbff;
    }


    /* تضمین تراز بودن تمام ورودی‌ها و ناحیه متن */
.gg-input-style, 
#custom-subject-input, 
textarea.gg-input-style,
.form-control,
.sidebar-textarea {
    width: 100% ;
    max-width: 100% ;
    box-sizing: border-box ; 
    margin-right: 0 ;
    margin-left: 0 ;
    display: block ;
}



/* محدود کردن ری‌سایز برای تمام Textareaها */
textarea.gg-input-style,
textarea.form-control,
.sidebar-textarea {
    resize: vertical ; /* کاربر فقط می‌تواند ارتفاع را زیاد کند */
    min-height: 120px;
}


/* ==========================================================================
   19 - تراکنش های مالی
   ========================================================================== */



/* ظرف اصلی تراکنش‌ها */
.financial-history-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 25px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* استایل تیتر صفحه */
.financial-title {
    color: #4A90E2;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

/* استایل جدول تراکنش‌ها */
.gguide-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px; /* ایجاد فاصله بین ردیف‌ها */
}

.gguide-table thead th {
    background: transparent;
    color: #6c757d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    padding: 10px 20px;
}

.gguide-table tbody tr {
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.gguide-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gguide-table td {
    padding: 15px 20px;
    vertical-align: middle;
}

.gguide-table td:first-child { border-radius: 0 12px 12px 0; }
.gguide-table td:last-child { border-radius: 12px 0 0 12px; }

/* استایل نشانگر وضعیت (Badge) */
.status-badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending { background: #fff4e5; color: #ff9800; } /* در انتظار بررسی */
.status-confirmed { background: #e6fcf5; color: #0ca678; } /* تایید شده */

/* دکمه مشاهده فیش */
.view-receipt {
    color: #7950f2;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.view-receipt:hover { color: #5f3dc4; }





/* ==========================================================================
      20- پروژه ها
   ========================================================================== */
   
    .gguide-form-container {
        direction: rtl;
        text-align: right;
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        padding: 2rem;
    }
    .gguide-form-container .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #444;
    }
    .gguide-form-container .form-control, 
    .gguide-form-container .form-select {
        border-radius: 10px;
        padding: 0.75rem 1rem;
        border: 1px solid #e0e0e0;
        margin-bottom: 1.5rem;
        width: 100%;
        transition: all 0.3s ease;
    }
    .gguide-form-container .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
    }
    .input-group-text {
        border-radius: 0 10px 10px 0 !important; /* برای فارسی سازی */
        background-color: #f8f9fa;
    }
    #skills-container {
        background: #fcfcfc;
        border: 1px dashed #ddd !important;
        margin-bottom: 2rem;
    }
    .skill-item {
        margin-bottom: 10px;
    }
    .btn-submit-project {
        padding: 1rem 2rem;
        font-weight: bold;
        border-radius: 50px;
        font-size: 1.1rem;
        background: linear-gradient(45deg, #0d6efd, #004fb1);
        border: none;
        box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    }
    .btn-submit-project:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    }




/* ==========================================================================
      21- پس زمینه درخشان
   ========================================================================== */
   
/* ظرف اصلی پس‌زمینه */
.cube-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(63,72,204,0.0);
    z-index: -1;
    overflow: hidden;
}

/* ساختار گرید مکعبی با SVG */
.cube-grid {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px; /* اندازه هر مکعب */
}

/* افکت درخشش رندوم روی مکعب‌ها */
.cube-flash {
    position: absolute;
    width: 0px;
    height: 0px;
    border: 1px solid #0ea5e9;
    box-shadow: 0 0 15px #0ea5e9;
    animation: flash 4s infinite;
    opacity: 0;
}

@keyframes flash {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

/* لایه نوری که روی خطوط حرکت می‌کند */
.light-stream {
    position: absolute;
    width: 50px;
    height: 1px;
    z-index:-1;
    pointer-events: none !important;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    animation: moveLight 20s infinite linear;
    opacity: 0.4;
}

/*3 انیمیشن حرکت نور بین مکعب‌ها */
@keyframes moveLight {
    0% {
        top: -100px;
        right: 77px;
        transform: rotate(90deg);
        opacity: 0.1;
    }
    
    4% {
        top: 115px;
        right: 77px;
        transform: rotate(90deg);
        opacity: 1;
    }
    5% {
        top: 115px;
        right: 77px;
        transform: rotate(160deg);
        opacity: 0.1;
    }
    
    9% {
        top: 125px;
        right: 110px;
        transform: rotate(160deg);
        opacity: 1;
    }
    10% {
        top: 125px;
        right: 110px;
        transform: rotate(90deg);
        opacity: 0.1;
    }
    
    19% {
        top: 200px;
        right: 110px;
        transform: rotate(90deg);
        opacity: 1;
    }
    20% {
        top: 200px;
        right: 110px;
        transform: rotate(160deg);
        opacity: 0.1;
    }
    
    24% {
        top: 227px;
        right: 177px;
        transform: rotate(160deg);
        opacity: 1;
    }
    25% {
        top: 227px;
        right: 177px;
        transform: rotate(90deg);
        opacity: 0.1;
    }
    
    29% {
        top: 300px;
        right: 177px;
        transform: rotate(90deg);
        opacity: 1;
    }
     30% {
        top: 300px;
        right: 177px;
        transform: rotate(160deg);
        opacity: 0.1;
    }

    34% {
        top: 327px;
        right: 244px;
        transform: rotate(160deg);
        opacity: 1;
    }
    35% {
        top: 327px;
        right: 244px;
        transform: rotate(90deg);
        opacity: 0.1;
    }
    
    
    39% {
        top: 462px;
        right: 244px;
        transform: rotate(90deg);
        opacity: 1;
    }
    40% {
        top: 462px;
        right: 244px;
        transform: rotate(160deg);
        opacity: 0.1;
    }
    
    
    44% {
        top: 474px;
        right: 272px;
        transform: rotate(160deg);
        opacity: 1;
    }
    45% {
        top: 474px;
        right: 272px;
        transform: rotate(200deg);
        opacity: 0.1;
    }
    
    
    49% {
        top: 462px;
        right: 312px;
        transform: rotate(200deg);
        opacity: 1;
    }
    
    50% {
        top: 462px;
        right: 312px;
        transform: rotate(270deg);
        opacity: 0.1;
    }
    
     54% {
        top: 425px;
        right: 312px;
        transform: rotate(270deg);
        opacity: 1;
    }
    
    55% {
        top: 425px;
        right: 312px;
        transform: rotate(200deg);
        opacity: 0.1;
    }
    
    59% {
        top: 400px;
        right: 380px;
        transform: rotate(200deg);
        opacity: 1;
    }
    
    60% {
        top: 400px;
        right: 380px;
        transform: rotate(270deg);
        opacity: 0.1;
    }
    
    64% {
        top: 325px;
        right: 380px;
        transform: rotate(270deg);
        opacity: 1;
    }
    
    65% {
        top: 325px;
        right: 380px;
        transform: rotate(200deg);
        opacity: 0.1;
    }
    69% {
        top: 300px;
        right: 450px;
        transform: rotate(200deg);
        opacity: 1;
        background: linear-gradient(90deg, transparent, #FF3B8B, transparent);
    }
    
    70% {
        top: 300px;
        right: 450px;
        transform: rotate(160deg);
        opacity: 0.1;
        background: linear-gradient(90deg, transparent, #FF3B8B, transparent);
        
    }
    
    74% {
        top: 315px;
        right: 479px;
        transform: rotate(160deg);
        opacity: 1;
        
    }
    75% {
        top: 315px;
        right: 479px;
        transform: rotate(90deg);
        opacity: 0.1;
    }
    

    
    84% {
        top: 515px;
        right: 479px;
        transform: rotate(90deg);
        opacity: 1;
    }
    85% {
        top: 515px;
        right: 479px;
        transform: rotate(160deg);
        opacity: 0.1;
    }
    
    89% {
        top: 525px;
        right: 512px;
        transform: rotate(160deg);
        opacity: 1;
    }
    
     90% {
        top: 525px;
        right: 512px;
        transform: rotate(90deg);
        opacity: 0.1;
    }

    
    100% {
        top: 120%;
        right: 512px;
        transform: rotate(90deg);
        opacity: 1;
    }

}



/* ==========================================================================
      21- پروفایل کاربران
   ========================================================================== */

/* استایل کلی کانتینر پروفایل */
.com-users-profile.profile {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    direction: rtl;
}

/* استایل تیترها */
.com-users-profile h2, .com-users-profile h3 {
    color: #2c3e50;
    font-weight: 800;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 25px;
}

/* استایل فیلدها و لیبل‌ها */
.com-users-profile dt {
    color: #555;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 15px;
}

.com-users-profile dd {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px;
    margin-right: 0;
    border-right: 4px solid #007bff;
    color: #333;
}

/* دکمه ویرایش پروفایل */
.com-users-profile .btn-toolbar a {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.com-users-profile .btn-toolbar a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

#auth-container {
    margin-top: 40px;
    border: none !important;
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
    border-left: 6px solid #28a745;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

#auth-container:hover {
    transform: scale(1.01);
}

#vForm input {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px;
}

#vForm button {
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 12px;
    border-radius: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}



/* ==========================================================================
      22- پروژه ها
   ========================================================================== */



/* استایل نشان وضعیت داینامیک */
.badge-status-dynamic {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
}

/* فیکس کردن عرض کانتینر لیست */
.gg-projects-list-wrapper {
    overflow-x: auto; /* برای ریسپانسیو موبایل */
    width: 100%;
}


/* ۵. خنثی‌ساز فوق‌حرفه‌ای تقویم (حل مشکل ارتفاع ۷۵ پیکسل) */
/* مهار اختصاصی برای فیلد تقویم و پنجره بازشونده */
.gg-calendar-input {
    cursor: pointer;
     max-height: 26px !important;
}

/* این بخش مستقیماً ارتفاع ۷۵ پیکسل را برای تقویم خنثی می‌کند */
div.calendar table td, 
div.calendar table th,
div.calendar table tr {
    max-height: 26px !important; /* قفل کردن ارتفاع سطرها */
    padding: 0 !important;
    vertical-align: middle !important;
}



/* باکس کد پروژه */
.project-code-box {
    background: rgba(110, 142, 251, 0.1); /* استفاده از شفافیت برای تم شیشه‌ای */
    border: 2px dashed var(--primary-color, #0d6efd);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    margin-bottom: 25px;
}
.project-code-text {
    font-family: 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color, #0d6efd);
    letter-spacing: 2px;
}

/* استایل تخصص‌ها بدون تیک */
.skill-label {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom:10px;
}
.skill-badge-item input:checked + .skill-label {
    background: var(--primary-color, #0d6efd) !important;
    color: #fff !important;
    border-color: var(--primary-color, #0d6efd) !important;
}
.skill-badge-item input[type="checkbox"] {
    display: none !important;
}

/* گروه دکمه‌های عملیاتی */
.action-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.btn-main { border-radius: 50px; height: 50px; font-weight: bold; flex: 2; }
.btn-alt { border-radius: 50px; height: 50px; flex: 1; display: flex; align-items: center; justify-content: center; text-decoration: none; background: #f8f9fa; border: 1px solid #ddd; color: #666; }



/* استایل کلی کانتینر فایل‌ها */
#project-attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

/* کارت هر فایل */
.attachment-item {
    flex: 0 0 calc(50% - 15px); /* دو ستونه در دسکتاپ */
    min-width: 250px;
}

.attachment-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(5px);
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.attachment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #007bff !important;
}

/* حالت در انتظار آپلود */
.pending-upload .attachment-card {
    border: 1px dashed #007bff !important;
    background: #f0f7ff !important;
}

/* آیکون فایل */
.file-icon {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px; /* فاصله برای زبان فارسی */
}

/* دکمه حذف (ضربدر) */
.btn-remove-file {
    position: absolute;
    top: -8px;
    left: -8px; /* در حالت راست‌چین، سمت چپ کارت قرار می‌گیرد */
    width: 24px;
    height: 24px;
    background: #ff4d4d !important;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.btn-remove-file:hover {
    background: #cc0000 !important;
    transform: scale(1.1);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .attachment-item {
        flex: 0 0 100%;
    }
}


/* ایجاد ساختار فلکس برای سایدبار */
.gg-form-container .d-flex.flex-wrap {
    align-items: flex-start;
}

/* سایدبار استیکی */
.gg-sidebar-fixed .sticky-top {
    transition: all 0.3s ease;
}

/* تنظیم عرض محتوای سایدبار برای جلوگیری از بیرون زدگی */
.gg-sidebar-fixed .card-body {
    padding: 1.25rem !important;
}

.gg-sidebar-fixed .form-control-custom {
    width: 100% ;
    box-sizing: border-box;
    margin-bottom: 5px;
}

/* اصلاح دکمه تقویم جوملا در سایدبار */
.calendar-wrapper-custom .input-group {
    display: flex;
    flex-direction: column; /* زیر هم قرار دادن آیکون و اینپوت در فضای کم */
}

.calendar-wrapper-custom .btn {
    width: 100%;
    margin-top: 5px;
    border-radius: 8px !important;
}



/* ریسپانسیو کردن سایدبار */
@media (max-width: 992px) {
    .gg-sidebar-fixed {
        width: 100% !important;
        position: static !important;
    }
    .gg-sidebar-fixed .sticky-top {
        position: static !important;
    }
}


/* ==========================================================================
      23- لیست تیکت های کارشناس
   ========================================================================== */


/* استایل اختصاصی برای وضعیت تیکت‌ها */
.status-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.st-new { background-color: #ffe5e5; color: #d90429; }      /* قرمز ملایم */
.st-support { background-color: #e2f9df; color: #2d6a4f; }  /* سبز ملایم */
.st-user { background-color: #fff4e0; color: #d4a373; }     /* کرم/نارنجی */
.st-review { background-color: #e0f2fe; color: #0369a1; }   /* آبی ملایم */
.st-closed { background-color: #f1f5f9; color: #64748b; }   /* خاکستری ملایم */


/* مورد 5: Sticky کردن سایدبار و اصلاح کانتینر برای کارکرد صحیح Sticky */
.gguide-ticket-master-container { background: #fff; border-radius: 20px; overflow: visible; box-shadow: 0 10px 40px rgba(0,0,0,0.1); margin: 20px 0; }
.internal-layout-wrapper { display: flex; flex-direction: row; min-height: 800px; align-items: flex-start; }
.internal-sidebar { 
    width: 300px; background: #f8f9fa; border-left: 1px solid #eee; padding: 25px; 
    display: flex; flex-direction: column; 
    position: -webkit-sticky; position: sticky; top: 20px; height: fit-content;
}
.sidebar-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 3px; }
.card-label { font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 8px; display: block; }
.sidebar-textarea { font-size: 0.85rem; border: 1px solid #cbd5e1; border-radius: 8px; resize: none; background: #fff; }
.badge-status { padding: 6px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.ticket-chat-history { background: #fafafa; border: 1px solid #eee; border-radius: 15px; height: 600px; overflow-y: auto; display: flex; flex-direction: column; padding: 20px; }
.message-bubble { max-width: 80%; padding: 15px 20px; margin-bottom: 20px; font-size: 0.8rem; line-height: 1.5; }
.staff-msg { align-self: flex-start; background: #fff; border-radius: 18px 18px 4px 18px; border-right: 5px solid #0d6efd; border-left: 1px solid #eee; }
.user-msg { align-self: flex-end; background: #48AFFF; color: #fff; border-radius: 18px 18px 18px 4px; text-align: right; }
.reply-area-wrapper { width: 100%; padding-top: 20px; }
.chat-textarea { width: 100% !important; min-height: 90px; resize: vertical; border-radius: 12px; border: 2px solid #eee; padding: 10px; }
.chat-main-area { flex: 1; padding: 25px; display: flex; flex-direction: column; }
.fa-spin-hover:hover { animation: fa-spin 2s infinite linear; }
/* این را به بخش استایل‌ها اضافه کن */
.btn-outline-info {
    border: 2px solid #0dcaf0;
    color: #0dcaf0;
    transition: all 0.3s ease;
}
.btn-outline-info:hover {
    background: #0dcaf0;
    color: #fff;
    transform: translateY(-2px);
}


/* ۱- حل مشکل قرارگیری زیر هدر و فول‌اسکرین شدن [cite: 2026-02-12] */

#transferModal.modal {
    position: fixed !important;
    top: 0 !important;
    right: -10% !important;
    width: 100vw !important;
    height: 100vh !important;
    display: none; /* پیش‌فرض مخفی */
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px);
    overflow: hidden !important; /* جلوگیری از اسکرول خودِ لایه بک‌دراپ */
}


#transferModal.modal.show {
    z-index: 999999 !important; /* بالاتر از هدر سایت */
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* ۲ و ۳- استایل‌دهی به فیلدها و ظرف داخلی [cite: 2026-02-12] */
#transferModal .modal-content {
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3) !important;
}

#transferModal .modal-body {
    background: #fff !important;
    padding: 30px !important;
}

/* استایل اختصاصی برای Select و Textarea که در عکس بدون استایل بودند */
#transferModal .form-select, 
#transferModal .form-control {
    display: block;
    width: 100% ;
    padding: 12px 15px ;
    font-size: 14px ;
    border: 1px solid #e2e8f0 ;
    border-radius: 12px ;
    background-color: #f8fafc ;
    margin-top: 8px ;
    color: #334155 ;
    box-sizing: border-box ; /* حل مشکل بیرون زدگی از کادر */
}

#transferModal .form-select:focus, 
#transferModal .form-control:focus {
    border-color: #3b82f6 ;
    background-color: #fff ;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) ;
    outline: none ;
}

/* دکمه بستن قرمز رنگ (همان که دوست داشتی) */
#transferModal .btn-close-custom {
    position: absolute;
    top: 30%;
    left: 30%;
    background: #ef4444 !important;
    color: white !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.project-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.project-info-box {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.project-info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* افکت بلور برای امنیت بتنی با ظاهر شیشه‌ای */
.blur-text {
    filter: blur(4px);
    user-select: none;
    opacity: 0.7;
    cursor: help;
}

/* محدود کردن متن توضیحات */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* استایل کارت پروژه در حالت هاور */
.project-card-hover {
    transition: all 0.3s ease;
    border: 1px solid transparent !important;
}

.project-card-hover:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 25px rgba(110, 142, 251, 0.1) !important;
}

/* اصلاح فواصل در موبایل */
@media (max-width: 768px) {
    .border-start-md { border-right: none !important; }
    .project-card-hover { margin-bottom: 20px; }
}

@media (min-width: 768px) {
    .border-start-md { border-right: 1px solid rgba(0,0,0,0.05) !important; padding-right: 1rem; }
}


    .nav-tabs-custom { border-bottom: 2px solid #eee; margin-bottom: 25px; display: flex; gap: 10px; }
    .nav-link-custom { padding: 10px 20px; border-radius: 12px 12px 0 0; cursor: pointer; transition: 0.3s; color: #666; border-bottom: 3px solid transparent; }
    .nav-link-custom.active { color: var(--primary-color); border-bottom-color: var(--primary-color); background: rgba(110, 142, 251, 0.05); font-weight: bold; }
    .tab-content-custom { display: none; }
    .tab-content-custom.active { display: block; animation: fadeIn 0.4s; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .is-open .arrow-icon { transform: rotate(-90deg); }
    .skills-collapse { display: none; padding: 15px; background: rgba(0,0,0,0.02); border-radius: 0 0 15px 15px; }
    .is-open .skills-collapse { display: block; }
    /* حل مشکل چسبیدگی تگ‌ها و بهبود نمایش */
