/*
Theme Name: NR-1 Saúde Mental
Theme URI: https://nr1saudemental.com.br
Author: NR-1 Consultoria
Author URI: https://nr1saudemental.com.br
Description: Tema profissional para plataforma de Análise Normativa NR-1, com 3 níveis de acesso: Admin, Empresa e Funcionário. Inclui ferramentas interativas de conformidade, quiz, calculadora de riscos e painel administrativo completo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nr1-saude-mental
Tags: business, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Brand Colors */
  --nr1-primary: #1e40af;
  --nr1-primary-dark: #1e3a8a;
  --nr1-primary-light: #3b82f6;
  --nr1-primary-foreground: #ffffff;

  --nr1-secondary: #059669;
  --nr1-secondary-dark: #047857;
  --nr1-secondary-light: #10b981;

  --nr1-accent: #7c3aed;
  --nr1-warning: #d97706;
  --nr1-danger: #dc2626;
  --nr1-success: #16a34a;

  /* Neutral Colors */
  --nr1-background: #f8fafc;
  --nr1-surface: #ffffff;
  --nr1-border: #e2e8f0;
  --nr1-border-strong: #cbd5e1;

  /* Text Colors */
  --nr1-text: #0f172a;
  --nr1-text-secondary: #475569;
  --nr1-text-muted: #94a3b8;

  /* Role Colors */
  --nr1-admin-color: #7c3aed;
  --nr1-empresa-color: #1e40af;
  --nr1-funcionario-color: #059669;

  /* Spacing */
  --nr1-radius: 0.75rem;
  --nr1-radius-sm: 0.375rem;
  --nr1-radius-lg: 1rem;
  --nr1-radius-xl: 1.5rem;

  /* Shadows */
  --nr1-shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --nr1-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --nr1-shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --nr1-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --nr1-shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);

  /* Typography */
  --nr1-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nr1-font-heading: 'Inter', sans-serif;

  /* Transitions */
  --nr1-transition: all 0.2s ease;
  --nr1-transition-slow: all 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--nr1-font-sans);
  background-color: var(--nr1-background);
  color: var(--nr1-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--nr1-primary);
  text-decoration: none;
  transition: var(--nr1-transition);
}

a:hover {
  color: var(--nr1-primary-dark);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--nr1-font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--nr1-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.nr1-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nr1-container-sm { max-width: 768px; }
.nr1-container-lg { max-width: 1400px; }

.nr1-section {
  padding: 5rem 0;
}

.nr1-section-sm {
  padding: 3rem 0;
}

/* Grid System */
.nr1-grid {
  display: grid;
  gap: 1.5rem;
}

.nr1-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.nr1-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.nr1-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

@media (min-width: 768px) {
  .nr1-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .nr1-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .nr1-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flexbox Utilities */
.nr1-flex { display: flex; }
.nr1-flex-center { display: flex; align-items: center; justify-content: center; }
.nr1-flex-between { display: flex; align-items: center; justify-content: space-between; }
.nr1-flex-col { display: flex; flex-direction: column; }
.nr1-gap-2 { gap: 0.5rem; }
.nr1-gap-4 { gap: 1rem; }
.nr1-gap-6 { gap: 1.5rem; }
.nr1-gap-8 { gap: 2rem; }

/* ============================================================
   HEADER
   ============================================================ */
.nr1-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nr1-border);
  box-shadow: var(--nr1-shadow-sm);
}

.nr1-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.nr1-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nr1-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--nr1-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.nr1-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--nr1-text);
}

/* Navigation */
.nr1-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nr1-nav { display: flex; }
}

.nr1-nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: var(--nr1-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nr1-text-secondary);
  text-decoration: none;
  transition: var(--nr1-transition);
  white-space: nowrap;
}

.nr1-nav-link:hover,
.nr1-nav-link.active {
  color: var(--nr1-primary);
  background-color: #eff6ff;
}

