/* ============================================
   Desktop Application Menu Bar
   Professional desktop-style navigation
   DARK MODE THEME
   ============================================ */

.desktop-menu-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: #1a1a2e;
  border-bottom: 1px solid #2d2d44;
  padding: 0;
  min-height: 36px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.menu-bar-left {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0;
}

.menu-logo {
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: #00d4ff;
  border-right: 1px solid #2d2d44;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.menu-nav {
  display: grid;
  grid-auto-flow: column;
  align-items: stretch;
}

/* ============================================
   MENU ITEMS
   ============================================ */
.menu-item {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  border-right: 1px solid #2d2d44;
  background: transparent;
}

.menu-item:hover {
  background: rgba(0, 212, 255, 0.1);
}

.menu-item.active {
  background: #00d4ff;
  color: #0f0f1a;
}

.menu-item.active .menu-label,
.menu-item.active .menu-arrow {
  color: #0f0f1a;
}

.menu-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #e0e0e0;
  white-space: nowrap;
}

.menu-arrow {
  font-size: 0.625rem;
  color: #888;
  transition: transform 0.15s ease;
}

.menu-item.active .menu-arrow {
  transform: rotate(180deg);
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */
.menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: #16162a;
  border: 1px solid #3d3d5c;
  border-top: 2px solid #00d4ff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1001;
  padding: 0.5rem 0;
  border-radius: 0 0 8px 8px;
}

.menu-item.active .menu-dropdown,
.menu-item:hover .menu-dropdown {
  display: grid;
  grid-template-columns: 1fr;
}

.menu-dropdown-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid #2d2d44;
}

.menu-dropdown-item:last-child {
  border-bottom: none;
}

.menu-dropdown-item:hover {
  background: rgba(0, 212, 255, 0.1);
}

.menu-dropdown-item:active {
  background: rgba(0, 212, 255, 0.2);
}

.menu-item-icon {
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 6px;
}

.menu-item-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  min-width: 0;
}

.menu-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.menu-item-desc {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.4;
}

/* ============================================
   MENU BAR RIGHT
   ============================================ */
.menu-bar-right {
  display: grid;
  grid-auto-flow: column;
  gap: 0.75rem;
  align-items: center;
  padding: 0 1rem;
  border-left: 1px solid #2d2d44;
}

.header-btn {
  display: grid;
  grid-auto-flow: column;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.75rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid #3d3d5c;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
}

.header-btn.active {
  background: #00d4ff;
  color: #0f0f1a;
  border-color: #00d4ff;
}

.active-dataset-indicator {
  display: grid;
  grid-auto-flow: column;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.75rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #00ff88;
}

.active-dataset-indicator .indicator-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .menu-nav {
    grid-auto-flow: row;
  }
  
  .menu-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
  }
  
  .menu-dropdown {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--color-border, #e0e0e0);
    background: var(--color-bg-light, #f5f5f5);
  }
}

/* ============================================
   KEYBOARD SHORTCUTS HINT
   ============================================ */
.menu-dropdown-item[data-shortcut]::after {
  content: attr(data-shortcut);
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--color-text-light, #999);
  padding: 0.25rem 0.5rem;
  background: var(--color-bg-light, #f5f5f5);
  border-radius: 4px;
  font-family: monospace;
}

