/* Centralized Dropdown Styles */
/* Used by DropdownManager and all dropdown instances */

.vs-dd {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 180px;
  width: 100%;
}

.vs-dd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 14px;
}

.vs-dd-btn:hover {
  background: rgba(15, 23, 42, 0.8);
}

.vs-dd-btn:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.vs-dd-caret {
  opacity: 0.7;
  font-size: 12px;
}

.vs-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  z-index: 20050;
  background: #0b1220;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  min-width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: none;
  max-height: 240px;
  overflow: auto;
}

.vs-dd.open .vs-dd-menu {
  display: block;
}

.vs-dd-opt {
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
}

.vs-dd-opt[aria-selected="true"] {
  background: #1f2937;
}

.vs-dd-opt:hover {
  background: #111827;
}

.vs-hide-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Standard dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  text-decoration: none;
}

.dropdown-toggle:hover {
  color: #e5e7eb;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(11, 17, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
}

.dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* AI dropdown specific styles */
#ai-category-dd .dropdown-menu,
#ai-duration-dd .dropdown-menu,
#ai-voice-dd .dropdown-menu {
  max-height: 260px;
  overflow: auto;
}

#ai-voice-dd .dropdown-menu {
  max-width: 320px;
}

#ai-voice-dd .dropdown-menu a {
  max-width: 320px;
  white-space: normal;
  word-break: break-word;
}

/* Project menu dropdown */
.proj-menu-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20020;
  display: none;
  flex-direction: column;
  min-width: 160px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 17, 32, 0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.proj-menu-dropdown.open {
  display: flex;
}

/* Homepage settings dropdown */
.home-proj-settings-dropdown {
  position: relative;
}

.home-proj-settings-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20025;
  display: none;
  flex-direction: column;
  min-width: 160px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 17, 32, 0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.home-proj-settings-dropdown.open .home-proj-settings-menu {
  display: flex;
}

.home-proj-view-option {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: #e5e7eb;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.home-proj-view-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.home-proj-view-option.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.home-proj-view-option .icon {
  flex-shrink: 0;
}








