:root, [data-bs-theme=light]{
--bs-primary-rgb: 0, 171, 201 !important;
--bs-primary: #00abc9 !important;
}

/* ============================================
   فونت‌ها
   ============================================ */
@font-face {
    font-family: 'Estedad';
    src: url('../fonts/Estedad/Estedad-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/Estedad/Estedad-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/Estedad/Estedad-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.app-toggler.active svg{
    transform: rotate(180deg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s;
}


.gradient-text {
    background-color: var(--bs-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.ltr{
    direction: ltr;
}

.nowrap
{
    white-space: nowrap;
}

.just-center
{
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-link.active{
    color: var(--bs-secondary);
    background-color: var(--bs-light);
}


.menu-link small{
    color: var(--bs-gray);
}


.maintenance-wrapper .maintenance-status {
    font-size: 50px;
  }
  .maintenance-wrapper .maintenance-heading {
    font-size: 15px;
    line-height: 1.5;
  }
  .maintenance-wrapper .maintenance-text {
    font-size: 13px;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    content: "\f19d";
    font-family: uicons-regular-rounded !important;
    font-weight: 700;
    font-size: 11px;
    line-height: 2;
  }

  .app-page-head .breadcrumb {
    opacity: unset;
}

.app-wrapper
{
    padding-bottom: 10px;
}

.parallax-section {
    background-image: radial-gradient(#fff 1px, transparent 1.4px);
    background-size: 26px 26px;
        opacity: 0.8;

    /* --- کلید ایجاد پارالاکس --- */
    background-attachment: fixed; 
    
    /* برای زیبایی بیشتر، کمی ارتفاع و پدینگ به بخش بدهید */
    min-height: 200px;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.15);
}

.table th {
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #667eea;
}

a {
    color: var(--bs-primary);
}

/* =========================================
   دکمه اصلی (Primary) - هم‌رنگ با برند شما
   ========================================= */
.btn-primary {
    background-color: #00abc9;
}

.btn-primary:hover {
    background-color: #008ea6; /* تیره‌تر کردن رنگ در حالت هاور */
    transform: translateY(-2px); /* کمی بالا آمدن دکمه */
    box-shadow: 0 6px 10px rgba(0, 171, 201, 0.4);
}

/* =========================================
   دکمه موفقیت (Success) - سبز هماهنگ با فیروزه‌ای
   ========================================= */
.btn-success {
    background-color: #10b981; /* سبز زمردی مدرن */
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background-color: #059669; /* تیره‌تر سبز */
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(16, 185, 129, 0.4);
}

/* =========================================
   دکمه خطر/حذف (Danger) - قرمز تند اما حرفه‌ای
   ========================================= */
.btn-danger {
    background-color: #ef4444; /* قرمز مدرن */
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background-color: #dc2626; /* تیره‌تر قرمز */
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(239, 68, 68, 0.4);
}

/* =========================================
   دکمه هشدار (Warning) - طلایی/نارنجی
   (برای تذکرات، آپدیت‌ها یا کارهایی که نیاز به دقت دارند)
   ========================================= */
.btn-warning {
    background-color: #f59e0b; /* کهربایی/نارنجی مدرن */
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
    color: #ffffff; /* متن سفید برای وضوح بالا */
}

.btn-warning:hover {
    background-color: #d97706; /* تیره‌تر کردن نارنجی */
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(245, 158, 11, 0.4);
}




input::placeholder, textarea::placeholder{
  opacity: 0.5 !important;
}

.tag-badge {
    display: inline-block;
    background: #f3f3f3;
    color: #6c757d;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin: 2px;
}

.hide {
    display:none !important;
}

.card{
border: 1px solid rgba(20, 50, 30, 0.10) !important;
    box-shadow: 0 18px 40px -28px rgba(190, 190, 190, 0.45) !important;
}

.grayscale
{
    filter: grayscale(100%);
}
.transparent-50 {
    opacity: 0.5; /* ۵۰٪ شفاف */
}
.whiten-image {
    filter: brightness(0) saturate(0) invert(1);
}
/* ============================================
   Header - منوی ناوبری
   ============================================ */
   .nav-menu {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}


.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
  }
  
  .nav-menu li:not(:last-child)::after {
    content: '|';
    color: var(--border-color);
    margin: 0 16px;
  }
  
  .nav-menu a {
    text-decoration: none;
    padding: 4px 0;
    position: relative;
    transition: all 0.3s ease;
  }

.nav-link {
    /* display: flex;
    align-items: center; */
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

/* ============================================
   Hero
   ============================================ */

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.hero-content h1 {
   
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
   
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* SVG Animations */
.neural-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
}

.floating-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}


.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ============================================
   Footer - ساختار اصلی
   ============================================ */
   .footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.social-links:hover {
    transition: unset !important;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: unset !important;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    color: var(--text-secondary);
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-item:hover {
    background: var(--bg-secondary);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
}

.contact-value:hover {
    color: #667eea;
}


/* ============================================
   Chatbot - ساختار اصلی
   ============================================ */
   

/* کارت اصلی – بدون کورنر */
.chat-master {
    width: 100%;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* هدر ساده */
.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}


/* ناحیه گفتگو */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* محفظه پیام‌ها */
.message-preview {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    scroll-behavior: smooth;
}

/* حالت خالی (وسط‌چین) */
.empty-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    gap: 12px;
    text-align: center;
    font-size: 1.3rem;
}

.empty-center i {
    font-size: 5rem;
    opacity: 0.5;
}

/* حباب پیام */
.message-bubble {
    max-width: 100%;  /* حداکثر عرض برابر با کل فضای موجود */
    margin-bottom: 1rem;
    animation: fadeIn 0.2s ease;
}

.message-user {
    display: flex;
    justify-content: flex-start;
}

.message-user .bubble-content {
    max-width: 100%;
    width: 100%;  /* تمام فضا را بگیرد */
    background: var(--bs-tertiary-bg);
    color: var(--bs-emphasis-color);
    border-radius: 20px 20px 5px 20px;
    padding: 10px 16px;
}

.message-ai {
    display: flex;
    justify-content: flex-start;
}

.message-ai .bubble-content {
    border: none;
    border-radius: 20px 20px 20px 5px;
    padding: 10px 16px;
    font-size: 0.9rem;
}

.bubble-content {
    max-width: 100%;  /* پر کردن تمام فضای پدر */
    width: fit-content;  /* یا auto - بر اساس محتوا */
}

/* مشکل: چندخطی نشدن متن - راه حل */

/* 1. اعمال white-space و word-wrap به bubble-content */
.bubble-content {
    white-space: pre-wrap;      /* حفظ فاصله‌ها و شکستن خط خودکار */
    word-wrap: break-word;      /* شکستن کلمات بلند */
    word-break: break-word;     /* شکستن در هر نقطه لازم */
    overflow-wrap: break-word;  /* شکستن کلمات در مرز */
    line-height: 1.5;           /* فاصله خطوط مناسب */
}

/* 2. اطمینان از اینکه متن در چند خط نمایش داده شود */
.message-user .bubble-content,
.message-ai .bubble-content {
    white-space: pre-wrap;
    word-break: break-word;
    display: block;
    width: 100%;
}

/* 3. اگر متن داخل <p> یا تگ خاصی است */
.bubble-content p,
.bubble-content span {
    white-space: pre-wrap !important;
    word-break: break-word !important;
}   

.file-chip {
    font-size: 0.7rem;
    background: #e2e8f0;
    border-radius: 16px;
    padding: 3px 10px;
    display: inline-block;
    margin-top: 6px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px);}
    to { opacity: 1; transform: translateY(0);}
}

/* کانتینر ورودی (در پایین کارت) */
.input-container {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    transition: all 0.2s;
}

/* باکس ورودی شامل دکمه‌ها و textarea */
.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 6px 12px;
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 4px;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    min-height: 70px;      /* برای 3 خط */
    max-height: 120px;
    line-height: 1.5;
}

textarea::placeholder {
    color: #94a3b8;
}

.icon-btn.recording {
    background: #ef4444;
    color: white;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* دکمه‌های داخلی */
.icon-btn {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    color: #475569;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.icon-btn.active {
    background: #e2e8f0;
    color: #0f172a !important;
}

.send-btn {
    background: #e2e8f0;
    color: #475569;
}

.send-btn:hover {
    background-color: var(--bs-gray-bg-subtle);
}

/* دکمه تفکر عمیق (فعال/غیرفعال) */
.deep-active {
    background: #e0e7ff;
    color: #4338ca;
}

/* نشانگر تایپ */
.typing-status {
    padding: 0 1.5rem 0.5rem 1.5rem;
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.typing-status i {
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none;
}

/* اسکرول‌بار نازک */
.message-preview::-webkit-scrollbar {
    width: 4px;
}
.message-preview::-webkit-scrollbar-track {
    background: #eef2f6;
}
.message-preview::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}


    .hero-section
    {
        padding-top: 50px;
    }
/* ============================================================
   استایل‌های واکنش‌گرا برای هدر
   ============================================================ */

/* ===== تبلت (تا 992px) ===== */
@media (max-width: 992px) {
    /* مخفی کردن منوها */
    .nav-menu {
        display: none !important;
    }
    
    /* فاصله‌گذاری */
    .app-header-start {
        gap: 8px !important;
    }

    .headerauth{
        display: inline !important;
    }
}

/* ===== موبایل (تا 576px) ===== */
@media (max-width: 576px) {
    /* مخفی کردن منوها */
    .nav-menu {
        display: none !important;
    }
    
    /* مخفی کردن دکمه تغییر تم */
    .theme-btn {
        display: none !important;
    }
    
    /* مخفی کردن متن ورود */
    .dropdown .text-end {
        display: none !important;
    }
    
    /* تنظیم فضای داخلی */
    .app-header-inner {
        padding: 8px 12px !important;
    }
    
    .app-header-end {
        gap: 6px !important;
    }

    .headerauth .text-end
    {
        display: inline !important;
    }
}

/* ===== منوی همبرگری (اختیاری) ===== */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--bs-heading-color);
    padding: 4px 8px;
}

@media (max-width: 992px) {
    .hamburger-menu {
        display: block !important;
    }
}

/* ===== منوی باز شده در موبایل ===== */
.mobile-nav-open .nav-menu {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bs-body-bg);
    padding: 16px 20px;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 0 0 12px 12px;
}

.mobile-nav-open .nav-menu li {
    list-style: none;
}

.mobile-nav-open .nav-menu a {
    display: block;
    padding: 8px 0;
    font-size: 16px;
}