.wildcard-list-container {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #404040;
  border-radius: 4px;
  background: #1a1a1a;
}
.wildcard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background 0.15s;
}
.wildcard-item:hover {
  background: #333;
}
.wildcard-item:last-child {
  border-bottom: none;
}
.wildcard-item-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #00bcd4;
}
.wildcard-item-count {
  font-size: 11px;
  color: #666;
}
.wildcard-search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.wildcard-search-input {
  flex: 1;
  padding: 8px 10px;
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 13px;
}
.wildcard-search-input:focus {
  outline: none;
  border-color: #00bcd4;
}
.wildcard-btn {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #404040;
  background: #2a2a2a;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
}
.wildcard-btn:hover {
  background: #3a3a3a;
  border-color: #00bcd4;
}
.wildcard-btn-primary {
  background: #00bcd4;
  border-color: #00bcd4;
  color: #1a1a1a;
}
.wildcard-btn-primary:hover {
  background: #00e5ff;
  border-color: #00e5ff;
}
.wildcard-btn-danger {
  color: #f44336;
  border-color: #f44336;
}
.wildcard-btn-danger:hover {
  background: #f44336;
  color: #fff;
}
.wildcard-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.wildcard-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}
.wildcard-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.wildcard-modal {
  background: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(-10px);
  transition: transform 0.2s;
}
.wildcard-modal-overlay.active .wildcard-modal {
  transform: translateY(0);
}
.wildcard-modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid #404040;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wildcard-modal-title {
  font-size: 14px;
  font-weight: 600;
  color: #00bcd4;
}
.wildcard-modal-close {
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.wildcard-modal-close:hover {
  background: #3a3a3a;
  color: #fff;
}
.wildcard-modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}
.wildcard-modal-footer {
  padding: 12px 16px;
  border-top: 1px solid #404040;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.wildcard-form-group {
  margin-bottom: 16px;
}
.wildcard-form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.wildcard-form-input {
  width: 100%;
  padding: 8px 10px;
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 13px;
}
.wildcard-form-input:focus {
  outline: none;
  border-color: #00bcd4;
}
.wildcard-form-input::placeholder,
.wildcard-search-input::placeholder,
.wildcard-import-textarea::placeholder {
  color: #b0b0b0;
  opacity: 1;
}
.wildcard-form-textarea {
  min-height: 200px;
  resize: none;
  line-height: 1.7;
  font-family: "IBM Plex Mono", monospace;
}
.wildcard-import-textarea {
  width: 100%;
  min-height: 250px;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #e0e0e0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  resize: none;
}
.wildcard-toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  padding: 10px 14px;
  background: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 4px;
  font-size: 12px;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.2s;
  z-index: 2200;
  color: #e0e0e0;
}
.wildcard-toast.active {
  transform: translateY(0);
  opacity: 1;
}
.wildcard-toast.success {
  border-left: 3px solid #4caf50;
}
.wildcard-toast.error {
  border-left: 3px solid #f44336;
}
.tagify {
  --tags-border-color: #404040;
  --tags-hover-border-color: #00bcd4;
  --tags-focus-border-color: #00bcd4;
  --tag-bg: #3a3a3a;
  --tag-hover: #4a4a4a;
  --tag-text-color: #00bcd4;
  --tag-text-color--edit: #00bcd4;
  --tag-remove-bg: rgba(244, 67, 54, 0.3);
  --tag-remove-btn-bg: transparent;
  --tag-remove-btn-bg--hover: #f44336;
  --tag-invalid-color: #f44336;
  --tag-invalid-bg: rgba(244, 67, 54, 0.1);
  --placeholder-color: #a0a0a0;
  --placeholder-color-focus: #b0b0b0;
  --input-color: #e0e0e0;
  --tag-pad: 0.3em 0.5em;
  background: #1a1a1a !important;
  border: 1px solid #404040 !important;
  border-radius: 4px;
  min-height: 150px;
  align-items: flex-start;
  align-content: flex-start;
  padding: 8px;
}
.tagify:hover {
  border-color: #00bcd4 !important;
}
.tagify:focus-within {
  border-color: #00bcd4 !important;
}
.tagify__tag {
  background: #3a3a3a;
  border: 1px solid #505050;
  border-radius: 3px;
  margin: 2px;
}
.tagify__tag:hover {
  background: #4a4a4a;
}
.tagify__tag > div {
  color: #00bcd4;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  padding: 0.3em 0.5em;
}
.tagify__tag > div::before {
  box-shadow: none;
}
.tagify__tag__removeBtn {
  color: #888;
  background: transparent;
}
.tagify__tag__removeBtn:hover {
  color: #fff;
  background: #f44336;
}
.tagify__input {
  color: #e0e0e0 !important;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  margin: 4px;
}
.tagify__input::before,
.tagify__input[data-placeholder]::before,
.tagify--mix .tagify__input::before {
  color: #a0a0a0 !important;
}
.tagify__dropdown {
  background: #1e1e1e !important;
  border: 1px solid #00bcd4 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}
.tagify__dropdown__wrapper {
  background: #1e1e1e !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 4px !important;
  max-height: 300px;
  overflow-y: auto;
}
.tagify__dropdown__item {
  padding: 10px 14px !important;
  color: #e0e0e0 !important;
  margin: 2px 0 !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-family: "IBM Plex Mono", monospace !important;
  cursor: pointer !important;
  background: #2a2a2a !important;
  pointer-events: auto !important;
}
.tagify__dropdown__item:hover {
  background: #444 !important;
  color: #00bcd4 !important;
}
.tagify__dropdown__item--active {
  background: #00bcd4 !important;
  color: #000 !important;
}
