﻿
:root {
    --green-main: #10b981 !important;
    --green-light: #ecfdf5 !important;
    --gray-text: #4b5563 !important;
    --gray-sub: #6b7280 !important;
    --card-bg: #ffffff !important;
    --radius: 18px !important;
}



.form-control,
.form-select {
    min-height: 45px;
    border-radius: .6rem;
}

textarea.form-control {
    min-height: 110px;
}

/* ===== Select2 Glass Fix ===== */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 45px;
    background-color: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(6px);
    border-radius: .6rem;
    border: 1px solid rgba(0,0,0,.15);
    display: flex;
    align-items: center;
}

.select2-selection__rendered {
    padding-right: 12px !important;
}

.select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%);
}

/* ===== Upload Wrapper ===== */
.upload-wrapper {
    background: rgba(255,255,255,0.7);
    border-radius: .75rem;
    padding: 1rem;
    border: 1px dashed rgba(0,0,0,.2);
}

/* ===== Button ===== */
.btn-success {
    border-radius: 30px;
    padding: .6rem 2.5rem;
    font-weight: 500;
}
      

        .dashboard-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            overflow: hidden;
            border: 1px solid #e5e7eb;
            padding: 0;
            transition: .25s;
            box-shadow: 0 6px 18px rgba(0,0,0,0.06);
        }

            .dashboard-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 12px 28px rgba(0,0,0,0.09);
            }

        .dashboard-header {
            background: var(--green-main);
            color: #fff;
            padding: 1rem 1.4rem;
            font-weight: 600;
            font-size: 1.05rem;
            border-bottom: 1px solid #08966d;
            letter-spacing: 0.3px;
        }

        .alert-message {
            background: var(--green-light);
            color: #065f46;
            border: 1px solid #b7f3d7;
            border-radius: var(--radius);
            padding: 1rem 1.1rem;
            font-size: .95rem;
            margin-bottom: .9rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }

        .list-group-item {
            padding: 0.95rem 1.2rem;
            font-size: .92rem;
            border: none;
            background: transparent;
            transition: .2s ease;
            color: var(--gray-text);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

            .list-group-item:hover {
                background: #f0fdf4;
                color: var(--green-main);
                transform: translateX(-4px);
            }

        .date {
            font-size: .8rem;
            color: var(--gray-sub);
        }

        /* 🟣 نمودار ریسپانسیو */
        .chart-container {
            width: 100%;
            max-width: 420px;
            aspect-ratio: 1 / 1;
            position: relative;
            margin: 0 auto;
            padding: 1rem;
        }

            .chart-container canvas {
                width: 100% !important;
                height: 100% !important;
            }

        .chart-center-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -55%);
            font-weight: 700;
            text-align: center;
            color: var(--green-main);
            line-height: 1.5;
            font-size: 1.1rem;
        }
        /* ✨ انیمیشن fade */
        .fade-in {
            animation: fadeIn .6s ease;
        }

        @@keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @@media (max-width: 576px) {
            .dashboard-card {
                border-radius: 14px;
            }

            .dashboard-header {
                font-size: .95rem;
                padding: .8rem 1rem;
            }

            .list-group-item {
                padding: 0.85rem 1rem;
                font-size: .88rem;
            }

            .chart-container {
                max-width: 300px;
                aspect-ratio: 1/1;
                padding: .6rem;
            }

            .chart-center-text {
                font-size: .95rem;
            }
        }
@font-face {
    font-family: 'vazir';
    src: url(/font/Vazir-Regular-FD.eot)format('eot');
    src: url(/font/Vazir-Regular-FD.ttf) format('truetype');
    src: url(/font/Vazir-Regular-FD.woff) format('woff');
    src: url(/font/Vazir-Regular-FD.woff2) format('woff2');
}
*:not(span,lable) {
    font-family: "Vazir", sans-serif;
    font-size: 13.5px;
}
.dropdown-menu {
    padding: 0px !important;
    border-radius: unset !important;
    border:unset !important;
}



    .table > tbody > tr:nth-of-type(odd) > * {
    background: var(--green-light) !important;
}
.table {
    border-radius: var(--bs-border-radius-xl) !important;
}

thead > tr {
    background: var(--green-main) !important;
}
.table > thead > tr > * {
    background: var(--green-main) !important;
    color: white !important;
}



/* 🔹 Header */
header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04) !important;
}

