/**
 * @license
 * SPDX-License-Identifier: Apache-2.0
 */

/* ==========================================================================
   PlaDoc - Estilos de Aplicación
   ========================================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: #1e293b;
  --bg-sidebar-active: #334155;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-sidebar: #e2e8f0;
  --border-color: #e2e8f0;
  --border-focus: #0f766e;
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-light: #f0fdfa;
  --primary-border: #ccfbf1;
  --success: #059669;
  --success-bg: #ecfdf5;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --info: #0284c7;
  --info-bg: #f0f9ff;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Diseño Estructural (Layout)
   -------------------------------------------------------------------------- */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: 250px;
  background-color: var(--bg-sidebar);
  color: var(--text-sidebar);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  z-index: 40;
}

.sidebar-brand {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: block;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
  background-color: var(--bg-sidebar-hover);
  color: #ffffff;
}

.nav-item.active {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #334155;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: capitalize;
}

.btn-logout {
  color: var(--text-light);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-logout:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Área Principal
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}

.topbar {
  height: 64px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  display: none;
}

.breadcrumb-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.system-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.system-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--warning);
}

.system-badge.active .status-dot {
  background-color: var(--success);
}

.server-host {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* --------------------------------------------------------------------------
   Secciones y Encabezados
   -------------------------------------------------------------------------- */
.content-section {
  display: none;
  padding: 24px 32px 48px;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}

.content-section.active {
  display: block;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Tarjetas de Estadísticas (Dashboard)
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-icon-wrapper {
  color: var(--primary);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Aviso informativo */
.notice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--info-bg);
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: #0369a1;
}

.notice-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Tarjetas Genéricas y Tablas
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3, .card-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background-color: #fafbfc;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-right {
  display: flex;
  justify-content: flex-end;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.table th {
  background-color: #f8fafc;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: #f8fafc;
}

.small-table th, .small-table td {
  padding: 8px 12px;
  font-size: 0.8rem;
}

/* Indicadores de estado limpios (Zero-Pill) */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-indicator::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-publicada::before, .status-completado::before, .status-ok::before {
  background-color: var(--success);
}
.status-publicada, .status-completado, .status-ok {
  color: var(--success);
}

.status-borrador::before, .status-pendiente::before {
  background-color: var(--warning);
}
.status-borrador, .status-pendiente {
  color: var(--warning);
}

.status-procesando::before {
  background-color: var(--info);
}
.status-procesando {
  color: var(--info);
}

.status-retirada::before, .status-con_errores::before, .status-error::before, .status-cancelado::before {
  background-color: var(--danger);
}
.status-retirada, .status-con_errores, .status-error, .status-cancelado {
  color: var(--danger);
}

/* Metadatos tipográficos con separadores limpios */
.meta-unboxed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-separator {
  color: var(--border-color);
}

/* --------------------------------------------------------------------------
   Botones y Controles
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline {
  background-color: #ffffff;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover:not(:disabled) {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background-color: #b91c1c;
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover:not(:disabled) {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Filtros y Formularios
   -------------------------------------------------------------------------- */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-input-wrapper {
  flex: 1;
  min-width: 220px;
}

input[type="text"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* --------------------------------------------------------------------------
   Asistente (Wizard) de 4 Pasos
   -------------------------------------------------------------------------- */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-weight: 500;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #e2e8f0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.step-label {
  font-size: 0.9rem;
}

.step-item.active {
  color: var(--primary);
  font-weight: 600;
}
.step-item.active .step-number {
  background-color: var(--primary);
  color: #ffffff;
}

.step-item.completed {
  color: var(--success);
}
.step-item.completed .step-number {
  background-color: var(--success);
  color: #ffffff;
}

.step-separator {
  flex: 1;
  height: 2px;
  background-color: var(--border-color);
  margin: 0 16px;
}

.wizard-panel {
  display: none;
}
.wizard-panel.active {
  display: block;
}

/* Selección de plantillas en tarjetas */
.templates-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.template-card-choice {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  background-color: #ffffff;
  transition: all 0.15s ease;
  position: relative;
}

.template-card-choice:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow-sm);
}

.template-card-choice.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary);
}

.template-card-choice .tc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.template-card-choice .tc-code {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.template-card-choice .tc-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.template-card-choice .tc-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.template-card-choice .tc-vars {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Zona de arrastre de archivos */
.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  background-color: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.upload-dropzone svg {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hidden-input {
  display: none;
}

.sample-data-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px 16px;
  background-color: #f1f5f9;
  border-radius: var(--radius-sm);
}

.data-summary-bar {
  display: flex;
  gap: 20px;
  padding: 12px 16px;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* Caja de validación */
.validation-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.validation-header {
  font-weight: 600;
  margin-bottom: 8px;
}

.batch-summary-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.batch-summary-card .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.batch-summary-card .val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.preview-test-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.samples-preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sample-doc-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px;
  background-color: #ffffff;
}

.sample-doc-card h5 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sample-doc-card .doc-hash {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: 10px;
}

/* Panel de Progreso */
.progress-panel {
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.progress-pct {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.progress-track {
  height: 10px;
  background-color: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.progress-actions {
  margin-top: 16px;
  text-align: right;
}

/* Panel de Finalización */
.completion-panel {
  text-align: center;
  padding: 32px 20px;
}

.completion-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--success-bg);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.completion-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Modales
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-card.modal-lg {
  max-width: 840px;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background-color: #fafbfc;
}

/* --------------------------------------------------------------------------
   Inicio de Sesión
   -------------------------------------------------------------------------- */
.login-view {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  padding: 20px;
}

.login-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  padding: 32px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-header .brand-badge {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}

.login-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.login-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.login-hint {
  margin-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px;
  background-color: #f8fafc;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  border-left: 4px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: toastIn 0.2s ease-out;
}

.toast-success {
  border-left-color: var(--success);
}
.toast-danger {
  border-left-color: var(--danger);
}
.toast-warning {
  border-left-color: var(--warning);
}
.toast-info {
  border-left-color: var(--info);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Utilidades
   -------------------------------------------------------------------------- */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.82rem; }

/* --------------------------------------------------------------------------
   Responsividad Móvil
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-toggle {
    display: block;
  }
  .content-section {
    padding: 16px;
  }
  .wizard-steps {
    padding: 12px;
  }
  .step-label {
    display: none;
  }
}
