/**
 * Navigation Dropdown Styles
 * For Atlas Command submenu
 */

/* Dropdown Container */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(156, 163, 175, 1); /* text-gray-400 */
  font-size: 14px;
  font-weight: 400;
  padding: 0;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
}

.nav-dropdown-trigger:hover {
  color: #ffffff;
}

.nav-dropdown-trigger.active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.nav-dropdown-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nav-dropdown-trigger.active svg {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  padding: 8px;
}

.nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.nav-dropdown-item:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  transform: translateX(4px);
}

.nav-dropdown-item.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-left: 3px solid #10b981;
}

.nav-dropdown-item-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.nav-dropdown-item-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.nav-dropdown-item:hover .nav-dropdown-item-subtitle {
  color: rgba(16, 185, 129, 0.7);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .nav-dropdown-menu {
    left: auto;
    right: 0;
    min-width: 260px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-trigger,
  .nav-dropdown-menu,
  .nav-dropdown-item {
    transition: none;
  }
}

