﻿/* =========================================================
   MPE - Global Styles
   Version 2.0
   ========================================================= */


/* =========================================================
   IRMitra
   ========================================================= */

@font-face {
    font-family: 'IRMitra';
    src: url('../fonts/irmitra.eot');
    src: url('../fonts/irmitra.eot?#iefix') format('embedded-opentype'), url('../fonts/irmitra.woff2') format('woff2'), url('../fonts/irmitra.woff') format('woff'), url('../fonts/irmitra.ttf') format('truetype'), url('../fonts/irmitra.svg#irmitra') format('svg');
    font-weight: normal;
    font-style: normal;
}


/* =========================================================
   MPE Variables
   ========================================================= */

:root {
    --mpe-purple: #4b2a73;
    --mpe-purple-dark: #321b4f;
    --mpe-purple-light: #f4f0f8;
    --mpe-gold: #c9a227;
    --mpe-gold-dark: #ad891d;
    --mpe-gold-light: #eadb9b;
    --mpe-text: #2f2f35;
    --mpe-muted: #77777f;
    --mpe-border: #e4e1e8;
    --mpe-bg: #f8f7fa;
    --mpe-white: #ffffff;
    --mpe-success: #198754;
    --mpe-danger: #dc3545;
    --mpe-warning: #d39e00;
    --mpe-radius: 10px;
    --mpe-radius-sm: 7px;
    --mpe-shadow: 0 4px 18px rgba(50, 27, 79, 0.08);
    --mpe-shadow-sm: 0 2px 8px rgba(50, 27, 79, 0.06);
    --mpe-transition: 0.18s ease;
}


/* =========================================================
   Base
   ========================================================= */

html {
    direction: rtl;
    font-size: 16px;
}

html,
body,
button,
input,
select,
textarea,
.form-control,
.form-select,
.btn,
.table,
.dropdown-menu,
.modal {
    font-family: 'IRMitra', sans-serif;
}

body {
    margin: 0;
    background-color: var(--mpe-bg);
    color: var(--mpe-text);
    direction: rtl;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    color: var(--mpe-purple);
    text-decoration: none;
    transition: color var(--mpe-transition), background-color var(--mpe-transition), opacity var(--mpe-transition);
}

    a:hover {
        color: var(--mpe-purple-dark);
    }
/* =========================================================
   Typography
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--mpe-text);
    line-height: 1.5;
    font-weight: 700;
}

h1 {
    font-size: 1.7rem;
}

h2 {
    font-size: 1.45rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.1rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.95rem;
}

.mpe-title-text {
    font-weight: 700;
}

.mpe-section-title {
    color: var(--mpe-purple);
    font-size: 1.1rem;
    font-weight: 700;
}

.mpe-meta {
    color: var(--mpe-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.mpe-help {
    color: var(--mpe-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}


/* =========================================================
   Page Header
   ========================================================= */

.mpe-title {
    min-height: 150px;
    border-bottom: 4px solid var(--mpe-gold);
}

.mpe-navbar {
    background: var(--mpe-purple);
    border-bottom: 2px solid var(--mpe-gold);
}

    .mpe-navbar .nav-link {
        padding: 11px 17px;
        color: var(--mpe-white);
        font-weight: 600;
        transition: background-color var(--mpe-transition), color var(--mpe-transition), transform var(--mpe-transition);
    }

        .mpe-navbar .nav-link:hover,
        .mpe-navbar .nav-link:focus {
            background: var(--mpe-purple-dark);
            color: var(--mpe-gold-light);
            transform: translateY(-1px);
        }

        .mpe-navbar .nav-link.active {
            background: var(--mpe-purple-dark);
            color: var(--mpe-gold-light);
        }


/* =========================================================
   Page Layout
   ========================================================= */

.mpe-page {
    padding: 30px 0;
}

.mpe-section {
    margin-bottom: 24px;
}


/* =========================================================
   Cards
   ========================================================= */

.mpe-card {
    background: var(--mpe-white);
    border: 1px solid var(--mpe-border);
    border-radius: var(--mpe-radius);
    box-shadow: var(--mpe-shadow);
}

