@charset "UTF-8";

/* =========================================================
   Webpage PDF Utility
========================================================= */

.webpage-pdf-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
}

/* =========================================================
   Card
========================================================= */

.webpage-pdf-card {
  padding: 28px;
  border-radius: 24px;
}

/* =========================================================
   URL Area
========================================================= */

.url-box {
  margin-bottom: 26px;
}

.url-input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.url-input-row .utility-input {
  flex: 1;
}

.field-help {
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* =========================================================
   Options Grid
========================================================= */

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.option-box {
  min-width: 0;
}

.option-box .utility-field-label {
  margin-bottom: 8px;
  display: inline-flex;
}

.option-box .utility-input {
  width: 100%;
}

/* =========================================================
   Toggle Area
========================================================= */

.toggle-area {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.toggle-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.toggle-item:hover {
  transform: translateY(-1px);
  border-color: #c7d2fe;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.08);
}

.toggle-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
  flex-shrink: 0;
}

.toggle-item span {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.5;
}

/* =========================================================
   Progress
========================================================= */

.progress-wrap {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 100%
  );
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.progress-head span {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #6366f1 0%,
    #8b5cf6 100%
  );
  transition: width 0.35s ease;
}

/* =========================================================
   Status Box
========================================================= */

.status-box {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
}

.status-box.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.status-box.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.status-box.loading {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

/* =========================================================
   Help Panel
========================================================= */

.help-panel {
  margin-top: 26px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.help-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.help-panel ul {
  margin: 0;
  padding-left: 18px;
}

.help-panel li {
  margin-bottom: 10px;
  color: #4b5563;
  line-height: 1.8;
  font-size: 14px;
}

/* =========================================================
   Utility Overrides
========================================================= */

.webpage-pdf-page .utility-input,
.webpage-pdf-page .utility-textarea,
.webpage-pdf-page select.utility-input {
  min-height: 48px;
  border-radius: 14px;
}

.webpage-pdf-page .utility-btn {
  min-height: 48px;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 700;
}

.webpage-pdf-page .utility-btn-primary {
  min-width: 140px;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1024px) {

  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toggle-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .webpage-pdf-page {
    padding: 24px 14px;
  }

  .webpage-pdf-card {
    padding: 20px;
    border-radius: 20px;
  }

  .url-input-row {
    flex-direction: column;
  }

  .option-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .toggle-item {
    min-height: auto;
    padding: 14px;
  }

  .progress-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .help-panel {
    padding: 22px 18px;
  }
}

@media (max-width: 480px) {

  .webpage-pdf-page .utility-btn-primary {
    width: 100%;
  }

  .toggle-item span {
    font-size: 13px;
  }

  .field-help,
  .help-panel li {
    font-size: 13px;
  }
}