/* Dropdown */
.nr1-dropdown {
  position: relative;
}

.nr1-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--nr1-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nr1-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--nr1-transition);
}

.nr1-dropdown-trigger:hover {
  color: var(--nr1-primary);
  background-color: #eff6ff;
}

.nr1-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--nr1-surface);
  border: 1px solid var(--nr1-border);
  border-radius: var(--nr1-radius);
  box-shadow: var(--nr1-shadow-lg);
  min-width: 220px;
  padding: 0.5rem;
  z-index: 200;
}

.nr1-dropdown-menu.open {
  display: block;
}

.nr1-dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--nr1-radius-sm);
  font-size: 0.875rem;
  color: var(--nr1-text-secondary);
  text-decoration: none;
  transition: var(--nr1-transition);
}

.nr1-dropdown-item:hover {
  color: var(--nr1-primary);
  background-color: #eff6ff;
}

/* Header Actions */
.nr1-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Toggle */
.nr1-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--nr1-border);
  border-radius: var(--nr1-radius-sm);
  cursor: pointer;
  color: var(--nr1-text);
  transition: var(--nr1-transition);
}

.nr1-mobile-toggle:hover {
  background-color: var(--nr1-background);
}

@media (min-width: 1024px) {
  .nr1-mobile-toggle { display: none; }
}

/* Mobile Menu */
.nr1-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
}

.nr1-mobile-menu.open {
  display: block;
}

.nr1-mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.nr1-mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: var(--nr1-surface);
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.nr1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--nr1-radius);
  font-family: var(--nr1-font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--nr1-transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.nr1-btn:active { transform: scale(0.98); }

.nr1-btn-primary {
  background: var(--nr1-primary);
  color: white;
  border-color: var(--nr1-primary);
}

.nr1-btn-primary:hover {
  background: var(--nr1-primary-dark);
  border-color: var(--nr1-primary-dark);
  color: white;
  box-shadow: var(--nr1-shadow-md);
}

.nr1-btn-secondary {
  background: var(--nr1-secondary);
  color: white;
  border-color: var(--nr1-secondary);
}

.nr1-btn-secondary:hover {
  background: var(--nr1-secondary-dark);
  border-color: var(--nr1-secondary-dark);
  color: white;
}

.nr1-btn-outline {
  background: transparent;
  color: var(--nr1-primary);
  border-color: var(--nr1-primary);
}

.nr1-btn-outline:hover {
  background: var(--nr1-primary);
  color: white;
}

.nr1-btn-ghost {
  background: transparent;
  color: var(--nr1-text-secondary);
  border-color: transparent;
}

.nr1-btn-ghost:hover {
  background: var(--nr1-background);
  color: var(--nr1-text);
}

.nr1-btn-danger {
  background: var(--nr1-danger);
  color: white;
  border-color: var(--nr1-danger);
}

.nr1-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.nr1-btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
}

.nr1-btn-xl {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.nr1-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   CARDS
   ============================================================ */
.nr1-card {
  background: var(--nr1-surface);
  border: 1px solid var(--nr1-border);
  border-radius: var(--nr1-radius-lg);
  overflow: hidden;
  transition: var(--nr1-transition-slow);
}

.nr1-card:hover {
  box-shadow: var(--nr1-shadow-lg);
  transform: translateY(-2px);
}

.nr1-card-header {
  padding: 1.5rem 1.5rem 0;
}

.nr1-card-body {
  padding: 1.5rem;
}

.nr1-card-footer {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--nr1-border);
  padding-top: 1rem;
}

/* Feature Card */
.nr1-feature-card {
  background: var(--nr1-surface);
  border: 1px solid var(--nr1-border);
  border-radius: var(--nr1-radius-lg);
  padding: 2rem;
  transition: var(--nr1-transition-slow);
  position: relative;
  overflow: hidden;
}

.nr1-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--nr1-primary);
  transform: scaleX(0);
  transition: var(--nr1-transition-slow);
}

