/* public/css/inicio.css — Estilos oscuros tipo Dashboard para el conversor multimodal */
body.dashboard-theme {
  background-color: #0b0f19;
  color: #e2e8f0;
  min-height: 100vh;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #1e293b;
  background: #0f172a;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.app-title-group h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

.app-title-group p {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.key-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.key-badge:hover {
  background: #273549;
  border-color: #475569;
}

.key-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.key-dot.active {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Dropzone */
.drop-zone {
  border: 2px dashed #334155;
  border-radius: 14px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  background: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: 1.5rem;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #6366f1;
  background: #131d35;
}

.drop-zone-icon {
  font-size: 2.4rem;
  color: #818cf8;
  margin-bottom: 0.5rem;
}

.drop-zone-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.3rem;
}

.drop-zone-desc {
  font-size: 0.84rem;
  color: #64748b;
}

.badge-formats {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.format-pill {
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #1e293b;
  color: #94a3b8;
  font-weight: 600;
}

/* Previsualización archivo cargado */
.file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.2rem;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  overflow: hidden;
}

.file-icon-box {
  font-size: 1.4rem;
  color: #6366f1;
}

.file-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.file-size {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Split View */
.split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

@media (max-width: 860px) {
  .split-container {
    grid-template-columns: 1fr;
  }
}

.pane {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: #141f36;
  border-bottom: 1px solid #1e293b;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.pane-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  color: #e2e8f0;
}

.pane-textarea {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  resize: none;
  line-height: 1.6;
  outline: none;
}

.rendered-markdown {
  font-size: 0.92rem;
  line-height: 1.65;
}
.rendered-markdown h1, .rendered-markdown h2, .rendered-markdown h3 {
  color: #f8fafc;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 0.3rem;
  margin-top: 1.2rem;
}
.rendered-markdown pre {
  background: #1a243b;
  padding: 0.8rem;
  border-radius: 8px;
  overflow-x: auto;
}
.rendered-markdown code {
  background: #1e293b;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.86rem;
}
.rendered-markdown table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.rendered-markdown th, .rendered-markdown td {
  border: 1px solid #334155;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.rendered-markdown th {
  background: #1e293b;
}
.rendered-markdown ul, .rendered-markdown ol {
  padding-left: 1.4rem;
}

/* Spinner / Loading state */
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #1e293b;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Botones de acción */
.btn-glow {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-glow:hover {
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}
.btn-glow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

[hidden] {
  display: none !important;
}
