/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  margin-bottom: 2.5rem;

    padding: 40px 10px;
/*     background: linear-gradient(180deg, #6630C6 0%, #330F95 100%); */
    border-radius: 12px;
    color: #fff;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: #1a56db;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Tool Card ===== */
.tool-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  margin-bottom: 2.5rem;
}

.field-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b !important;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.url-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1e293b !important;
  background: #ffffff !important;
  border: 1.5px solid #93c5fd !important;
  border-radius: 10px !important;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-shadow: 0 0 0 0 transparent;
}

.url-input::placeholder { color: #94a3b8; }

.url-input:focus {
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

/* ===== Action Row ===== */
.action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.65rem 1.4rem !important;
  background: #ffb802 !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 600;
  font-family: inherit;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(26,86,219,0.25);
}

.btn-primary:hover {
  background: #1648c0 !important;
  box-shadow: 0 4px 14px rgba(26,86,219,0.35);
  transform: translateY(-1px) !important;
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.arrow i {
  transition: transform 0.3s ease;
}

.indent-arrow i {
  font-size: 12px;
  opacity: 0.7;
}

/* ===== Progress ===== */
.progress-wrap {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.progress-bar {
  width: 100%;
  height: 8px !important;
  background: #e2e8f0 !important;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1a56db) !important;
  border-radius: 99px !important;
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 0.82rem;
  color: #64748b !important;
}

/* ===== Error Box ===== */
.error-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 0.75rem 1rem !important;
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 10px !important;
  color: #dc2626 !important;
  font-size: 0.9rem;
}

/* ===== Results Area ===== */
.results-area {
  margin-top: 1.75rem;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.summary-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pages-found-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem !important;
  border: 2px solid #1e293b !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  color: #1e293b !important;
  background: #ffffff !important;
  white-space: nowrap;
}

.pages-found-badge strong { margin-left: 4px; }

.export-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.1rem !important;
  background: #1a56db !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 600;
  font-family: inherit;
  border: none !important;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(26,86,219,0.2);
}

.btn-export:hover { background: #1648c0; transform: translateY(-1px); }
.btn-export:active { transform: translateY(0); }

/* ===== Tables Grid ===== */
.tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .tables-grid { grid-template-columns: 1fr; }
}

.result-table-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
}

.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #475569;
  background: #f8fafc;
}

.table-divider {
  height: 1px;
  background: #e2e8f0;
}

/* ===== Sitemap List ===== */
.sitemap-list, .year-list {
  padding: 0.5rem 0;
}

.sitemap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem;
  gap: 0.5rem;
  transition: background 0.15s;
}

.sitemap-row:hover { background: #eff6ff; }

.sitemap-row.is-index { font-weight: 500; }

.sitemap-url {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.83rem;
  color: #1a56db;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitemap-url .indent-arrow {
  color: #94a3b8;
  flex-shrink: 0;
}

.sitemap-url a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitemap-count-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.view-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: #1a56db;
  text-decoration: none;
  white-space: nowrap;
}
.view-link:hover { text-decoration: underline; }

/* ===== Year List ===== */
.year-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  transition: background 0.15s;
}

.year-row:hover { background: #eff6ff; }

.year-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
}

.year-label .arrow {
  font-size: 0.7rem;
  color: #64748b;
  transition: transform 0.2s;
}

.year-count-col {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.month-rows { display: none; }
.month-rows.open { display: block; }

.month-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 1rem 0.45rem 2rem;
  background: #eff6ff;
  border-top: 1px solid #dbeafe;
  font-size: 0.83rem;
  color: #475569;
}

.month-row:last-child { border-bottom: 1px solid #dbeafe; }

/* ===== How It Works ===== */
.how-it-works {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.how-it-works h2 {
  font-size: 1.4rem !important;
  font-weight: 700;
  color: #90939a !important;
  margin-bottom: 1.25rem;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 580px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.step-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  transform: translateY(-3px);
}

.step-icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
  color: #1a56db;
}

.step-card h3 {
  font-size: 0.95rem !important;
  font-weight: 600;
  color: #1e293b !important;
  margin-bottom: 0.4rem;
}

.step-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.55;
}

/* ===== Footer ===== */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
	.container{
		padding:0px !important
	}
  .tool-card { padding: 1.25rem; }
  .action-row { flex-direction: column; align-items: stretch; }
  .btn-primary { justify-content: center; }
  .progress-wrap { min-width: unset; }
  .summary-row { flex-direction: column; align-items: flex-start; }
  .pages-found-badge { width: 100%; justify-content: center; }
}