.mpe-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mpe-border);
    color: var(--mpe-purple);
    font-size: 1.05rem;
    font-weight: 700;
}

.mpe-card-body {
    padding: 20px;
}


/* کارت های قابل تعامل */

.mpe-card-interactive {
    transition: transform var(--mpe-transition), box-shadow var(--mpe-transition), border-color var(--mpe-transition);
}

    .mpe-card-interactive:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(50, 27, 79, 0.12);
    }


/* =========================================================
   Buttons
   ========================================================= */

.btn {
    border-radius: var(--mpe-radius-sm);
    font-weight: 600;
    transition: color var(--mpe-transition), background-color var(--mpe-transition), border-color var(--mpe-transition), box-shadow var(--mpe-transition), transform var(--mpe-transition);
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn:focus {
        box-shadow: 0 0 0 0.2rem rgba(75, 42, 115, 0.12);
    }

.btn-primary {
    background-color: var(--mpe-purple);
    border-color: var(--mpe-purple);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--mpe-purple-dark);
        border-color: var(--mpe-purple-dark);
    }

.btn-outline-primary {
    color: var(--mpe-purple);
    border-color: var(--mpe-purple);
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus {
        background-color: var(--mpe-purple);
        border-color: var(--mpe-purple);
        color: var(--mpe-white);
    }

.btn-gold {
    background-color: var(--mpe-gold);
    border-color: var(--mpe-gold);
    color: var(--mpe-white);
}

    .btn-gold:hover,
    .btn-gold:focus {
        background-color: var(--mpe-gold-dark);
        border-color: var(--mpe-gold-dark);
        color: var(--mpe-white);
    }

.btn-sm {
    font-size: 0.85rem;
}
/* =========================================================
   Forms
   ========================================================= */

.form-control,
.form-select {
    border-color: var(--mpe-border);
    border-radius: var(--mpe-radius-sm);
    color: var(--mpe-text);
    font-size: 1rem;
    transition: border-color var(--mpe-transition), box-shadow var(--mpe-transition);
}

    .form-control::placeholder {
        color: #a2a0a8;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--mpe-purple);
        box-shadow: 0 0 0 0.2rem rgba(75, 42, 115, 0.12);
    }

    .form-control:disabled,
    .form-select:disabled {
        background-color: #f1f0f3;
    }

.form-floating > label {
    color: var(--mpe-muted);
}

.form-text {
    color: var(--mpe-muted);
    font-size: 0.85rem;
}


/* =========================================================
   Tables
   ========================================================= */

.table {
    background-color: var(--mpe-white);
    color: var(--mpe-text);
}

    .table thead th {
        background-color: var(--mpe-purple);
        color: var(--mpe-white);
        border-color: var(--mpe-purple);
        font-weight: 700;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .table tbody td {
        font-size: 0.92rem;
    }

    .table tbody tr {
        transition: background-color var(--mpe-transition), transform var(--mpe-transition);
    }

        .table tbody tr:hover {
            background-color: var(--mpe-purple-light);
        }

.mpe-table-compact th,
.mpe-table-compact td {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.mpe-table-title {
    font-weight: 700;
}

.mpe-table-meta {
    color: var(--mpe-muted);
    font-size: 0.82rem;
}


/* =========================================================
   Toolbar
   ========================================================= */

.mpe-toolbar {
    background: var(--mpe-white);
    border: 1px solid var(--mpe-border);
    border-radius: var(--mpe-radius);
    padding: 12px;
}

.mpe-toolbar-title {
    color: var(--mpe-purple);
    font-weight: 700;
}


/* =========================================================
   Pagination
   ========================================================= */

.pagination .page-link {
    color: var(--mpe-purple);
    border-color: var(--mpe-border);
    font-size: 0.85rem;
    transition: color var(--mpe-transition), background-color var(--mpe-transition), border-color var(--mpe-transition), transform var(--mpe-transition);
}

    .pagination .page-link:hover {
        color: var(--mpe-purple-dark);
        background-color: var(--mpe-purple-light);
        border-color: var(--mpe-purple);
        transform: translateY(-1px);
    }

.pagination .page-item.active .page-link {
    background-color: var(--mpe-purple);
    border-color: var(--mpe-purple);
    color: var(--mpe-white);
}

.pagination .page-item.disabled .page-link {
    color: #aaa7b0;
    background-color: #f5f4f6;
}


/* =========================================================
   Empty State
   ========================================================= */

.mpe-empty {
    padding: 45px 20px;
    text-align: center;
    color: var(--mpe-muted);
}

.mpe-empty-title {
    margin-bottom: 6px;
    color: var(--mpe-text);
    font-weight: 700;
}

.mpe-empty-text {
    font-size: 0.88rem;
}


/* =========================================================
   Footer
   ========================================================= */

.mpe-footer {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--mpe-purple-dark);
    color: var(--mpe-white);
    border-top: 3px solid var(--mpe-gold);
    text-align: center;
}

    .mpe-footer .mpe-gold {
        color: var(--mpe-gold-light);
    }


/* =========================================================
   Messages
   ========================================================= */

.mpe-message {
    border-top: 4px solid var(--mpe-gold);
}

.mpe-message-success {
    border-top-color: var(--mpe-success);
}

.mpe-message-danger {
    border-top-color: var(--mpe-danger);
}

.mpe-message-warning {
    border-top-color: var(--mpe-warning);
}


/* =========================================================
   Modal
   ========================================================= */

.mpe-modal-title {
    color: var(--mpe-purple);
    font-weight: 700;
}

.modal-content {
    border: 1px solid var(--mpe-border);
    border-radius: var(--mpe-radius);
    box-shadow: var(--mpe-shadow);
    transition: transform var(--mpe-transition), box-shadow var(--mpe-transition);
}

.modal-header {
    border-bottom-color: var(--mpe-border);
}

.modal-footer {
    border-top-color: var(--mpe-border);
}


/* =========================================================
   Security
   ========================================================= */

.mpe-security {
    color: var(--mpe-muted);
    font-size: 0.88rem;
}

    .mpe-security::before {
        content: "🔒";
        margin-left: 6px;
    }


/* =========================================================
   Utility
   ========================================================= */

.text-pre-wrap {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.mpe-nowrap {
    white-space: nowrap;
}

.mpe-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpe-muted {
    color: var(--mpe-muted);
}

.mpe-purple {
    color: var(--mpe-purple);
}

.mpe-gold {
    color: var(--mpe-gold);
}


/* =========================================================
   MPE Interaction Layer
   ========================================================= */

.mpe-live {
    transition: transform var(--mpe-transition), box-shadow var(--mpe-transition), border-color var(--mpe-transition), color var(--mpe-transition), background-color var(--mpe-transition);
}

    .mpe-live:hover {
        transform: translateY(-2px);
    }

.mpe-live-soft {
    transition: box-shadow var(--mpe-transition), border-color var(--mpe-transition);
}

    .mpe-live-soft:hover {
        box-shadow: 0 6px 18px rgba(50, 27, 79, 0.12);
    }


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {

    .mpe-title {
        min-height: 110px;
    }

    .mpe-page {
        padding: 35px 25px;
    }

    @media (max-width: 768px) {

        .mpe-page {
            padding: 20px 12px;
        }
    }

    .mpe-card-body {
        padding: 15px;
    }

    .mpe-card-header {
        padding: 14px 15px;
    }

    .mpe-navbar .nav-link {
        padding: 10px 12px;
    }

    .table thead th {
        font-size: 0.85rem;
    }

    .table tbody td {
        font-size: 0.88rem;
    }

    .mpe-toolbar {
        padding: 10px;
    }
}


/* =========================================================
   Waiting
   ========================================================= */

.mpe-waiting {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    cursor: wait;
}

.mpe-waiting-box {
    min-width: 220px;
    padding: 28px 35px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.mpe-waiting-spinner {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.mpe-spinner-circle {
    width: 46px;
    height: 46px;
    border: 4px solid #dee2e6;
    border-top-color: var(--mpe-purple);
    border-radius: 50%;
    animation: mpe-spin 0.8s linear infinite;
}

.mpe-waiting-text {
    font-size: 15px;
    font-weight: 600;
}

.mpe-busy {
    cursor: wait;
}

@keyframes mpe-spin {
    to {
        transform: rotate(360deg);
    }
}
/* =========================================================
   MPE Eyebrow
   ---------------------------------------------------------
   عنوان کوچک بالای تیتر اصلی یا تیتر بخش
   ========================================================= */

.mpe-eyebrow {
    display: inline-block;
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.02em;
    opacity: 0.75;
}
/* =========================================================
   MPE — Page Hero
   الگوی عمومی Hero صفحات
   ========================================================= */

.mpe-page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 45px;
    padding: 65px 35px;
    border-radius: var(--mpe-radius);
    background: linear-gradient( 135deg, #172f46 0%, #214765 55%, #315d7d 100% );
    color: var(--mpe-white);
    text-align: center;
    box-shadow: 0 18px 45px rgba(24, 45, 67, .14);
}


    .mpe-page-hero::before {
        content: "";
        position: absolute;
        width: 330px;
        height: 330px;
        top: -170px;
        left: -110px;
        border-radius: 50%;
        background: rgba(255,255,255,.045);
    }


    .mpe-page-hero::after {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        right: -100px;
        bottom: -150px;
        border-radius: 50%;
        background: rgba(255,255,255,.04);
    }


.mpe-page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}


.mpe-page-hero-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 18px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.88);
    font-size: .86rem;
    font-weight: 600;
}


.mpe-page-hero-title {
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.65;
    text-align: center;
}


.mpe-page-hero-lead {
    max-width: 780px;
    margin: 0 auto;
    color: rgba(255,255,255,.88);
    font-size: 1.05rem;
    line-height: 2.25;
    text-align: center;
}


@media (max-width: 768px) {

    .mpe-page-hero {
        padding: 45px 22px;
    }

    .mpe-page-hero-title {
        font-size: 30px;
    }

    .mpe-page-hero-lead {
        font-size: .92rem;
    }
}

/* ============================================================
   UPDATE PROGRESS - OVERLAY + وسط صفحه
   ============================================================ */

/* Overlay کامل صفحه */
.mpe-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: mpeFadeIn 0.3s ease;
}

/* جعبه اسپینر در وسط صفحه */
.mpe-progress-box {
    background: #ffffff;
    padding: 45px 55px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    min-width: 220px;
    animation: mpeScaleIn 0.3s ease;
}

/* اسپینر */
.mpe-spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .mpe-spinner-wrapper .spinner-border {
        width: 4rem !important;
        height: 4rem !important;
        border-width: 0.35rem;
    }

/* متن */
.mpe-progress-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d6efd;
    margin-top: 16px;
}

