/* Tool specific styles */

/* Disable portfolio card overlays so tool content stays visible */
.page .card::before,
.page .card::after {
  display: none;
}

.page .card {
  justify-content: flex-start;
}

.drop-zone {
  border: 1.5px dashed rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 26px;
  background: var(--card-muted);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.drop-zone h3 {
  margin: 0;
  font-size: 18px;
}

.drop-zone p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.paste {
  background: var(--card-muted);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
}

label { font-weight: 600; font-size: 14px; }

textarea {
  width: 100%;
  min-height: 140px;
  background: var(--bg-muted);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-family: 'Spline Sans Mono', 'SFMono-Regular', Consolas, monospace;
  resize: vertical;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  height: 100%;
  min-height: 360px;
}

.output-grid > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.badge {
  background: rgba(124,58,237,0.15);
  color: #e9d5ff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid rgba(124,58,237,0.35);
}

pre {
  margin: 0;
  white-space: pre;
  background: var(--bg-muted);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 14px;
  font-family: 'Spline Sans Mono', 'SFMono-Regular', Consolas, monospace;
  overflow-x: auto;
  min-height: 220px;
}

#asciiOutput {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  max-height: clamp(320px, 60vh, 520px);
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  align-items: end;
}

.filter-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.emoji-config {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 2px;
}

.is-collapsed .emoji-config {
  display: none;
}

.emoji-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

.emoji-row .path {
  font-family: 'Spline Sans Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emoji-select {
  width: 100%;
  background: var(--bg-muted);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

.switch input {
  width: 38px;
  height: 22px;
  accent-color: var(--accent);
  cursor: pointer;
}

select {
  width: 100%;
  min-height: 110px;
  background: var(--bg-muted);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

.status {
  color: var(--text-muted);
  font-size: 13px;
  flex: 1;
  max-width: 70%;
  white-space: normal;
  word-break: break-word;
}
