/* ============================================================
   FilexFlow - converter.css
   Estilos específicos para la página principal (converter)
   Usa el layout global definido en layout.css
   ============================================================ */

/* Contenido interno de las cards */
.card-inner {
  position: relative;
  z-index: 1;
}

.card-main {
  padding: 4px 4px 0 2px;
}

/* ============================================================
   LISTA DE PASOS
   ============================================================ */

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 18px;
}

.step-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
  margin-top: 16px;
  margin-bottom: 12px;
}

.step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #cbd5f5;
  flex-shrink: 0;
}

.step-text-main {
  font-size: 0.92rem;
  margin-bottom: 2px;
  color: #e5e7eb;
}

.step-text-sub {
  font-size: 0.82rem;
  color: #9ca3af;
}

/* ============================================================
   UPLOAD CARD
   ============================================================ */

.upload-card {
  margin-top: 18px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95) 0%, #020617 55%);
  margin-bottom: 32px; /* separación elegante antes del STEP 2 */
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.upload-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  font-size: 1.25rem;
}

.upload-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-text-main {
  font-size: 0.95rem;
  color: #e5e7eb;
}

.upload-text-sub {
  font-size: 0.8rem;
  color: #9ca3af;
}

.upload-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #9ca3af;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: none;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  background: #2563eb;
  color: #f9fafb;
}

.upload-button span:first-child {
  font-size: 1.2rem;
  margin-top: -2px;
}

#fileInput {
  display: none;
}

.files-list {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.75);
  max-height: 180px;
  overflow: auto;
}

/* ============================================================
   STEP 2 / SELECTORES
   ============================================================ */

.field-label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: #e5e7eb;
}

.select select,
select#conversionType {
  width: 100%;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* ============================================================
   STEP 3 / BUTTON
   ============================================================ */

#convertButton {
  margin-top: 22px;
  margin-bottom: 26px; /* aire entre el botón y "Estimated credits" */
}

/* ============================================================
   PANELS: ESTIMATED / CREDITS / BATCH
   ============================================================ */

.estimate-panel,
.credits-rules-panel,
.batch-panel {
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.88);
  margin-bottom: 16px; /* distancia entre cajas */
}

.estimate-title,
.credits-rules-title,
.batch-panel-title {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.estimate-text,
.credits-rules-list li,
.batch-panel-body {
  font-size: 0.82rem;
  color: #9ca3af;
}

.credits-rules-list {
  list-style: none;
  padding: 0;
}

.batch-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.75rem;
  color: #e5e7eb;
}

/* ============================================================
   CARD DERECHA - Why FilexFlow
   ============================================================ */

.card-side-inner {
  position: relative;
  z-index: 1;
}

.side-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 0.75rem;
  margin-bottom: 16px;
}

.side-ribbon-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

.pill-blue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.15);
  color: #bfdbfe;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.pill-blue-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2563eb;
}

.side-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.side-sub {
  font-size: 0.86rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

.side-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
  margin-top: 14px;
  margin-bottom: 8px;
}

.side-list {
  list-style: none;
  padding-left: 0;
}

.side-list li {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: #9ca3af;
}

.side-bullet {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  margin-top: 4px;
}

.side-footer {
  margin-top: 18px;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .card-right {
    margin-top: 20px;
  }
}

/* ============================================================
   LIGHT MODE OVERRIDES
   ============================================================ */

/* Pasos */
body[data-theme="light"] .card-left .step-text-main {
  color: #111827;
}

body[data-theme="light"] .card-left .step-text-sub {
  color: #4b5563;
}

body[data-theme="light"] .card-left .step-label {
  color: #6b7280;
}

/* Upload card: fondo claro pero mismos márgenes */
body[data-theme="light"] .card-left .upload-card {
  background: #f3f5f9;
  border-color: rgba(15, 23, 42, 0.08);
}

/* Textos dentro del upload card */
body[data-theme="light"] .card-left .upload-text-main {
  color: #111827;
}

body[data-theme="light"] .card-left .upload-text-sub {
  color: #4b5563;
}

/* Pill dentro del upload */
body[data-theme="light"] .card-left .pill-tag {
  background: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.45);
  color: #4b5563;
}

/* Panels intermedios: estimated / credits / batch */
body[data-theme="light"] .card-left .estimate-panel,
body[data-theme="light"] .card-left .credits-rules-panel,
body[data-theme="light"] .card-left .batch-panel {
  background: #f3f5f9;
  border-color: rgba(15, 23, 42, 0.1);
}

/* Títulos de paneles en light */
body[data-theme="light"] .card-left .estimate-title,
body[data-theme="light"] .card-left .credits-rules-title,
body[data-theme="light"] .card-left .batch-panel-title,
body[data-theme="light"] .card-left .field-label {
  color: #111827;
}

/* Textos de paneles en light */
body[data-theme="light"] .card-left .estimate-text,
body[data-theme="light"] .card-left .credits-rules-list li,
body[data-theme="light"] .card-left .batch-panel-body {
  color: #4b5563;
}

/* Chips / tags */
body[data-theme="light"] .card-left .batch-tag {
  background: #e5e7eb;
  border-color: rgba(15, 23, 42, 0.12);
  color: #111827;
}

body[data-theme="light"] .card-left .files-list {
  background: #e5e7eb;
  border-color: rgba(15, 23, 42, 0.1);
}

/* Selectores: Conversion type */
body[data-theme="light"] .card-left select {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
  color: #0f172a;
}
