/* ACG Dealer Portal — supplemental styles
 * Layered on top of /css/style.css. Only add styles that don't already exist
 * in the main stylesheet. Reuse --accent, --mono, --font, --white-30 tokens
 * defined globally.
 */

/* ---- Form status messages ---- */
.dealer-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 16px;
}
.dealer-status.is-success {
  background: rgba(46, 160, 67, 0.12);
  border: 1px solid rgba(46, 160, 67, 0.35);
  color: #6fdc8c;
}
.dealer-status.is-error {
  background: rgba(210, 0, 0, 0.12);
  border: 1px solid rgba(210, 0, 0, 0.35);
  color: #ff8a8a;
}
.dealer-status.is-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Submit-button loading state ---- */
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  pointer-events: none;
}
.btn .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  margin-left: 8px;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading svg { display: none; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---- Admin table ---- */
.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 32px);
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.admin-toolbar .filler { flex: 1; }
.admin-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font, 'Inter', sans-serif);
  font-size: 0.875rem;
  color: #fff;
  min-width: 240px;
}
.admin-input:focus {
  outline: none;
  border-color: var(--accent);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.875rem;
}
.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}
.admin-table th {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.18);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table td {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}
.admin-table .col-notes {
  max-width: 320px;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}
.admin-empty {
  padding: 48px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}
.admin-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid;
}
.admin-status-pill.s-pending  { color: #ffd66e; border-color: rgba(255, 214, 110, 0.4); background: rgba(255, 214, 110, 0.1); }
.admin-status-pill.s-approved { color: #6fdc8c; border-color: rgba(111, 220, 140, 0.4); background: rgba(111, 220, 140, 0.1); }
.admin-status-pill.s-rejected { color: #ff8a8a; border-color: rgba(255, 138, 138, 0.4); background: rgba(255, 138, 138, 0.1); }

@media (max-width: 768px) {
  .admin-table { font-size: 0.8rem; }
  .admin-table .col-notes { max-width: 200px; }
}

/* ---- Coming-soon stub (login page Phase 1) ---- */
.stub-card {
  max-width: 560px;
  margin: clamp(40px, 8vw, 96px) auto;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: center;
}
.stub-card h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 12px;
  color: #fff;
}
.stub-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
