.container {
  max-width: 960px;
  margin: 0 auto;
}

/* ── Header ── */
.hero-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 35px 25px;
  border-radius: 20px;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
}

.hero-header h1 {
  font-size: 2.5rem !important;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white !important;
}

.subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Drop Zone ── */
.drop-zone {
  background: #fdf4ff;
  border: 2.5px dashed #d946a8;
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  margin-bottom: 30px;
}

.drop-zone:hover,
.drop-zone.drag-over {
  background: #fce7f3;
  border-color: #FB0E76;
  transform: scale(1.01);
}

.drop-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.folder-icon {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.drop-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
}

.drop-subtitle {
  font-size: 0.95rem;
  color: #888;
}

.file-note {
  font-size: 0.82rem;
  color: #aaa;
}

/* ── Buttons ── */
.btn {
  border: none;
  padding: 14px 28px !important;
  border-radius: 30px !important;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  transition: .3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 14, 118, 0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid #FB0E76;
  color: #FB0E76;
}

.btn-outline:hover {
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(251, 14, 118, 0.3);
}

.btn-ghost {
  background: #f3e8ff;
  color: #910694;
}

.btn-ghost:hover {
  background: #e9d5ff;
  box-shadow: 0 4px 16px rgba(145, 6, 148, 0.2);
}

/* ── Results Grid ── */
/* .results-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.results-grid.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
} */
.results-grid {

    display: none;

    grid-template-columns: 1fr 1.6fr;

    gap: 24px;

    margin-top: 30px;

}

.results-grid.visible {

    display: grid;

}


/* ── Cards ── */
.card {
/*   background: linear-gradient(219deg, #fb0e762e 0%, #91069408 100%) !important; */
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(145, 6, 148, 0.08);
  overflow: hidden;
  border: 1px solid #f3e8ff;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
}

.card-body {
  padding: 24px;
}

/* ── Info Rows ── */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.info-label {
  font-size: 0.88rem;
  color: #888;
  font-weight: 500;
}

.info-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: black;
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

.info-divider {
  height: 1px;
  background: #f3e8ff;
}

.status-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #f3f4f6;
  color: #9ca3af;
}

.status-badge.ready {
  background: #dcfce7;
  color: #16a34a;
}

.status-badge.processing {
  background: #fef9c3;
  color: #ca8a04;
}

.status-badge.error {
  background: #fee2e2;
  color: #dc2626;
}

/* ── Textarea ── */
.html-textarea {
    width: 100%;
    height: 260px;
    resize: vertical;
    padding: 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: #fff !important;
    border: 1.5px solid #f755f5 !important;
    border-radius: 18px !important;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;

}

.html-textarea:focus {
  border-color: #FB0E76;
}

.html-textarea::placeholder {
  color: #c4b5fd;
}

/* ── Button Group ── */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-group .btn {
  font-size: 12px;
  padding: 11px 20px;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 30px rgba(251, 14, 118, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Loading Spinner on Drop Zone ── */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3e8ff;
  border-top-color: #FB0E76;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .hero-header h1 {
    font-size: 1.8rem !important;
  }

  .drop-title {
    font-size: 1.2rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }
}
