/* list-converter page/custom.css — styles for the dual-pane converter layout
   built by page/custom.js (input + settings left, formatted output + stats +
   actions right). */

/* 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; }

.list-conv-container {
  width: 100%;
}

.list-conv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .list-conv-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.list-conv-col-left, .list-conv-col-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-conv-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.list-conv-textarea {
  width: 100%;
  height: 200px;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  color: #1e293b;
  background-color: #f8fafc;
  transition: all 0.2s;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.list-conv-textarea::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.list-conv-textarea::-webkit-scrollbar-track {
  background: #f8fafc;
}

.list-conv-textarea::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.list-conv-textarea:focus {
  outline: none;
  border-color: #6366f1;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.list-conv-textarea[readonly] {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  cursor: default;
}

.list-conv-settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 480px) {
  .list-conv-settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.list-conv-setting-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list-conv-custom-in-group,
.list-conv-custom-out-group {
  grid-column: span 1;
}

.list-conv-setting-group label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.list-conv-select {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
}

.list-conv-input {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
}

.list-conv-check-group {
  grid-column: span 1;
  display: flex;
  align-items: center;
  margin-top: 18px;
}

@media (min-width: 480px) {
  .list-conv-check-group {
    grid-column: span 2;
  }
}

.list-conv-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.list-conv-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6366f1;
  cursor: pointer;
}

.list-conv-stats-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.list-conv-stat {
  color: #0f172a;
}

.list-conv-stat span {
  font-size: 15px;
  font-weight: 700;
  color: #6366f1;
}

.list-conv-stat-arrow {
  color: #94a3b8;
}

.list-conv-stat-diff {
  color: #059669;
  font-size: 12px;
}

.list-conv-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

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

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

.list-conv-btn-copy {
  background: #6366f1;
  border-color: #4f46e5;
  color: #ffffff;
}

.list-conv-btn-copy:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4338ca;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.list-conv-btn-copy.copied {
  background: #10b981;
  border-color: #059669;
  color: #ffffff;
  box-shadow: none;
}

.list-conv-btn-swap {
  background: #e0e7ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.list-conv-btn-swap:hover {
  background: #c7d2fe;
  color: #3730a3;
  border-color: #a5b4fc;
}
