@charset "UTF-8";

.excel-csv-page {
  max-width: 1200px;
}

.pdf-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}

.pdf-feature-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.excel-csv-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  box-sizing: border-box;
}

.extract-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.summary-card {
  padding: 18px 18px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.summary-card-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.summary-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  color: #111827;
}

.summary-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.panel-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid #e9edf3;
  border-radius: 22px;
  background: #fbfcfe;
}

.panel-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.panel-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.upload-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upload-dropzone {
  display: block;
  width: 100%;
  border: 2px dashed #d8dee8;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragover,
.upload-dropzone.is-dragover {
  border-color: #9fb7ff;
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.08);
}

.upload-dropzone-inner {
  min-height: 150px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.upload-main-text {
  margin: 0;
  color: #1f2937;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
}

.upload-file-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-left: 6px;
  border: none;
  border-radius: 999px;
  background: #6d7df6;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(109, 125, 246, 0.22);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.upload-file-chip:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.upload-sub-text {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.notice-strip {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  background: #f8fafc;
  color: #5b6472;
  font-size: 14px;
  line-height: 1.75;
}

.notice-strip strong {
  color: #111827;
  white-space: nowrap;
}

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

.option-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field-help {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.advanced-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.toggle-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e8edf4;
  border-radius: 18px;
  background: #ffffff;
}

.toggle-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6d7df6;
  flex-shrink: 0;
  margin-top: 2px;
}

.toggle-card-text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #111827;
}

.toggle-card-text small {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.note-box {
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fbff;
}

.note-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

.note-box p + p {
  margin-top: 6px;
}

.extract-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.extract-status-item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e5eaf1;
  background: #ffffff;
}

.extract-status-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #6b7280;
}

.extract-status-item span {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.file-summary {
  padding: 14px 16px;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  background: #f8fafc;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.75;
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.progress-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 0.2s ease;
}

.progress-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.preview-topbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-meta-item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e5eaf1;
  background: #ffffff;
}

.preview-meta-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #6b7280;
}

.preview-meta-item span {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.preview-table-wrap {
  overflow: auto;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #ffffff;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.preview-table th,
.preview-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f5;
  border-right: 1px solid #edf1f5;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  text-align: left;
  vertical-align: top;
}

.preview-table th {
  background: #f8fafc;
  font-weight: 800;
  color: #111827;
}

.preview-table tr:last-child td {
  border-bottom: none;
}

.preview-table th:last-child,
.preview-table td:last-child {
  border-right: none;
}

.empty-state-box {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed #d1d5db;
  background: #f9fafb;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.result-card {
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.result-card.is-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.result-card.is-error {
  background: #fef2f2;
  border-color: #fecaca;
}

.result-card.is-info {
  background: #f8fafc;
  border-color: #e5e7eb;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.result-card.is-success .result-badge {
  background: #dcfce7;
  color: #166534;
}

.result-card.is-error .result-badge {
  background: #fee2e2;
  color: #991b1b;
}

.result-card.is-info .result-badge {
  background: #e5e7eb;
  color: #374151;
}

.result-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #111827;
}

.result-desc {
  margin: 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
}

.result-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.result-meta-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(229, 231, 235, 0.95);
}

.result-meta-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #6b7280;
}

.result-meta-item span {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

@media (max-width: 960px) {
  .extract-summary,
  .option-grid,
  .advanced-option-grid,
  .extract-status-strip,
  .preview-topbar,
  .result-meta-grid {
    grid-template-columns: 1fr;
  }

  .excel-csv-card,
  .panel-box {
    padding: 22px;
  }
}

@media (max-width: 768px) {
  .excel-csv-card {
    padding: 18px;
    gap: 18px;
  }

  .panel-box {
    padding: 18px;
    border-radius: 18px;
  }

  .upload-dropzone {
    border-style: solid;
    border-width: 1px;
    border-radius: 20px;
  }

  .upload-dropzone-inner {
    min-height: 124px;
    padding: 22px 16px;
  }

  .upload-main-text {
    font-size: 18px;
  }

  .upload-sub-text {
    font-size: 13px;
  }

  .notice-strip {
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
  }

  .preview-table {
    min-width: 640px;
  }
}