/* سیستم مگامنو - چسبیده به هدر */
.mpda-full-panel-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    z-index: 100000;
}

.mpda-megamenu-wrapper {
    display: flex;
    height: calc(100vh - 120px); /* قد کل منهای هدر */
    margin-top: 120px; /* ارتفاع هدر */
    background: transparent;
    position: relative;
}

.mpda-megamenu {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 120px; /* زیر هدر */
    bottom: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 5px 0 25px rgba(0,0,0,0.4);
    border-left: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* حالت باز با هاور */
.mpda-megamenu:hover {
    width: 300px;
    box-shadow: 8px 0 30px rgba(0,0,0,0.5);
}

.menu-content {
    flex: 1;
    padding: 20px 0;
}

.menu-section {
    margin-bottom: 15px;
    position: relative;
}

.section-header {
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
    background: rgba(255,255,255,0.03);
    margin: 0 10px 10px 10px;
    border-radius: 8px 0 0 8px;
}

.section-header:hover {
    background: rgba(255,255,255,0.07);
    border-right-color: #3b82f6;
    transform: translateX(-5px);
}

.section-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    flex: 1;
}

.section-header i {
    color: #3b82f6;
    font-size: 14px;
    min-width: 20px;
}

.section-toggle {
    font-size: 11px;
    color: #64748b;
    transition: transform 0.3s ease;
}

/* آیتم‌های بخش */
.section-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    padding-left: 15px;
}

.menu-section:hover .section-items {
    max-height: 1000px;
    opacity: 1;
}

.menu-group {
    margin-bottom: 5px;
    position: relative;
}

.group-header {
    padding: 12px 25px 12px 55px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #cbd5e1;
    border-right: 3px solid transparent;
}

.group-header:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    border-right-color: #10b981;
    padding-left: 60px;
}

.group-header i:first-child {
    color: #3b82f6;
    width: 18px;
    text-align: center;
    font-size: 13px;
}

.group-toggle {
    margin-right: auto;
    font-size: 11px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.group-header:hover .group-toggle {
    transform: rotate(180deg);
    color: white;
}

.group-content {
    max-height: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    transition: max-height 0.3s ease;
    opacity: 0;
    margin-right: 10px;
    border-radius: 6px;
}

.menu-group:hover .group-content {
    max-height: 600px;
    opacity: 1;
    margin-top: 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px 11px 65px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.25s ease;
    border-right: 3px solid transparent;
    position: relative;
    font-size: 13px;
}

.menu-item:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    color: white;
    border-right-color: #3b82f6;
    padding-left: 70px;
}

.menu-item i {
    width: 18px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.menu-item:hover i {
    color: #3b82f6;
}

.menu-badge {
    margin-right: auto;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

.menu-badge[data-badge="new"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3);
}

/* محتوای اصلی */
.mpda-main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    margin-right: 280px; /* فاصله از منو */
    transition: margin-right 0.3s ease;
}

.mpda-megamenu:hover ~ .mpda-main-content {
    margin-right: 300px;
}

.content-body {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-height: calc(100vh - 200px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.welcome-message {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.welcome-message h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message p {
    color: #64748b;
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* اسکرول بار سفارشی */
.mpda-megamenu::-webkit-scrollbar {
    width: 6px;
}

.mpda-megamenu::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.mpda-megamenu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 3px;
}

.mpda-megamenu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
}