/* ===== Theme tokens ===== */
:root {
  --bg: #fbfcfd;
  --surface: rgba(255,255,255,0.66);
  --muted-surface: rgba(247,250,253,0.65);
  --accent: #2563eb;
  --accent-2: #1e40af;
  --muted: #667085;
  --text: #0b1220;
  --glass-border: rgba(15,23,42,0.06);
  --card-shadow: 0 10px 30px rgba(15,23,42,0.06);
  --soft-shadow: 0 6px 20px rgba(15,23,42,0.04);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --container-w: 1200px;
  --glass-blur: 10px;
  --elevate: translateY(-6px);
}

/* ===== Base Reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background: linear-gradient(180deg, #f7f9fb 0%, var(--bg) 100%);
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 28px 18px;
  color-scheme:light;
}

/*=== Main Layout ===== */
#container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.dashboard-container {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
  padding: 28px;
  max-width: var(--container-w);
}

/* ===== Header ===== */
.header-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(37,99,235,0.15);
}

#business-info {
  text-align: center;
}

/* ===== Website Preview ===== */
.website-preview-card {
  margin-top: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(250,250,251,0.9));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(var(--glass-blur));
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.preview-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.iframe-container {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15,23,42,0.06);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  background: var(--muted-surface);
}

#website-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

/* ===== Buttons ===== */
#edit-buttons-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.edit-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(247,250,253,0.88));
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  transition: all 0.2s ease;
}
.edit-btn:hover {
  transform: var(--elevate);
  box-shadow: 0 14px 30px rgba(15,23,42,0.1);
}

.launch-button {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  width: 80%;
  max-width: 360px;
  margin: 14px auto;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37,99,235,0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.launch-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(37,99,235,0.18);
}

/* ===== Download & Deploy Buttons ===== */
.vercel, .download-report-btn {
  display: block;
  margin: 18px auto;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,0.12);
  background: rgba(255,255,255,0.85);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--soft-shadow);
}
.vercel:hover, .download-report-btn:hover {
  background: rgba(37,99,235,0.08);
}
/* ===== Founder Support ===== */
.founder-support {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--muted-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(var(--glass-blur));
  text-align: center;
}

.founder-support p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.founder-support a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.founder-support a:hover {
  text-decoration: underline;
}

.founder-pill {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(37,99,235,0.08);
  border-radius: 999px;
}
/* ===== Footer ===== */
#site-footer {
  width: 100%;
  background: #fff;
  padding: 24px;
  box-shadow: 0 -4px 20px rgba(15,23,42,0.04);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 18px;
  }
  .iframe-container {
    height: 320px;
  }
  .launch-button {
    width: 100%;
    max-width: 100%;
  }
}

#progress-bar::-webkit-progress-value {
  transition: background 0.3s ease;
}
#progress-bar.error::-webkit-progress-value {
  background: #ff4747;
}
#progress-bar.success::-webkit-progress-value {
  background: #4caf50;
}
#progress-bar.warn::-webkit-progress-value {
  background: #ffb84d;
}