/* krutidev-unicode-converter page/custom.css — styles for the dual-pane
   converter UI built by page/custom.js (setup takeover). */

/* The old per-tool JS set a 960px widget; wide (meta.toml) is 760px by
   default, so widen it here. */
.tool-widget--wide { max-width: 960px; }

.kd-converter-container {
  width: 100%;
}

.kd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .kd-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

.kd-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.kd-pane:focus-within {
  border-color: #6366f1;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.08), 0 4px 6px -2px rgba(99, 102, 241, 0.04);
}

.kd-pane-label {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
}

.kd-textarea {
  width: 100%;
  height: 220px;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  color: #1e293b;
  background-color: #f8fafc;
  transition: border-color 0.15s, background-color 0.15s;
}

.kd-textarea:focus {
  outline: none;
  border-color: #6366f1;
  background-color: #ffffff;
}

.kd-pane-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.kd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.kd-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #94a3b8;
}

.kd-btn-copy {
  background: #e0e7ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.kd-btn-copy:hover {
  background: #c7d2fe;
  color: #3730a3;
  border-color: #a5b4fc;
}

.kd-btn-copy.copied {
  background: #d1fae5;
  border-color: #a7f3d0;
  color: #065f46;
}

.kd-swap-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  padding: 10px;
}

@media (max-width: 767px) {
  .kd-swap-indicator {
    transform: rotate(90deg);
    padding: 0;
  }
}
