﻿:root {
  color-scheme: light;
  --repinho-green: #00a344;
  --repinho-green-dark: #007d1e;
  --repinho-green-soft: rgba(0, 163, 68, .10);
  --wood: #7d7d00;
  --ink: #1a1a1a;
  --muted: #737373;
  --bg: #ffffff;
  --card: #ffffff;
  --brand: #00a344;
  --brand-dark: #007d1e;
  --brand-soft: rgba(0, 163, 68, .10);
  --accent: #7d7d00;
  --surface: #ffffff;
  --surface-soft: rgba(0, 163, 68, .10);
  --rp-green: #00a344;
  --rp-green-2: #007d1e;
  --rp-gold: #7d7d00;
  --rp-bg: #ffffff;
  --rp-soft: rgba(0, 163, 68, .10);
  --rp-card: #ffffff;
  --rp-text: #1a1a1a;
  --rp-muted: #737373;
  --rp-border: var(--line);
  font-size: 16px;
}

body,
button,
input,
select,
textarea {
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
}

.brand-logo,
.brand-mark.brand-logo {
  object-fit: contain;
  background: var(--card);
  border: 1px solid var(--line);
  padding: .25rem;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: var(--muted);
  background: var(--repinho-green-soft);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(13, 58, 34, .08);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  color: var(--repinho-green-dark);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf7f1;
  --muted: #a8b8ae;
  --line: #244135;
  --bg: #07130d;
  --card: #101f17;
  --surface: #101f17;
  --surface-soft: #14291f;
  --repinho-green-soft: rgba(0, 163, 68, .18);
  --brand-soft: rgba(0, 163, 68, .18);
  --rp-bg: #07130d;
  --rp-card: #101f17;
  --rp-text: #edf7f1;
  --rp-muted: #a8b8ae;
  --rp-soft: rgba(0, 163, 68, .18);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(0, 163, 68, .18), transparent 34rem),
    linear-gradient(135deg, #06110c 0%, var(--bg) 100%);
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .login-panel,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .system-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .result-card,
html[data-theme="dark"] .status-row,
html[data-theme="dark"] .login-card {
  background: rgba(16, 31, 23, .96);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .checks,
html[data-theme="dark"] .systems-checklist,
html[data-theme="dark"] .system-permission {
  background: #0b1711;
  color: var(--ink);
}