/* نقطه‌های متحرک */
.mpe-progress-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

    .mpe-progress-dots .dot {
        width: 10px;
        height: 10px;
        background: #0d6efd;
        border-radius: 50%;
        animation: mpeDotBounce 1.4s infinite ease-in-out both;
    }

        .mpe-progress-dots .dot:nth-child(1) {
            animation-delay: -0.32s;
        }

        .mpe-progress-dots .dot:nth-child(2) {
            animation-delay: -0.16s;
        }

        .mpe-progress-dots .dot:nth-child(3) {
            animation-delay: 0s;
        }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes mpeFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mpeScaleIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes mpeDotBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================================
   BODY BUSY - غیرفعال کردن کلیک در حین بارگذاری
   ============================================================ */

body.mpe-busy {
    cursor: wait !important;
    overflow: hidden !important;
}

    body.mpe-busy * {
        cursor: wait !important;
        pointer-events: none !important;
    }

    /* اجازه کلیک روی مودال‌ها در حالت busy */
    body.mpe-busy .modal,
    body.mpe-busy .modal *,
    body.mpe-busy .modal-content,
    body.mpe-busy .modal-dialog,
    body.mpe-busy .btn-close,
    body.mpe-busy .btn {
        pointer-events: auto !important;
        cursor: pointer !important;
    }

