/* ==========================================================================
   MEDICO ZENITH - SLIDE-OUT MENU & PROFILE STYLES
   ========================================================================== */

/* Dark Backdrop Overlay */
.mz-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mz-menu-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Slide-out Drawer Panel */
.mz-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh; /* Mobile viewport height fix */
    background: rgba(13, 18, 30, 0.98);
    border-right: 1px solid var(--mz-glass-border, rgba(255, 255, 255, 0.1));
    z-index: 9999;
    display: flex;
    flex-direction: column; /* Allows bottom footer locking */
    padding: 2rem 1.25rem 1.25rem 1.25rem;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.mz-menu-drawer.open {
    transform: translateX(0);
}

/* Close Button */
.mz-menu-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.mz-menu-close-btn:hover {
    color: #ffffff;
}

/* ==========================================
   PROFILE HEADER & BADGES
   ========================================== */
.mz-menu-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 0.5rem;
}

.mz-avatar-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    margin-bottom: 0.85rem;
}

.mz-profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mz-violet-light, #a78bfa);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    background: #0f172a;
}

/* Crown Attachment on Top Right of Avatar */
.mz-premium-crown {
    position: absolute;
    top: -8px;
    right: -4px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #f59e0b;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    animation: mz-crown-float 2.5s ease-in-out infinite;
}

@keyframes mz-crown-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.mz-profile-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.25rem 0;
}

.mz-profile-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0 0 0.6rem 0;
}

.mz-profile-target {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.mz-menu-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 1.25rem 0;
}

/* ==========================================
   PAGES NAVIGATION LIST (FLEX GROW)
   ========================================== */
.mz-menu-nav {
    flex: 1; /* Pushes the menu footer to the very bottom */
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.mz-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mz-menu-list li {
    margin-bottom: 0.4rem;
}

.mz-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mz-menu-link:hover,
.mz-menu-link.active {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    transform: translateX(4px);
}

.mz-micon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.mz-menu-login {
    color: #38bdf8;
}

.mz-menu-logout {
    color: #f87171;
}

/* ==========================================
   BOTTOM LOCKED MENU FOOTER
   ========================================== */
.mz-menu-footer {
    margin-top: auto; /* Guarantees positioning at bottom even if links are few */
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.mz-menu-copyright {
    font-size: 0.7rem;
    color: #64748b;
    margin: 0 0 0.3rem 0;
}

.mz-menu-credit {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    margin: 0;
    letter-spacing: 0.5px;
}

.mz-heart {
    color: #ef4444;
    display: inline-block;
}