/* 🔹 Sidebar */
#sidebar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.3s ease-in-out !important;
    min-height: 100vh !important;
    transition: left 0.3s ease;
}

    #sidebar.hide {
        display:none;
    }
  

@media (max-width: 768px) {
    #sidebar.hide {
        display: block;
        background: rgba(255, 255, 255, 0.95) !important;
        border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
        backdrop-filter: blur(8px) !important;
        transition: all 0.3s ease-in-out !important;
        min-height: 100vh !important;
    }
    #sidebar {
       
        display:none;
    }
}

/* 🔹 Main Content */


/* 🔹 Footer */
footer {
    background: white !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #184e82 !important;
    font-size: 0.9rem !important;
}

/* 🔹 Glass Buttons */
.btn-glass {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(32,201,151,0.3) !important;
    color: #184e82 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    transition: all 0.25s !important;
}

    .btn-glass:hover {
        background: #20c997 !important;
        color: #fff !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(32,201,151,0.25) !important;
    }

/* 🔹 Logo & Header Titles */
header .brand-title {
    font-weight: 700 !important;
    color: #184e82 !important;
    font-size: 1rem !important;
}



/* 🔹 Scrollbar (modern white theme) */
::-webkit-scrollbar {
    width: 6px !important;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(24, 78, 130, 0.3) !important;
    border-radius: 8px !important;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(24, 78, 130, 0.5) !important;
    }

.pagination .page-link {
    color: #333; /* رنگ متن تیره (نزدیک به سیاه) */
    background-color: #fff !important; /* پس‌زمینه سفید */
    border: 1px solid #ccc !important; /* مرز خاکستری روشن */
    transition: all 0.3s ease-in-out !important;
    text-decoration: none !important; /* حذف خط زیر لینک‌ها */
}

    /* 2. هاور (Hover) روی لینک‌ها */
    .pagination .page-link:hover {
        color: #fff; /* متن سفید در هاور */
        background-color: #28a745 !important; /* پس‌زمینه سبز روشن بوت‌استرپ برای هاور */
        border-color: #28a745 !important; /* مرز سبز */
        text-decoration: none !important;
    }

/* 3. صفحه فعال (Active Page) */
.pagination .page-item.active .page-link,
.pagination .page-item.active .page-link:hover {
    color: #fff !important; /* متن سفید در صفحه فعال */
    background-color: #006400 !important; /* سبز تیره یا مشکی سبز (Dark Green) برای فعال بودن */
    border-color: #006400 !important; /* مرز سبز تیره */
}

/* 4. المان‌های غیرفعال (Disabled Ellipsis: ...) */
.pagination .page-item.disabled .page-link {
    color: #6c757d !important; /* خاکستری استاندارد برای متن غیرفعال */
    background-color: #f8f9fa !important; /* پس‌زمینه بسیار روشن */
    border-color: #dee2e6 !important;
    cursor: default !important; /* تغییر نشانگر ماوس */
}

/* 5. حذف فاصله اضافی بین صفحات (اختیاری - برای ظاهر مینیمال‌تر) */
.pagination {
    --bs-pagination-padding-x: 0.75rem !important; /* تنظیم مجدد برای فواصل داخلی */
    --bs-pagination-padding-y: 0.5rem !important;
}



.btn-success, .file-upload {
    background: var(--green-light) !important;
    color: black !important;

}

.btn-primary {
}

.table > thead > tr > * {
    background: var(--green-main) !important;
    color: white;
}


#accordionMenu {
    background: #ffffffcc !important;
    backdrop-filter: blur(18px) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    padding: 1rem !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.06) !important;
    transition: .3s ease !important;
}

/* 🔹 هدر منو */
.menu-header {
    background: #10b981 !important;
    color: white !important;
    padding: .75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .9rem;
    box-shadow: 0 4px 10px rgba(16,185,129,0.2);
}

/* 📌 دکمه‌های accordion */
.accordion-button {
    background: #f9fafb !important;
    color: #374151 !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb;
    font-weight: 500;
    font-size: 14px !important;
    box-shadow: none !important;
}



    .accordion-button:hover {
    }

.accordion-item {
    border: none !important;
    margin-bottom: 6px !important;
}