.nr1-feature-card:hover::before {
  transform: scaleX(1);
}

.nr1-feature-card:hover {
  box-shadow: var(--nr1-shadow-xl);
  transform: translateY(-4px);
}

.nr1-feature-icon {
  width: 56px;
  height: 56px;
  background: var(--nr1-primary);
  border-radius: var(--nr1-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Stat Card */
.nr1-stat-card {
  background: var(--nr1-surface);
  border: 1px solid var(--nr1-border);
  border-radius: var(--nr1-radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.nr1-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--nr1-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.nr1-stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.nr1-stat-label {
  font-size: 0.875rem;
  color: var(--nr1-text-secondary);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.nr1-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.nr1-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.nr1-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nr1-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.75) 50%,
    rgba(30, 64, 175, 0.6) 100%
  );
}

.nr1-hero-content {
  position: relative;
  z-index: 10;
  padding: 6rem 0;
}

.nr1-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 9999px;
  color: #93c5fd;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.nr1-hero h1 {
  color: white;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.nr1-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.nr1-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.nr1-form-group {
  margin-bottom: 1.25rem;
}

.nr1-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nr1-text);
  margin-bottom: 0.375rem;
}

.nr1-label .required {
  color: var(--nr1-danger);
  margin-left: 0.25rem;
}

.nr1-input,
.nr1-select,
.nr1-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--nr1-border);
  border-radius: var(--nr1-radius);
  font-family: var(--nr1-font-sans);
  font-size: 0.9375rem;
  color: var(--nr1-text);
  background: var(--nr1-surface);
  transition: var(--nr1-transition);
  outline: none;
}

.nr1-input:focus,
.nr1-select:focus,
.nr1-textarea:focus {
  border-color: var(--nr1-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.nr1-input::placeholder { color: var(--nr1-text-muted); }
.nr1-textarea { resize: vertical; min-height: 120px; }

.nr1-form-error {
  font-size: 0.8125rem;
  color: var(--nr1-danger);
  margin-top: 0.375rem;
}

.nr1-form-help {
  font-size: 0.8125rem;
  color: var(--nr1-text-muted);
  margin-top: 0.375rem;
}

/* Radio & Checkbox */
.nr1-radio-group,
.nr1-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.nr1-radio-option,
.nr1-checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--nr1-border);
  border-radius: var(--nr1-radius);
  cursor: pointer;
  transition: var(--nr1-transition);
}

.nr1-radio-option:hover,
.nr1-checkbox-option:hover {
  border-color: var(--nr1-primary);
  background: #eff6ff;
}

.nr1-radio-option input[type="radio"]:checked + label,
.nr1-radio-option.selected {
  border-color: var(--nr1-primary);
  background: #eff6ff;
}

/* ============================================================
   BADGES
   ============================================================ */
