/* Shared styles for the admin panel - same color scheme as the
   Streamlit app and widget (dark navy accents, light neutral background) */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f7f8fa;
  color: #111827;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1f2937;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-title {
  font-weight: 700;
  font-size: 16px;
}

h1 {
  font-size: 20px;
  margin: 0 0 6px 0;
}

.subtitle {
  color: #6b7280;
  font-size: 13px;
  margin: 0 0 24px 0;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  margin-top: 16px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

input:focus {
  border-color: #1f2937;
}

.btn {
  width: 100%;
  background: #1f2937;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 22px;
}

.btn:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

.link-row {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 18px;
}

.link-row a {
  color: #1f2937;
  font-weight: 600;
  text-decoration: none;
}

.error-box {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 16px;
  display: none;
}

.success-box {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 16px;
  display: none;
}

/* ---- Dashboard ---- */
.dash-header {
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
}

.card {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.card h2 {
  font-size: 16px;
  margin: 0 0 16px 0;
}

.site-key-box {
  background: #f7f8fa;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: monospace;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  word-break: break-all;
}

.embed-box {
  background: #1f2937;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: monospace;
  font-size: 12px;
  overflow-x: auto;
  white-space: pre;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  color: #6b7280;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid #ececec;
}

td {
  padding: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.badge {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-indexed {
  background: #dcfce7;
  color: #166534;
}

.badge-processing {
  background: #fef9c3;
  color: #854d0e;
}

.badge-failed {
  background: #fee2e2;
  color: #991b1b;
}

.copy-btn {
  background: #1f2937;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
