:root {
  --blue: #0052cc;
  --blue-dark: #003d99;
  --red: #d32f2f;
  --orange: #f57c00;
  --info: #1976d2;
  --bg: #f4f5f7;
  --card: #fff;
  --border: #dfe1e6;
  --text: #172b4d;
  --sub: #5e6c84;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

header {
  background: var(--blue);
  color: white;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
header h1 { font-size: 18px; font-weight: 600; }
header .sub { font-size: 12px; opacity: .75; margin-top: 2px; }

main { max-width: 860px; margin: 32px auto; padding: 0 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.card h2 { font-size: 15px; font-weight: 600; margin-bottom: 14px; color: var(--blue); }

label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 4px; color: var(--sub); }

input[type=text] {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
input[type=text]:focus { border-color: var(--blue); }

#account-suggestions {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: white;
  max-height: 180px;
  overflow-y: auto;
  display: none;
}
#account-suggestions div {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
}
#account-suggestions div:hover { background: #f0f4ff; }

#drop-zone {
  border: 2px dashed var(--border);
  border-radius: 6px;
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: var(--sub);
}
#drop-zone.drag-over {
  border-color: var(--blue);
  background: #f0f4ff;
}
#drop-zone input { display: none; }
#drop-zone .icon { font-size: 32px; margin-bottom: 8px; }
#drop-zone p { font-size: 13px; }

#file-list { margin-top: 12px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.file-row:last-child { border-bottom: none; }
.file-row .fname { flex: 1; font-weight: 500; }
.file-row input[type=text] { width: 180px; font-size: 12px; padding: 4px 6px; }
.file-row .rm { cursor: pointer; color: var(--red); font-size: 16px; line-height: 1; }

button.submit-btn {
  background: var(--blue);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  width: 100%;
}
button.submit-btn:hover { background: var(--blue-dark); }
button.submit-btn:disabled { background: #aaa; cursor: not-allowed; }

#progress { display: none; margin-top: 12px; }
progress { width: 100%; height: 8px; border-radius: 4px; }

#results { display: none; }

.site-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.site-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.site-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--sub); }
.site-stats span { white-space: nowrap; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.badge-blocker { background: var(--red); }
.badge-warning { background: var(--orange); }
.badge-info    { background: var(--info); }

.downloads a {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 5px 12px;
  background: #f0f4ff;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.downloads a:hover { background: var(--blue); color: white; }

.zoho-link {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--blue);
}

.error-msg {
  color: var(--red);
  font-size: 13px;
  margin-top: 10px;
}