/* ============================================================
   SITE MASTER - استایل‌های عمومی
   ============================================================ */

/* ---------- HEADER ---------- */
.site-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.site-title-img {
    max-height: 55px;
    width: auto;
}

/* ---------- BUTTONS ---------- */
.btn-gold {
    background: linear-gradient(135deg, #ffc107 0%, #e6a800 100%);
    border: none;
    color: #1a1a1a !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-gold:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
        color: #1a1a1a !important;
    }

/* ---------- NAVBAR ---------- */
.site-navbar {
    background: linear-gradient(135deg, #6f42c1 0%, #4a2d7a 100%);
    padding: 0;
    box-shadow: 0 4px 16px rgba(106, 17, 203, 0.25);
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}

    .site-navbar .nav-link {
        color: rgba(255, 255, 255, 0.9);
        padding: 12px 20px;
        font-weight: 500;
        transition: all 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

        .site-navbar .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
        }

        .site-navbar .nav-link i {
            margin-left: 6px;
        }

    .site-navbar .dropdown-menu {
        border: none;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        border-top: 3px solid #6f42c1;
        padding: 6px 0;
    }

    .site-navbar .dropdown-item {
        padding: 8px 24px;
        transition: all 0.2s ease;
    }

        .site-navbar .dropdown-item:hover {
            background: #f3edff;
            color: #6f42c1;
        }

/* ---------- MAIN ---------- */
.site-main {
    min-height: calc(100vh - 300px);
    padding: 30px 0;
    background: #f8fafc;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: #1a1a2e;
    color: #c8c8c8;
    margin-top: 40px;
}

.footer-brand .footer-logo {
    max-height: 45px;
    width: auto;
}

.footer-brand h5 {
    color: #ffffff;
    font-weight: 700;
}

.footer-brand p {
    max-width: 350px;
    line-height: 1.8;
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, #6f42c1, #ffc107);
        border-radius: 4px;
    }

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #c8c8c8;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 0.9rem;
    }

        .footer-links a:hover {
            color: #ffc107;
            padding-right: 6px;
        }

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-contact li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 10px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

        .footer-contact li i {
            color: #ffc107;
            font-size: 1.1rem;
            margin-top: 3px;
            min-width: 20px;
        }

    .footer-contact a {
        color: #c8c8c8;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .footer-contact a:hover {
            color: #ffc107;
        }

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .social-link:hover {
        transform: translateY(-4px);
        color: #ffffff;
    }

    .social-link.telegram {
        background: #0088cc;
    }

        .social-link.telegram:hover {
            box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
        }

    .social-link.instagram {
        background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    }

        .social-link.instagram:hover {
            box-shadow: 0 4px 16px rgba(220, 39, 67, 0.4);
        }

    .social-link.whatsapp {
        background: #25d366;
    }

        .social-link.whatsapp:hover {
            box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
        }

    .social-link.email {
        background: #ea4335;
    }

        .social-link.email:hover {
            box-shadow: 0 4px 16px rgba(234, 67, 53, 0.4);
        }

.footer-newsletter .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

    .footer-newsletter .form-control::placeholder {
        color: #888;
    }

    .footer-newsletter .form-control:focus {
        background: rgba(255, 255, 255, 0.08);
        border-color: #6f42c1;
        box-shadow: none;
    }

.footer-divider {
    border-color: rgba(255, 255, 255, 0.06);
    margin: 0;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

    .footer-bottom-links a {
        color: #8b8b8b;
        text-decoration: none;
        font-size: 0.85rem;
        transition: color 0.2s ease;
    }

        .footer-bottom-links a:hover {
            color: #ffc107;
        }

/* ============================================================
   RESPONSIVE - SITE MASTER
   ============================================================ */

@media (max-width: 768px) {
    .footer-bottom-links {
        justify-content: center;
    }

    .footer-contact li {
        font-size: 0.85rem;
    }

    .footer-social {
        justify-content: center;
    }

    .site-navbar .nav-link {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 10px 16px;
    }

    .site-navbar .dropdown-menu {
        border-radius: 0;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        box-shadow: none;
    }

    .site-navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.8);
        padding: 8px 32px;
    }

        .site-navbar .dropdown-item:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
        }
}

