/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  background: #f5f6fa;
  color: #333;
  padding: 2rem;
}

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
}

/* Navigation */
nav {
  margin-bottom: 2rem;
  position: relative;
}
nav a {
  text-decoration: none;
  color: #005f99;
  margin-right: 1rem;
}
nav a:hover {
  text-decoration: underline;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border: 1px solid #ddd;
  border-radius: 4px;
  z-index: 1000;
  top: 100%;
  left: 0;
  margin-top: 2px;
  transition: opacity 0.2s ease;
}

.dropdown-content a {
  color: #333 !important;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  margin-right: 0 !important;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  text-decoration: none !important;
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
}

.dropdown > a {
  cursor: pointer;
}

/* Forms */
form {
  margin-top: 1rem;
}
input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button {
  background: #005f99;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}
button:hover {
  background: #004472;
}

/* Messages */
.message, .error {
  padding: 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.message {
  background: #e0f7e9;
  color: #2d6a4f;
}
.error {
  background: #fde2e2;
  color: #9b2226;
}

/* Dashboard cards */
.site-card {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}
.site-card h3 {
  margin-bottom: 0.5rem;
}
.site-card ul {
  list-style: none;
  margin-top: 0.5rem;
}
.site-card ul li {
  margin-bottom: 0.4rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

.non-editable-placeholder {
    background: #eee;
    padding: 10px;
    border: 1px dashed #999;
    color: #666;
  }

.editor-nav {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 0.95em;
}
.editor-nav a {
  color: #005f99;
  margin: 0 0.5rem;
  text-decoration: none;
}
.editor-nav a:hover {
  text-decoration: underline;
}
.domain-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}
.domain-item {
  margin-bottom: 0.5rem;
}
.status.valid {
  color: green;
  margin-left: 0.5rem;
}
.status.invalid {
  color: red;
  margin-left: 0.5rem;
}
.site-actions a.btn-link {
  display: inline-block;
  margin-right: 1rem;
  text-decoration: none;
  color: #005f99;
}
.site-actions a.btn-link:hover {
  text-decoration: underline;
}
.btn {
  background-color: #005f99;
  color: #fff !important;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none !important;
  font-size: 0.95rem;
  line-height: 1.2;
}
.btn:hover {
  background: #004472;
}

.btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.85em;
}

.btn-primary {
  background-color: #005f99;
}
.btn-primary:hover {
  background-color: #004472;
}

.btn-secondary {
  background-color: #777;
}
.btn-secondary:hover {
  background-color: #555;
}
.domain-box {
  background: #f1f3f5;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0.8rem;
  margin-bottom: 1rem;
}

.domain-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.dns-instructions {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 0.6rem;
  border-radius: 4px;
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.dns-instructions pre {
  font-family: monospace;
  font-size: 0.9rem;
  margin: 0;
  white-space: pre-wrap;
}

.mb-2 {
  margin-bottom: 1rem;
}
.sitemap-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}
.sitemap-list li {
  background: #f1f3f5;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.sitemap-list code {
  display: inline-block;
  background: #eee;
  padding: 0.2rem 0.4rem;
  margin: 0.3rem 0;
  border-radius: 4px;
  font-size: 0.9rem;
}
.return-link {
  margin-right: 1rem;
  display: inline-block;
  color: #005f99;
  font-weight: 500;
}
.return-link:hover {
  text-decoration: underline;
}
.sitemap-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}
.sitemap-item {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  background: #f1f3f5;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.sitemap-main {
  width: 45%;
}
.sitemap-explainer {
  width: 50%;
  font-size: 0.95rem;
  color: #333;
  background: #fff;
  padding: 0.75rem;
  border-left: 4px solid #005f99;
  border-radius: 4px;
}
.sitemap-explainer p {
  margin: 0.75rem;
}
.funnel-section p,
.funnel-section h2,
.funnel-section h3,
.funnel-section ul {
  margin-bottom: 1rem;
}

.funnel-section ul {
  padding-left: 1.25rem;
  list-style-type: disc;
}
.funnel-intro p,
.funnel-intro ul {
  margin-bottom: 1rem;
}
.btn-link {
  background: none;
  border: none;
  padding: 0.2rem 0;
  color: #005f99;
  text-decoration: underline;
  cursor: pointer;
}
.btn-link:hover {
  color: #003d66;
}
details.site-card {
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

details.site-card summary {
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0.5rem 0;
  list-style: none;
}

details.site-card[open] {
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.site-details {
  margin-top: 1rem;
}
.domain-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.domain-actions form {
  margin: 0;
}

.domain-actions .btn {
  margin-top: 0; /* Override global button margin */
}

.leads-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
  font-size: 0.95em;
  background: #fff;
  border: 1px solid #ccc;
}

.leads-table th,
.leads-table td {
  padding: 12px 16px;
  border: 1px solid #ccc;
  text-align: left;
}

.leads-table th {
  background-color: #f9f9f9;
  font-weight: bold;
}

.leads-table tr:nth-child(even) {
  background-color: #f5f5f5;
}

