/* Telugu Anu Converter v3 — scoped under .tac-wrap */
.tac-wrap *, .tac-wrap *::before, .tac-wrap *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

.tac-wrap {
  --surface:  #ffffff;
  --surface2: #FAFAFA;
  --border:   #E5E7EB;
  --accent:   #2563EB;
  --accentH:  #1D4ED8;
  --text:     #111827;
  --muted:    #6B7280;
  --green:    #16a34a;
  --radius:   12px;
  --shadow:   0 1px 4px rgba(0,0,0,.08), 0 4px 20px rgba(0,0,0,.06);

  font-family: 'Noto Sans Telugu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 100%;
}

/* ── Font tabs row ── */
.tac-tabs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.tac-tab-label {
  font-size: 12px;
  color: var(--muted);
  margin-right: 4px;
}

.tac-toggle-btn {
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #374151;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}

.tac-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.tac-toggle-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }

/* ── Two-panel layout ── */
.tac-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .tac-body { grid-template-columns: 1fr; }
}

/* ── Panel ── */
.tac-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.tac-panel:last-child { border-right: none; }

.tac-panel-hd {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.tac-panel-name {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.tac-panel-actions { display: flex; gap: 6px; }

.tac-btn-sm {
  font-size: 12px;
  color: #374151;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.tac-btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.tac-btn-sm.ok    { border-color: var(--green);  color: var(--green);  background: #f0fdf4; }

/* ── Textareas ── */
.tac-ta {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  resize: vertical;
  padding: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  background: var(--surface);
  font-family: 'Noto Sans Telugu', 'Gautami', 'Arial Unicode MS', serif;
  min-height: 300px;
}

.tac-ta::placeholder {
  color: #9CA3AF;
  font-family: inherit;
  font-size: 13px;
}

.tac-ta.tac-out {
  font-family: 'ANU7', 'ANU', serif;
  background: var(--surface2);
  cursor: default;
  resize: none;
}

/* ── Bottom bar ── */
.tac-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
  gap: 12px;
}

.tac-count {
  font-size: 11px;
  color: #9CA3AF;
  white-space: nowrap;
}

.tac-tip-text {
  font-size: 11px;
  color: #9CA3AF;
  line-height: 1.4;
  text-align: right;
}

.tac-tip-text b { color: var(--muted); }

/* ── Toast ── */
.tac-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #1F2937;
  color: #fff;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  z-index: 999999;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
}

.tac-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
