/* Simulated asdprompt overlay — matches real extension / CWS brand */

.overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* Backdrop */
.overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-backdrop.visible {
  opacity: 1;
}

/* Hint labels — dark bg with colored left border (matches real extension) */
.overlay-hint {
  position: absolute;
  background: #3d3d3d;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 0 3px 3px 0;
  border-left: 3px solid #ffeb3b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  text-transform: lowercase;
  line-height: 1;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.overlay-hint.visible {
  opacity: 1;
  transform: translateX(0);
}

.overlay-hint.partial {
  background: var(--hint-match);
}

.overlay-hint.code-hint {
  background: #2196f3;
  color: #fff;
}

/* Highlight boxes */
.overlay-highlight {
  position: absolute;
  background: rgba(255, 235, 59, 0.3);
  border: 2px solid var(--accent);
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.overlay-highlight.visible {
  opacity: 1;
}

.overlay-highlight.reduced-padding {
  border-width: 1px;
}

/* Parent boundary outline */
.overlay-parent-boundary {
  position: absolute;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-parent-boundary.visible {
  opacity: 1;
}

/* Corner badge (Enter) */
.overlay-corner-badge {
  position: absolute;
  background: rgba(60, 60, 60, 0.9);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  pointer-events: none;
}

/* Status bar — matches CWS screenshot brand */
.overlay-status {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2a2a2a;
  color: white;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 16px 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.overlay-status.visible {
  opacity: 1;
  transform: translateY(0);
}

.overlay-status-level {
  font-weight: 700;
  color: var(--accent);
}

.overlay-status-input {
  font-family: var(--font-mono);
  background: #3a3a3a;
  padding: 3px 10px;
  border-radius: 5px;
  min-width: 32px;
  text-align: center;
  color: #fff;
}

.overlay-status-palette {
  color: var(--orange);
  font-weight: 600;
  font-size: 12px;
}

.overlay-status-hint {
  color: var(--text-muted);
  font-size: 12px;
}

.overlay-status-enter {
  color: var(--text-muted);
  font-size: 12px;
}

.overlay-status-enter kbd {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  margin-right: 4px;
}

/* Action selector modal — matches CWS screenshot slide 4 */
.action-selector {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border: 1px solid #333;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  min-width: 300px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.action-selector.visible {
  opacity: 1;
}

.action-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
  font-family: var(--font-body);
}

.action-preview {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 10px;
  text-align: center;
  font-family: var(--font-mono);
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s;
}

.action-item:hover {
  background: var(--bg-tertiary);
}

.action-key {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Per-action key colors (matches CWS brand) */
.action-key.yellow { background: rgba(255, 235, 59, 0.15); color: var(--accent); }
.action-key.blue { background: rgba(96, 165, 250, 0.15); color: var(--blue); }
.action-key.orange { background: rgba(251, 146, 60, 0.15); color: var(--orange); }
.action-key.pink { background: rgba(244, 114, 182, 0.15); color: var(--pink); }
.action-key.green { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.action-key.muted { background: var(--bg-tertiary); color: var(--text-muted); }

.action-label {
  color: var(--text-secondary);
  font-size: 15px;
  font-family: var(--font-body);
}

.action-divider {
  height: 1px;
  background: #2a2a2a;
  margin: 6px 0;
}

.action-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 14px;
  opacity: 0.5;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.action-footer kbd {
  background: #333;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

/* Copy notification */
.copy-notification {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--success);
  color: #fff;
  padding: 16px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(74, 222, 128, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 300;
  text-align: center;
  pointer-events: none;
}

.copy-notification.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.copy-notification-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.copy-notification-text {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Bookmark notification variant */
.bookmark-notification {
  background: var(--accent);
  color: #000;
  box-shadow: 0 8px 32px rgba(255, 235, 59, 0.3);
}

.bookmark-notification .copy-notification-label {
  color: #000;
  opacity: 1;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 0;
}