/* =========================================================
   MPE - Content Management (Academy, Articles, etc.)
   ========================================================= */

/* ----- Page Header ----- */
.mpe-page-header {
    margin-bottom: 30px;
}

    .mpe-page-header h4 {
        font-weight: 700;
        color: #1a1a2e;
    }

    .mpe-page-header .subtitle {
        color: var(--mpe-muted);
    }

/* ----- Content Grid ----- */
.mpe-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

/* ----- Content Card ----- */
.mpe-content-card {
    background: var(--mpe-white);
    border-radius: 14px;
    border: 1px solid var(--mpe-border);
    overflow: hidden;
    transition: all var(--mpe-transition);
}

    .mpe-content-card:hover {
        box-shadow: 0 8px 30px rgba(75, 42, 115, 0.10);
        transform: translateY(-3px);
    }

    .mpe-content-card .card-image {
        width: 100%;
        height: 160px;
        background: #f0edf5;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

        .mpe-content-card .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .mpe-content-card .card-image .no-image {
            color: #b0a8b8;
            font-size: 2.5rem;
        }

    .mpe-content-card .card-body {
        padding: 16px;
    }

    .mpe-content-card .content-type {
        display: inline-block;
        padding: 2px 12px;
        border-radius: 999px;
        font-size: 0.7rem;
        font-weight: 600;
        background: var(--mpe-purple-light);
        color: var(--mpe-purple);
        margin-bottom: 8px;
    }

    .mpe-content-card .content-title {
        font-weight: 700;
        color: #1a1a2e;
        font-size: 1rem;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

        .mpe-content-card .content-title a {
            color: #1a1a2e;
            text-decoration: none;
        }

            .mpe-content-card .content-title a:hover {
                color: var(--mpe-purple);
            }

    .mpe-content-card .content-summary {
        color: var(--mpe-muted);
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .mpe-content-card .content-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.75rem;
        color: #b0a8b8;
        border-top: 1px solid #f0edf5;
        padding-top: 10px;
    }

        .mpe-content-card .content-meta .status-badge {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 999px;
            font-size: 0.65rem;
            font-weight: 600;
        }

.status-badge.published {
    background: #e6f7e6;
    color: #0d7a3e;
}

.status-badge.draft {
    background: #fff3e0;
    color: #b86b00;
}

.mpe-content-card .card-actions {
    display: flex;
    gap: 4px;
    padding: 10px 16px 16px;
    border-top: 1px solid #f0edf5;
}

/* ----- Toolbar Extensions ----- */
.mpe-toolbar .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

    .mpe-toolbar .search-box input,
    .mpe-toolbar .search-box .form-control {
        border: 1px solid var(--mpe-border);
        border-radius: var(--mpe-radius-sm);
        padding: 8px 14px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 350px;
        transition: border-color var(--mpe-transition);
    }

        .mpe-toolbar .search-box input:focus,
        .mpe-toolbar .search-box .form-control:focus {
            border-color: var(--mpe-purple);
            outline: none;
        }

.mpe-toolbar .filter-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .mpe-toolbar .filter-box select,
    .mpe-toolbar .filter-box .form-select {
        border: 1px solid var(--mpe-border);
        border-radius: var(--mpe-radius-sm);
        padding: 8px 14px;
        font-size: 0.9rem;
        background: var(--mpe-white);
    }

/* ----- Empty State Extensions ----- */
.mpe-empty i {
    font-size: 4rem;
    color: #d4cddf;
    margin-bottom: 16px;
}

.mpe-empty h5 {
    color: #1a1a2e;
    font-weight: 700;
}

/* =========================================================
   MPE - Form Sections (برای صفحات ثبت/ویرایش)
   ========================================================= */

.mpe-form-section {
    background: var(--mpe-white);
    border-radius: var(--mpe-radius);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--mpe-border);
}

    .mpe-form-section h6 {
        font-weight: 700;
        color: var(--mpe-purple);
        margin-bottom: 16px;
    }

/* ----- Media Upload Box ----- */
.mpe-upload-box {
    border: 2px dashed #d4cddf;
    border-radius: var(--mpe-radius);
    padding: 20px;
    text-align: center;
    transition: all var(--mpe-transition);
    cursor: pointer;
}

    .mpe-upload-box:hover {
        border-color: var(--mpe-purple);
        background: var(--mpe-purple-light);
    }

    .mpe-upload-box .file-input {
        display: none;
    }

    .mpe-upload-box i {
        font-size: 2rem;
        color: #b0a8b8;
    }

    .mpe-upload-box .label {
        display: block;
        margin-top: 8px;
        color: var(--mpe-purple);
        font-weight: 600;
    }

    .mpe-upload-box .hint {
        display: block;
        font-size: 0.8rem;
        color: var(--mpe-muted);
    }

    .mpe-upload-box .file-preview {
        display: inline-block;
        padding: 8px 16px;
        background: #f0edf5;
        border-radius: var(--mpe-radius-sm);
        margin-top: 8px;
        font-size: 0.85rem;
    }

        .mpe-upload-box .file-preview .remove-file {
            color: var(--mpe-danger);
            cursor: pointer;
            margin-right: 8px;
        }

/* ----- New Button in Tab ----- */
.mpe-btn-new-in-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 2px dashed #d4cddf;
    border-radius: var(--mpe-radius-sm);
    background: transparent;
    color: var(--mpe-purple);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--mpe-transition);
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
}

    .mpe-btn-new-in-tab:hover {
        border-color: var(--mpe-purple);
        background: var(--mpe-purple-light);
    }