.nr1-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.nr1-badge-primary { background: #dbeafe; color: #1e40af; }
.nr1-badge-success { background: #dcfce7; color: #15803d; }
.nr1-badge-warning { background: #fef3c7; color: #b45309; }
.nr1-badge-danger  { background: #fee2e2; color: #b91c1c; }
.nr1-badge-purple  { background: #ede9fe; color: #6d28d9; }
.nr1-badge-gray    { background: #f1f5f9; color: #475569; }

/* Role Badges */
.nr1-badge-admin      { background: #ede9fe; color: #6d28d9; }
.nr1-badge-empresa    { background: #dbeafe; color: #1e40af; }
.nr1-badge-funcionario { background: #dcfce7; color: #15803d; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.nr1-progress {
  width: 100%;
  height: 8px;
  background: var(--nr1-border);
  border-radius: 9999px;
  overflow: hidden;
}

.nr1-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: var(--nr1-primary);
  transition: width 0.5s ease;
}

.nr1-progress-bar.success { background: var(--nr1-success); }
.nr1-progress-bar.warning { background: var(--nr1-warning); }
.nr1-progress-bar.danger  { background: var(--nr1-danger); }

/* ============================================================
   ALERTS & NOTICES
   ============================================================ */
.nr1-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--nr1-radius);
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.nr1-alert-icon { flex-shrink: 0; font-size: 1.125rem; margin-top: 0.125rem; }
.nr1-alert-title { font-weight: 600; margin-bottom: 0.25rem; }
.nr1-alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.nr1-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.nr1-alert-warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.nr1-alert-danger  { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

/* ============================================================
   TABLES
   ============================================================ */
.nr1-table-wrapper {
  overflow-x: auto;
  border-radius: var(--nr1-radius-lg);
  border: 1px solid var(--nr1-border);
}

.nr1-table {
  width: 100%;
  border-collapse: collapse;
}

.nr1-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nr1-text-secondary);
  background: var(--nr1-background);
  border-bottom: 1px solid var(--nr1-border);
}

.nr1-table td {
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--nr1-border);
  vertical-align: middle;
}

.nr1-table tr:last-child td { border-bottom: none; }

.nr1-table tr:hover td { background: var(--nr1-background); }

/* ============================================================
   TABS
   ============================================================ */
.nr1-tabs {
  border-bottom: 2px solid var(--nr1-border);
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.nr1-tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--nr1-text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--nr1-transition);
  white-space: nowrap;
  margin-bottom: -2px;
  text-decoration: none;
}

.nr1-tab:hover { color: var(--nr1-primary); }

.nr1-tab.active {
  color: var(--nr1-primary);
  border-bottom-color: var(--nr1-primary);
  font-weight: 600;
}

/* ============================================================
   QUIZ STYLES
   ============================================================ */
.nr1-quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

.nr1-quiz-progress-header {
  margin-bottom: 2rem;
}

.nr1-quiz-question {
  background: var(--nr1-surface);
  border: 1px solid var(--nr1-border);
  border-radius: var(--nr1-radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.nr1-quiz-question-number {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nr1-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nr1-quiz-question-text {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--nr1-text);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.nr1-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.nr1-quiz-option {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--nr1-border);
  border-radius: var(--nr1-radius);
  cursor: pointer;
  transition: var(--nr1-transition);
  background: var(--nr1-surface);
}

.nr1-quiz-option:hover {
  border-color: var(--nr1-primary);
  background: #eff6ff;
}

.nr1-quiz-option.selected {
  border-color: var(--nr1-primary);
  background: #dbeafe;
}

.nr1-quiz-option input { margin: 0; }
.nr1-quiz-option label {
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--nr1-text);
}

/* Quiz Result */
.nr1-quiz-result {
  text-align: center;
  padding: 3rem;
  background: var(--nr1-surface);
  border-radius: var(--nr1-radius-xl);
  border: 1px solid var(--nr1-border);
}

.nr1-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 6px solid currentColor;
}

.nr1-score-value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.nr1-score-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.nr1-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--nr1-surface);
  border: 1.5px solid var(--nr1-border);
  border-radius: var(--nr1-radius);
  margin-bottom: 0.75rem;
  transition: var(--nr1-transition);
  cursor: pointer;
}

.nr1-checklist-item:hover {
  border-color: var(--nr1-primary);
}

.nr1-checklist-item.completed {
  border-color: var(--nr1-success);
  background: #f0fdf4;
}

.nr1-checklist-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--nr1-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--nr1-transition);
  margin-top: 0.125rem;
}

.nr1-checklist-item.completed .nr1-checklist-checkbox {
  background: var(--nr1-success);
  border-color: var(--nr1-success);
  color: white;
}

.nr1-checklist-text {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--nr1-text);
  line-height: 1.5;
}

.nr1-checklist-item.completed .nr1-checklist-text {
  text-decoration: line-through;
  color: var(--nr1-text-muted);
}

/* ============================================================
   RISK CALCULATOR
   ============================================================ */
