@charset "utf-8";

/* ==================================================================
   converters.css — perfectly tuned for all your new converter tools
   Works on top of your existing admin-dark.css
   ================================================================== */

:root {
  --converters-max-width: 1240px;
}

/* Main page wrapper */
.converters-wrap {
  max-width: var(--converters-max-width);
  margin: 0 auto;
  padding: 20px 16px;
}

/* Breadcrumbs */
.crumbs {
  margin-bottom: 16px;
  font-size: .94rem;
}
.crumbs a {
  color: var(--accent-link);
  text-decoration: none;
}
.crumbs a:hover { text-decoration: underline; }
.crumbs strong { color: var(--text-main); }

/* Page title + subtitle */
.converters-wrap h1 {
  margin: 0 0 10px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.converters-wrap .subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Unified card style — slightly bigger and more luxurious */
.converter-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  border-radius: 18px;
  padding: 28px 30px;
  margin: 22px 0;
  box-shadow: var(--shadow-card);
}

/* Forms */
.converter-card form {
  display: grid;
  gap: 20px;
}

/* Input groups */
.converter-card label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
  color: var(--text-label);
}

/* Textareas & inputs */
.converter-card input[type="text"],
.converter-card input[type="url"],
.converter-card input[type="file"],
.converter-card select,
.converter-card textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0e172b;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  color: var(--text-main);
  font-size: 1rem;
  font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", monospace;
}
.converter-card textarea {
  min-height: 160px;
  resize: vertical;
}

/* File input button */
.converter-card input[type="file"]::file-selector-button {
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 12px;
}
.converter-card input[type="file"]::file-selector-button:hover {
  background: var(--accent-hover);
}

/* Primary action button */
.btn-convert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: var(--shadow-btn);
}
.btn-convert:hover {
  background: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,99,235,.4);
}

/* Secondary buttons (Copy / Download) */
.btn-sec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #1e293b;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.btn-sec:hover {
  background: #2d3748;
  border-color: #475569;
}

/* Toolbar with buttons */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 20px 0 10px;
}
.toolbar .info {
  margin-left: auto;
  color: var(--text-muted);
  font-size: .94rem;
}

/* Output blocks */
pre {
  background: #0a0e1a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 20px;
  max-height: 70vh;
  overflow: auto;
  font-size: .94rem;
  line-height: 1.55;
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Preview tables */
table.preview {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: .92rem;
}
table.preview th {
  background: #1e293b;
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
}
table.preview td {
  padding: 10px;
  border-bottom: 1px solid var(--border-soft);
}

/* Messages */
.msg-ok {
  background: #022c22;
  border: 1px solid #059669;
  color: #a7f3d0;
  padding: 16px;
  border-radius: 14px;
  margin: 16px 0;
}
.msg-err {
  background: #3f1d1d;
  border: 1px solid #7f1d1d;
  color: #fecaca;
  padding: 16px;
  border-radius: 14px;
  margin: 16px 0;
}

/* Final touch — breathing room at bottom */
.converters-wrap > *:last-child {
  margin-bottom: 60px;
}

/* Responsive */
@media (max-width: 860px) {
  .toolbar { justify-content: center; }
  .toolbar .info { margin-left: 0; margin-top: 12px; }
}