/* Custom dropdowns */
.custom-dropdown { position: relative; }

.custom-dropdown-btn {
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  border-radius: 4px;
  color: #f0f0f0;
  font-size: 12px;
  padding: 4px 8px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 180px;
}

.custom-dropdown-btn:hover,
.custom-dropdown-btn.open { border-color: #3b82f6; }

.custom-dropdown-btn::after {
  content: '\25BE';
  color: #666;
  font-size: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.custom-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  max-width: 400px;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 100;
  max-height: 360px;
  overflow-y: auto;
  padding: 4px;
}

.custom-dropdown-menu.open { display: block; }

.custom-dropdown-item {
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.1s, color 0.1s;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.custom-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f0f0f0;
}

.custom-dropdown-item.selected {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  font-weight: 500;
}

.custom-dropdown-item .item-meta {
  color: #555;
  font-size: 11px;
  flex-shrink: 0;
}

.custom-dropdown-item.selected .item-meta {
  color: rgba(59, 130, 246, 0.6);
}

.product-btn {
  color: #71717a;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.product-btn:hover {
  color: #d4d4d8;
}

.product-btn.active {
  background: #3b82f6;
  color: #fff;
}

.tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #71717a;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab-btn:hover {
  color: #d4d4d8;
}

.tab-btn.active {
  color: #e4e4e7;
  border-bottom-color: #3b82f6;
}

.level-fatal {
  color: #f87171;
  font-weight: 700;
  text-transform: uppercase;
}

.level-error {
  color: #fbbf24;
}

.level-warning {
  color: #facc15;
}

.level-info {
  color: #60a5fa;
}

.badge-new {
  display: inline-block;
  background: #7c3aed;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.issue-link {
  color: #93c5fd;
  text-decoration: none;
}

.issue-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.75rem;
}

.download-btn:hover {
  color: #60a5fa;
  text-decoration: underline;
}

tr.border-b {
  border-bottom: 1px solid #27272a;
}

tbody tr {
  border-bottom: 1px solid #18181b;
}

tbody tr:hover {
  background: #18181b;
}

.filter-toggle {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.filter-toggle:hover {
  color: #d4d4d8;
}

.filter-toggle.active {
  color: #7c3aed;
}

.filter-toggle.active::after {
  content: " ✓";
  font-size: 0.7em;
}

.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable:hover {
  color: #d4d4d8;
}

.sortable.sort-asc::after {
  content: " ▲";
  font-size: 0.6em;
}

.sortable.sort-desc::after {
  content: " ▼";
  font-size: 0.6em;
}