/* فرم‌فلوتینگ با Select2 */
.form-floating > .select2-container {
    height: 100%;
}

    .form-floating > .select2-container .select2-selection--single {
        height: 100% !important;
        padding-top: 1.625rem;
        padding-bottom: 0.625rem;
        border: 1px solid #ced4da;
    }

        .form-floating > .select2-container .select2-selection--single .select2-selection__rendered {
            line-height: 1.5 !important;
            padding-left: 0.75rem;
        }

        .form-floating > .select2-container .select2-selection--single .select2-selection__arrow {
            height: 100% !important;
        }

/* وقتی Select2 مقدار انتخاب کرده، label رو ببر بالا */
.form-floating:has(.select2-container--default .select2-selection--single .select2-selection__rendered:not(:empty)) > label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.mpe-picker-hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════ */
/* ucTaskPanel — پنل گوشه‌ای تسک‌ها                     */
/* ═══════════════════════════════════════════════════ */

.mpe-task-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    max-height: 400px;
    z-index: 1040;
    font-size: 0.85rem;
}

    .mpe-task-panel .card-header {
        background: var(--mpe-purple, #6f42c1);
        color: #fff;
    }

        .mpe-task-panel .card-header .btn-link {
            color: #fff;
            opacity: 0.7;
        }

            .mpe-task-panel .card-header .btn-link:hover {
                opacity: 1;
            }

.mpe-task-panel-body {
    max-height: 260px;
    overflow-y: auto;
}

.mpe-task-item {
    padding: 6px 8px;
    border-radius: 6px;
    border-right: 3px solid #ccc;
    margin-bottom: 4px;
    transition: background 0.15s;
}

    .mpe-task-item:hover {
        background: #f8f9fa;
    }

    .mpe-task-item.priority-1 {
        border-right-color: #28a745;
    }
    /* کم */
    .mpe-task-item.priority-2 {
        border-right-color: #ffc107;
    }
    /* متوسط */
    .mpe-task-item.priority-3 {
        border-right-color: #dc3545;
    }
    /* بحرانی */

    .mpe-task-item.completed {
        opacity: 0.5;
    }

        .mpe-task-item.completed .task-title {
            text-decoration: line-through;
        }

    .mpe-task-item .task-title {
        font-weight: 600;
        color: #1a1a2e;
    }

    .mpe-task-item .task-meta {
        font-size: 0.7rem;
        color: #6c757d;
        margin-top: 2px;
    }

/* ⚡ تسک انجام‌شده در ucLastPart */
.task-completed {
    opacity: 0.6;
    text-decoration: line-through;
}