/* ========================================
   Mobile Menu Overlay - Global Styles for Teleport
   ======================================== */
.mobile-overlay-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 999999 !important;
    animation: mobileMenuFadeIn 0.2s ease !important;
}

.mobile-sidebar-panel {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 280px !important;
    max-width: 85vw !important;
    height: 100% !important;
    background-color: white !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
    animation: mobileMenuSlideIn 0.25s ease-out !important;
    z-index: 999999 !important;
}

.mobile-sidebar-panel .mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.mobile-sidebar-panel .mobile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.mobile-sidebar-panel .mobile-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-sidebar-panel .mobile-user-name {
    font-weight: 600;
    font-size: 15px;
    color: white;
}

.mobile-sidebar-panel .mobile-user-role {
    font-size: 12px;
    opacity: 0.85;
    color: white;
}

.mobile-sidebar-panel .mobile-nav-links {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.mobile-sidebar-panel .mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.15s ease;
    border-right: 3px solid transparent;
}

.mobile-sidebar-panel .mobile-link:active,
.mobile-sidebar-panel .mobile-link.active {
    background: #eff6ff;
    color: #2563eb;
    border-right-color: #2563eb;
}

.mobile-sidebar-panel .mobile-logout-section {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.mobile-sidebar-panel .mobile-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-sidebar-panel .mobile-logout-btn:active {
    background: #fecaca;
}

@keyframes mobileMenuFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mobileMenuSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
