/* ===========================================
   PRESENTATION HAMBURGER MENU
   Stili per il menu hamburger della presentazione
   =========================================== */

.presentation-menu-container {
  position: relative;
  z-index: 1000;
  flex-shrink: 0;
}

.menu-trigger {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(30, 30, 40, 0.9)) !important;
  color: white !important;
  border-radius: 14px !important;
  width: 48px !important;
  height: 48px !important;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
              0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.menu-trigger .mud-icon {
  font-size: 22px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.menu-trigger::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.menu-trigger:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(40, 40, 60, 0.95)) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 
              0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.menu-trigger:hover::before {
  left: 100%;
}

.menu-trigger:active {
  transform: translateY(0) scale(0.98);
}

.presentation-menu-popover {
  z-index: 1001;
}

.menu-panel {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 
              0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(30px);
  min-width: 340px;
  overflow: hidden;
  transform: translateY(-8px);
  animation: menuSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(-8px) scale(1);
  }
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.menu-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.menu-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.menu-title .mud-icon {
  color: #6366f1;
}

.close-btn {
  color: #64748b !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

.close-btn:hover {
  background-color: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  transform: scale(1.05);
}

.menu-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.status-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.status-badge.presenter {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-badge.viewer {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  padding-left: 4px;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 4px;
}

.menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-btn {
  border-color: #e2e8f0 !important;
  color: #475569 !important;
  font-size: 13px !important;
  height: 40px !important;
  justify-content: flex-start !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
  font-weight: 500 !important;
}

.action-btn:hover {
  background-color: #f1f5f9 !important;
  border-color: #6366f1 !important;
  color: #6366f1 !important;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.login-btn {
  font-size: 14px !important;
  height: 44px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
  transition: all 0.2s ease !important;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35) !important;
}

.logout-btn {
  font-size: 13px !important;
  height: 36px !important;
  justify-content: flex-start !important;
}

.logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.05) !important;
}

.nav-btn {
  color: #64748b !important;
  font-size: 13px !important;
  height: 36px !important;
  justify-content: flex-start !important;
}

.nav-btn:hover {
  background-color: #f1f5f9 !important;
}

/* ===========================================
   DARK THEME
   =========================================== */
[data-theme="dark"] .menu-panel {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 
              0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .menu-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .menu-header::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

[data-theme="dark"] .menu-title {
  color: #e2e8f0;
}

[data-theme="dark"] .menu-title .mud-icon {
  color: #8b5cf6;
}

[data-theme="dark"] .close-btn {
  color: #94a3b8 !important;
}

[data-theme="dark"] .close-btn:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .section-title {
  color: #94a3b8;
}

[data-theme="dark"] .user-info {
  color: #94a3b8;
}

[data-theme="dark"] .action-btn {
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .action-btn:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .nav-btn {
  color: #94a3b8 !important;
}

[data-theme="dark"] .nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}
