/* ---------- CONTENT GENERATOR PANEL Styles ---------- */
.content-tool-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.content-history-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.content-history-item:hover {
  border-color: var(--accent);
  background: var(--surface2);
}

.content-history-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 6px;
  flex-shrink: 0;
}

.content-history-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 20px; /* Space for delete button */
}

.content-history-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.content-history-date {
  font-size: 10px;
  color: var(--text3);
}

.content-history-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text3);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.content-history-delete:hover {
  color: var(--red);
  background: var(--red-soft);
}

.content-script-box {
  max-height: 350px;
  overflow-y: auto;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.content-status-unread {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.content-status-read {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content-read-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.content-read-toggle-btn:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--text2);
}

/* Audio Player and Controls */
.content-audio-controls {
  margin-top: 12px;
  padding: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-audio-gender-selector {
  display: flex;
  gap: 8px;
}

.content-gender-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.content-gender-btn:hover {
  border-color: var(--text3);
  color: var(--text);
}
.content-gender-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.content-audio-playback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.content-playback-btns {
  display: flex;
  gap: 6px;
}

.content-audio-speed-select {
  font-size: 11px;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  cursor: pointer;
  outline: none;
}

.content-audio-status-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
}

.content-audio-status-text.playing {
  color: var(--green);
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}