.nr1-risk-item {
  background: var(--nr1-surface);
  border: 1px solid var(--nr1-border);
  border-radius: var(--nr1-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.nr1-risk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.nr1-risk-level {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.nr1-risk-level.alto   { background: #fee2e2; color: #b91c1c; }
.nr1-risk-level.medio  { background: #fef3c7; color: #b45309; }
.nr1-risk-level.baixo  { background: #dcfce7; color: #15803d; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.nr1-admin-wrap {
  display: flex;
  min-height: calc(100vh - 68px);
}

.nr1-admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--nr1-text);
  color: rgba(255,255,255,0.9);
  padding: 1.5rem 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}

@media (max-width: 1023px) {
  .nr1-admin-sidebar {
    display: none;
  }
}

.nr1-admin-sidebar-logo {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nr1-admin-sidebar-section {
  padding: 0.75rem 1.5rem 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
}

.nr1-admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: var(--nr1-transition);
}

.nr1-admin-sidebar-link:hover,
.nr1-admin-sidebar-link.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.nr1-admin-sidebar-link.active {
  background: var(--nr1-primary);
  border-right: 3px solid white;
}

.nr1-admin-content {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
}

.nr1-admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--nr1-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.nr1-admin-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nr1-text);
}

/* ============================================================
   DASHBOARD WIDGETS
   ============================================================ */
.nr1-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.nr1-widget {
  background: var(--nr1-surface);
  border: 1px solid var(--nr1-border);
  border-radius: var(--nr1-radius-lg);
  padding: 1.5rem;
}

.nr1-widget-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nr1-text-secondary);
  margin-bottom: 0.75rem;
}

.nr1-widget-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--nr1-text);
  line-height: 1;
}

.nr1-widget-change {
  font-size: 0.8125rem;
  margin-top: 0.375rem;
}

.nr1-widget-change.up   { color: var(--nr1-success); }
.nr1-widget-change.down { color: var(--nr1-danger); }

/* ============================================================
   MENTAL HEALTH TEST
   ============================================================ */
.nr1-health-scale {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.nr1-scale-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--nr1-radius-sm);
  border: 1.5px solid var(--nr1-border);
  background: var(--nr1-surface);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--nr1-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nr1-scale-btn:hover,
.nr1-scale-btn.selected {
  border-color: var(--nr1-primary);
  background: var(--nr1-primary);
  color: white;
}

/* ============================================================
   FOOTER
   ============================================================ */
.nr1-footer {
  background: var(--nr1-text);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.nr1-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .nr1-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.nr1-footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: rgba(255,255,255,0.6);
}

.nr1-footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: white;
  margin-bottom: 1rem;
}

.nr1-footer-link {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: var(--nr1-transition);
}

.nr1-footer-link:hover {
  color: white;
}

.nr1-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   LOADING STATES
   ============================================================ */
.nr1-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--nr1-border);
  border-top-color: var(--nr1-primary);
  border-radius: 50%;
  animation: nr1-spin 0.8s linear infinite;
}

@keyframes nr1-spin {
  to { transform: rotate(360deg); }
}

