.wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
 border-radius: 20px !important;
  padding: 44px 40px;
  text-align: center;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(180, 23, 158, 0.25);
}

.hero-title {
      font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white !important;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- DROP SECTION ---------- */
.drop-section {
  margin-bottom: 32px;
}

.drop-zone {
    background: linear-gradient(219deg, #fb0e7630 0%, #91069400 100%) !important;
    border: 3px dashed #f755f5 !important;
    border-radius: 20px !important;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: .3s;
}

.drop-zone:hover,
.drop-zone.drag-over {
  background: #f0dcff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.drop-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.drop-icon svg {
  width: 100%;
  height: 100%;
}

.drop-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 8px;
}

.drop-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.browse-btn {
 border: none;
    padding: 14px 28px;
    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%) !important;
    transition: .3s;
}

.browse-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.browse-btn:active {
  transform: translateY(0);
}

#fileInput {
  display: none;
}

/* ---------- PROGRESS ---------- */
.progress-wrap {
  margin-top: 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}

.progress-bar-track {
  height: 8px;
  background: var(--neutral-200);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-from), var(--primary-to));
  border-radius: 99px;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- RESULTS ---------- */
.results-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.results-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--neutral-200);
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- RESULT ROW ---------- */
.result-row {
    border-radius: 12px !important;
    border: 2px solid #f755f5 !important;
    background: linear-gradient(219deg, #fb0e7630 0%, #91069426 100%) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--neutral-100);
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.result-row:hover {
  border-color: var(--accent-border);
  box-shadow: 0 2px 12px rgba(192, 38, 211, 0.09);
}

.result-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: black;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-label .page-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-label .page-icon svg {
  width: 16px;
  height: 16px;
}

.result-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
     background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px !important;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.15s;
}

.action-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.action-btn:active {
  transform: translateY(0);
}

.btn-preview {
  background: var(--accent-light);
  color: var(--accent);
  border: 1.5px solid var(--accent-border);
}

.btn-download {
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(192, 38, 211, 0.28);
}

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 5, 40, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  animation: slideUp 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--neutral-200);
  color: var(--text-head);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}

.modal-close:hover {
  background: var(--neutral-300);
}

.modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.modal-body img,
.modal-body svg {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-sm);
  display: block;
}

/* ---------- UTILITY ---------- */
.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px){
	.wrapper{
		padding: 0px !important;
	}
	.results-section{
			padding: 0px !important;
	}
	.action-btn {
		padding: 8px 11px !important;
	}
}
@media (max-width: 600px) {
  .hero {
    padding: 32px 20px;
  }

  .drop-zone {
    padding: 40px 20px 36px;
  }

  .result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .result-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
