/* Template dropdown — follows ExportPanel pattern */

.template-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.template-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.template-dropdown__header {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.template-dropdown__list {
  flex: 1;
  overflow-y: auto;
}

.template-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.template-dropdown__item:hover {
  background: var(--bg-hover);
}

.template-dropdown__item--active {
  background: var(--bg-hover);
}

.template-dropdown__item-icon {
  flex-shrink: 0;
  color: var(--ink-light);
  margin-top: 1px;
}

.template-dropdown__item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.template-dropdown__item-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dark);
}

.template-dropdown__item-desc {
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 1px;
}

.template-url-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 10px;
}

.template-url-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-surface);
  color: var(--ink-dark);
  outline: none;
  transition: border-color 0.15s ease;
}

.template-url-input:focus {
  border-color: var(--accent, #3b82f6);
}

.template-url-input::placeholder {
  color: var(--ink-light);
}

.template-url-submit {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent, #3b82f6);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.template-url-submit:disabled {
  opacity: 0.35;
  cursor: default;
}

.template-url-submit:not(:disabled):hover {
  opacity: 0.85;
}