.nr1-skeleton {
  background: linear-gradient(90deg, var(--nr1-border) 25%, #f8fafc 50%, var(--nr1-border) 75%);
  background-size: 200% 100%;
  animation: nr1-shimmer 1.5s infinite;
  border-radius: var(--nr1-radius-sm);
}

@keyframes nr1-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   NOTICES (WordPress)
   ============================================================ */
.nr1-notice {
  padding: 1rem 1.25rem;
  border-radius: var(--nr1-radius);
  border-left: 4px solid;
  margin-bottom: 1rem;
}

.nr1-notice-success { background: #f0fdf4; border-color: var(--nr1-success); color: #15803d; }
.nr1-notice-error   { background: #fef2f2; border-color: var(--nr1-danger); color: #b91c1c; }
.nr1-notice-warning { background: #fffbeb; border-color: var(--nr1-warning); color: #b45309; }
.nr1-notice-info    { background: #eff6ff; border-color: var(--nr1-primary); color: #1e40af; }

/* ============================================================
   MODAL / DIALOG
   ============================================================ */
.nr1-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.nr1-modal {
  background: var(--nr1-surface);
  border-radius: var(--nr1-radius-xl);
  box-shadow: var(--nr1-shadow-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.nr1-modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nr1-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.nr1-modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--nr1-radius-sm);
  border: none;
  background: var(--nr1-background);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--nr1-transition);
}

.nr1-modal-close:hover { background: var(--nr1-border); }

.nr1-modal-body { padding: 1.5rem; }
.nr1-modal-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
  .nr1-section { padding: 3rem 0; }
  .nr1-hero h1 { font-size: 2rem; }
  .nr1-hero p { font-size: 1rem; }
  .nr1-admin-content { padding: 1rem; }
  .nr1-quiz-question { padding: 1.25rem; }
  .nr1-modal { border-radius: var(--nr1-radius-lg); }
}

.nr1-hide-mobile { display: none; }
@media (min-width: 768px) { .nr1-hide-mobile { display: block; } }

.nr1-hide-desktop { display: block; }
@media (min-width: 1024px) { .nr1-hide-desktop { display: none; } }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .nr1-header,
  .nr1-footer,
  .nr1-admin-sidebar,
  .nr1-btn:not(.nr1-btn-print) { display: none !important; }

  body { background: white; }
  .nr1-card, .nr1-quiz-result { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================================
   CONTENT PAGES – Estilos complementares
   ============================================================ */

/* Breadcrumb */
.nr1-breadcrumb { margin-bottom: 1.5rem; font-size: .88rem; }
.nr1-breadcrumb a { color: var(--nr1-primary); text-decoration: none; font-weight: 600; }
.nr1-breadcrumb a:hover { text-decoration: underline; }

/* Page hero */
.nr1-page-hero { padding: 4rem 0; text-align: center; }
.nr1-page-hero h1 { font-size: 2.5rem; margin: .5rem 0; }
@media(max-width:640px){ .nr1-page-hero h1 { font-size: 1.75rem; } }

/* Content sections */
.nr1-content-section { margin-bottom: 2.5rem; }
.nr1-content-section h2 { font-size: 1.5rem; color: var(--nr1-dark); margin-bottom: 1rem; }
.nr1-content-section p  { color: #374151; line-height: 1.75; }

/* Timeline */
.nr1-timeline { border-left: 3px solid var(--nr1-primary); padding-left: 1.5rem; margin: 1rem 0; }
.nr1-timeline-item {
  position: relative; padding: .75rem 0;
  font-size: .95rem; color: #374151;
}
.nr1-timeline-item::before {
  content: ''; position: absolute; left: -1.88rem; top: 1rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--nr1-primary);
}
.nr1-timeline-item strong { color: var(--nr1-primary); margin-right: .5rem; }

/* Info grid */
.nr1-info-grid {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem;
}
.nr1-info-item {
  padding: .5rem 1.1rem; background: #EFF6FF; color: var(--nr1-primary);
  border-radius: 99px; font-size: .9rem; font-weight: 600;
}

/* List */
.nr1-list { padding-left: 1.25rem; line-height: 2; color: #374151; font-size: .95rem; }
.nr1-list li { margin-bottom: .25rem; }

/* CTA Box */
.nr1-cta-box {
  background: linear-gradient(135deg, var(--nr1-primary), #1D4ED8);
  border-radius: 16px; padding: 2.5rem 2rem; text-align: center; color: #fff;
  margin-top: 3rem;
}
.nr1-cta-box h3 { font-size: 1.5rem; margin: 0 0 .5rem; }
.nr1-cta-box p  { opacity: .9; margin-bottom: 1.5rem; }
.nr1-cta-box .nr1-btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.nr1-cta-box .nr1-btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Page main */
.nr1-page-main { min-height: 70vh; }

