/* Identidade visual compartilhada por todas as páginas do Portal Terramundi. */
:root {
  color-scheme: dark;
  --base: #071219;
  --base-dark: #0b1c26;
  --surface: #102a36;
  --surface-2: #153541;
  --accent: #57cce1;
  --accent-hover: #77e2ef;
  --muted: rgba(216, 239, 246, .68);
  --muted-2: rgba(216, 239, 246, .48);
  --border: rgba(113, 219, 239, .18);
  --shadow-card: 0 16px 38px rgba(0, 0, 0, .22);
  --shadow-soft: 0 7px 22px rgba(34, 173, 202, .19);
}

body, .app { background: var(--base); }
.main-col, .content { min-width: 0; }
.content > .fade-in { width: 100%; min-width: 0; }
.content > .fade-in > .page,
.content > .page {
  width: 100%;
  max-width: none;
  margin: 0;
}
.content {
  background:
    radial-gradient(circle at 90% 5%, rgba(34, 151, 176, .11), transparent 36%),
    linear-gradient(135deg, #071219, #0b1b25 70%, #071219);
}
.sidebar {
  background: var(--base-dark);
  border-right-color: var(--border);
}
.sidebar-head, .sidebar-foot { border-color: var(--border); }
.sidebar-search input {
  background: rgba(23, 60, 75, .72);
  border-color: rgba(113, 219, 239, .2);
}
.sidebar-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(87,204,225,.13); }
.sidebar-search .icon { color: #9bc3ce; }
.nav-link:hover, .acc-btn:hover, .panel-item .plink:hover {
  background: rgba(77, 176, 199, .1);
  color: #f4fcff;
}
.nav-link.active, .panel-item .plink.active {
  background: rgba(69, 181, 205, .19);
  color: var(--accent);
}
.acc-btn .icon-cat { color: var(--accent); }
.sidebar-foot .btn-ghost { background: rgba(121, 177, 194, .1); }
.sidebar-foot .btn-ghost:hover, .sidebar-foot .btn-ghost.active {
  background: rgba(69, 181, 205, .2);
  color: #ebfaff;
}
.topbar, .footer {
  background: var(--base-dark);
  border-color: var(--border);
}

.card {
  background: linear-gradient(155deg, rgba(20, 50, 63, .97), rgba(12, 34, 46, .97));
  border-color: var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card), inset 0 1px rgba(255,255,255,.045);
}
.card .section-title { color: #f3fbfe; }
.card .section-title .icon { color: var(--accent); }
.btn-accent {
  background: linear-gradient(130deg, #76e1ef, #3a9db9);
  color: #05212b;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.btn-accent:hover:not(:disabled) { background: linear-gradient(130deg, #98eef6, #51b8d0); }
.btn-ghost { background: rgba(100, 158, 177, .11); }
.btn-ghost:hover:not(:disabled) { background: rgba(100, 188, 210, .2); }
.btn:focus-visible, .nav-link:focus-visible, .acc-btn:focus-visible, .plink:focus-visible {
  outline: 2px solid #8be8f4;
  outline-offset: 2px;
}
.input, textarea.input, select.input,
.access-settings .access-form input:not([type=checkbox]),
.access-settings .access-form select {
  background: rgba(19, 52, 66, .85);
  border: 1px solid rgba(113, 219, 239, .24);
  border-radius: 11px;
  color: #effaff;
}
.input:focus, textarea.input:focus, select.input:focus,
.access-settings .access-form input:focus,
.access-settings .access-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(87, 204, 225, .14);
}
.input::placeholder, .access-settings .access-form input::placeholder { color: #8babb6; }
.input option, .access-settings .access-form option { background: #153541; color: #effaff; }
.list-item, .link-item, .week .day, .toast {
  background: rgba(24, 57, 71, .62);
  border-color: rgba(113, 219, 239, .13);
}
.link-item:hover, .week .day.today {
  background: rgba(51, 113, 134, .33);
  border-color: rgba(113, 219, 239, .35);
}
.stat .ic, .access-avatar, .portal-modal-icon {
  color: var(--accent);
  background: rgba(87, 204, 225, .14);
}
.badge, .access-private-badge, .access-number {
  color: var(--accent);
  background: rgba(87, 204, 225, .15);
}
.access-table th { background: rgba(12, 35, 47, .85); }
.access-table tbody tr:hover { background: rgba(87, 204, 225, .06); }
.access-feed-dot { box-shadow: 0 0 0 4px rgba(87, 204, 225, .14); }
.access-user { background: rgba(18, 46, 59, .55); }
.access-user:hover { border-color: rgba(113, 219, 239, .32); }
.toast { background: #122e3b; }
.login-wrap {
  background:
    radial-gradient(circle at 85% 12%, rgba(53, 182, 206, .15), transparent 38%),
    linear-gradient(135deg, #071219, #102a36);
}