/* 🔗 آیتم‌های زیرمنو */
.list-group-item {
    border: none !important;
    background: transparent !important;
    border-radius: 8px !important;
    padding: .75rem 1rem !important;
    font-size: 14px !important;
    transition: .2s all !important;
}

    .list-group-item:hover {
        background: var(--green-light) !important;
    }

    /* 🚀 نسخه جدید Active — خیلی زیباتر و مدرن */
    .list-group-item.active {
        background: var(--green-light) !important;
        color: #065f46 !important;
        border: 1px solid #b7f3d7 !important;
        color: black !important;
        font-weight: 700 !important;
        transform: translateX(-1px) !important;
    }

/* 🤖 دستیار */
#aiPanel .card {
    background: #ffffffdd !important;
    border: 1px solid #d1fae5 !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
}

#aiPanel .card-header {
    background: #34d399 !important;
    color: #064e3b !important;
    font-weight: 600 !important;
    border-radius: 14px 14px 0 0 !important;
}

#aiPanel .card-body {
    background: #f9fafb !important;
    font-size: .9rem !important;
}

#aiPanel input {
    border-radius: 8px !important;
}
.HardFix {
    transform: translate(-901px, 125px) !important;
}

label, option {
    font-size: 16px;
   
}

🌈 حالت شیشه‌ای
.glass-box {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    transition: all .3s ease-in-out;
    animation: fadeIn .4s ease-in-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table thead {
    background: linear-gradient(90deg, #198754 0%, #20c997 100%);
    color: #fff ;
    position: sticky !important;
    top: 0;
    background: #ddd;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all .3s;
    color: #184e82;
}

    .btn-glass:hover {
        background: rgba(32, 201, 151, 0.3);
        transform: translateY(-2px);
    }
@media (max-width: 768px) {
    table:not(.datePicker) thead {
        display: none;
    }

    table:not(.datePicker) tbody tr {
        display: block;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 12px;
        margin-bottom: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        animation: cardFade .3s ease;
    }

    table:not(.datePicker) tbody td {
        display: flex;
        justify-content: space-between;
        padding: .6rem 1rem;
        font-size: .9rem;
        border: none !important;
    }

        table:not(.datePicker) tbody td::before {
            content: attr(data-label);
            font-weight: 600;
            color: #198754;
        }
}


@keyframes cardFade {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

 🧾 مودال 
.modal-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    animation: scaleIn .3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}





 📄 Pagination Glass Style 
.pagination .page-link {
    border: none;
    color: #198754;
    background: rgba(255,255,255,0.7);
    margin: 0 .25rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all .2s ease-in-out;
}

    .pagination .page-link:hover {
        background: linear-gradient(90deg, #20c997 0%, #198754 100%);
        color: #fff;
        transform: translateY(-2px);
    }

.pagination .active .page-link {
    background: linear-gradient(90deg, #198754 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(25,135,84,0.25);
}



.glass-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 10px;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    width: 100%;
}

/* دسکتاپ */
@media (min-width: 768px) {
    .glass-wrapper {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 0.5rem;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    min-height: 800px !important;
}

.page-header h4 {
    color: white;
}

.ticket-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.ticket-info {
    flex: 1 1 30%;
    min-width: 300px;
}

.chat-section {
    flex: 1 1 65%;
    min-width: 450px;
}

/* 🧩 Glass Sections */
    .glass-section {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.section-header {
    background: linear-gradient(90deg, #184e82, #20c997);
    color: white;
    font-weight: 600;
    padding: .7rem 1rem;
}

.section-body {
    padding: 1rem 1.2rem;
    max-height: 500px;
}

/* 📎 فایل‌ها */
.file-link {
    display: block;
    background: rgba(232, 245, 233, 0.8);
    color: #1b5e20;
    padding: 7px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .file-link:hover {
        background: rgba(200, 230, 201, 0.9);
        transform: translateX(-3px);
    }





/* 💬 چت */
.chat-section, chat-header {
    background: rgba(255,255,255,0.25);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    padding: 1rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* ⚠️ خطا */
.alert-box.error {
    background: rgba(255, 230, 230, 0.9);
    color: #b71c1c;
    border: 1px solid #ffcdd2;
    border-radius: 12px;
}

/* 📱 ریسپانسیو */
@media (max-width: 768px) {
    .ticket-container {
        flex-direction: column;
    }

    .chat-section {
        min-width: 100%;
    }

    .glass-card {
        padding: 1rem;
    }
}
/* Loading overlay */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 50;
    border-radius: 14px;
}

td {
    overflow: hidden;
    text-overflow: ellipsis;
  

}
@media (max-width: 768px) {
    td {
        max-width: none;
    }
}