/* =====================================================
   Relatórios Pedagógicos - Estilos
   Portal Educacional de Maranguape
   ===================================================== */

:root {
  --primary-color: #0891B2;
  --secondary-color: #10B981;
  --accent-color: #34D399;
  --dark-bg: #0B1A1E;
  --card-bg: #ffffff;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --border-color: #E5E7EB;
  --gradient-1: linear-gradient(135deg, #0891B2, #10B981);
  --gradient-2: linear-gradient(135deg, #10B981, #34D399);
  --gradient-3: linear-gradient(135deg, #06B6D4, #67E8F9);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: #f8fafb;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

/* ========== NAVBAR ========== */
.modern-navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.modern-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 0.7rem;
  padding: 0.3rem 0.45rem !important;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after { width: 80%; }
.navbar-nav { gap: 0; }
.dropdown-menu {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  margin-top: 0.5rem;
}
.dropdown-item {
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  transition: all 0.3s ease;
  font-size: 0.82rem;
}
.dropdown-item:hover {
  background: var(--gradient-1);
  color: white !important;
  transform: translateX(5px);
}
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -1px; display: none; }
.dropdown-submenu:hover > .dropdown-menu { display: block; }

/* ========== HERO SECTION ========== */
.hero-section {
  background: linear-gradient(160deg, #021a1f 0%, #052e2e 30%, #0a3d35 60%, #041f1a 100%);
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  text-align: center;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(52, 211, 153, 0.4);
  border-radius: 50%;
  left: var(--x);
  top: var(--y);
  animation: floatP var(--d) ease-in-out infinite;
  transform: scale(var(--s));
}
@keyframes floatP {
  0%, 100% { transform: scale(var(--s)) translateY(0) translateX(0); opacity: 0.3; }
  50% { transform: scale(var(--s)) translateY(-30px) translateX(15px); opacity: 0.9; }
}
.hero-content { position: relative; z-index: 2; }
.hero-icon-wrap {
  width: 100px;
  height: 100px;
  background: rgba(8, 145, 178, 0.15);
  border: 2px solid rgba(8, 145, 178, 0.3);
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  animation: iconFloat 3s ease-in-out infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 0.7rem 1.5rem;
  color: white;
  backdrop-filter: blur(10px);
}
.hero-stat .stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}
.hero-stat .stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
  display: block;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(8, 145, 178, 0.3);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(8, 145, 178, 0.5);
  color: white;
}
.btn-hero-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  color: white;
}

/* ========== CONTENT SECTION ========== */
.content-section {
  background: #f8fafb;
  border-radius: 40px 40px 0 0;
  padding: 50px 0 80px;
  margin-top: -30px;
  position: relative;
  z-index: 3;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

/* ========== FILTROS ========== */
.filters-bar {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}
.filters-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 16px;
  font-size: 1rem;
}
.filters-title i { margin-right: 8px; }
.filters-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-select {
  flex: 1;
  min-width: 180px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.filter-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}
.btn-filter {
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
  color: white;
}
.btn-filter-clear {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-filter-clear:hover {
  background: #f3f4f6;
  color: var(--text-primary);
}

/* ========== GRID DE RELATÓRIOS ========== */
.relatorios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

/* ========== CARD RELATÓRIO ========== */
.rel-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.rel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(8, 145, 178, 0.3);
}
.rel-card-header {
  padding: 20px 24px 14px;
  border-bottom: 1px solid #f3f4f6;
}
.rel-card-tipo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.rel-card-tipo.turma {
  background: rgba(8, 145, 178, 0.1);
  color: var(--primary-color);
}
.rel-card-tipo.individual {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}
.rel-card-titulo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.rel-card-body {
  padding: 14px 24px;
}
.rel-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.rel-card-info span i {
  color: var(--primary-color);
  margin-right: 5px;
  width: 14px;
}
.rel-card-footer {
  padding: 14px 24px 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rel-card-footer .btn {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-ver {
  background: rgba(8, 145, 178, 0.1);
  color: var(--primary-color);
  border: none;
}
.btn-ver:hover {
  background: var(--primary-color);
  color: white;
}
.btn-edit {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary-color);
  border: none;
}
.btn-edit:hover {
  background: var(--secondary-color);
  color: white;
}
.btn-pdf {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: none;
  text-decoration: none;
}
.btn-pdf:hover {
  background: #EF4444;
  color: white;
}
.btn-del {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-secondary);
  border: none;
}
.btn-del:hover {
  background: #EF4444;
  color: white;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon {
  width: 100px;
  height: 100px;
  background: rgba(8, 145, 178, 0.08);
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ========== MODAL FORMULÁRIO ========== */
.modal-form-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
}
.modal-form-header {
  background: var(--gradient-1);
  color: white;
  padding: 20px 28px;
  border: none;
}
.modal-form-header .modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}
.modal-form-body {
  padding: 28px;
  background: #f8fafb;
}
.modal-form-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px 28px;
  background: white;
}
.form-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.form-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(8, 145, 178, 0.1);
}
.form-section-title i { margin-right: 8px; }
.form-section-individual {
  border-color: #F59E0B;
  border-left: 4px solid #F59E0B;
}
.individual-title { color: #D97706 !important; border-bottom-color: rgba(245, 158, 11, 0.2) !important; }
.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
}
.btn-save {
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.3);
  color: white;
}

/* ========== MODAL VISUALIZAR ========== */
.modal-view-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
}
.modal-view-header {
  background: linear-gradient(135deg, #0E7490, #0891B2);
  color: white;
  padding: 20px 28px;
  border: none;
}
.modal-view-body {
  padding: 28px;
  background: #f8fafb;
}
.modal-view-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px 28px;
  background: white;
  flex-wrap: wrap;
  gap: 8px;
}
.view-section {
  background: white;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.view-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.view-section p {
  color: var(--text-primary);
  font-size: 0.92rem;
  white-space: pre-wrap;
  line-height: 1.7;
}
.view-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.view-info-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.view-info-item strong {
  color: var(--primary-color);
}
.view-individual-box {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.view-individual-box .view-section-title { color: #D97706; }

/* ========== MODAL IA ========== */
.modal-ia-content {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(124, 58, 237, 0.15);
}
.modal-ia-header {
  background: linear-gradient(135deg, #6D28D9 0%, #7C3AED 40%, #A855F7 100%);
  color: white;
  padding: 24px 32px;
  border: none;
  position: relative;
  overflow: hidden;
}
.modal-ia-header::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.modal-ia-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 40%;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.modal-ia-header .modal-title {
  position: relative;
  z-index: 2;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}
.modal-ia-body {
  padding: 32px;
  background: linear-gradient(180deg, #faf5ff 0%, #f5f3ff 50%, #ede9fe 100%);
  min-height: 200px;
}
.modal-ia-footer {
  border-top: none;
  padding: 18px 32px;
  background: white;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
  gap: 10px;
  flex-wrap: wrap;
}
.ia-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 70px 20px;
  color: var(--text-secondary);
}
.ia-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 3px;
  color: #7C3AED !important;
}
.ia-loading p {
  font-weight: 500;
  font-size: 1rem;
}
.btn-ia {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-ia:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  color: white;
}
.btn-ia-improve {
  background: linear-gradient(135deg, #0891B2, #06B6D4);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-ia-improve:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35);
  color: white;
}

/* IA Nota Geral */
.ia-nota-geral {
  text-align: center;
  margin-bottom: 28px;
}
.ia-gauge-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
}
.ia-gauge-wrap svg {
  transform: rotate(-90deg);
}
.ia-gauge-bg { stroke: #e9e5f5; }
.ia-gauge-fill {
  transition: stroke-dasharray 1.2s ease;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 6px rgba(124, 58, 237, 0.25));
}
.ia-gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.ia-gauge-text .gauge-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ia-gauge-text .gauge-of {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.ia-nota-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #6D28D9;
  margin-top: 4px;
}

/* IA Score cards */
.ia-score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.ia-score-card {
  background: white;
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.06);
  border: 1px solid #ede9fe;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.ia-score-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
}
.ia-score-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.ia-score-card.sc-excellent::before { background: linear-gradient(90deg, #10B981, #34D399); }
.ia-score-card.sc-good::before { background: linear-gradient(90deg, #0891B2, #22D3EE); }
.ia-score-card.sc-average::before { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.ia-score-card.sc-low::before { background: linear-gradient(90deg, #EF4444, #F87171); }
.ia-score-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.sc-excellent .ia-score-icon { background: rgba(16,185,129,0.1); color: #10B981; }
.sc-good .ia-score-icon { background: rgba(8,145,178,0.1); color: #0891B2; }
.sc-average .ia-score-icon { background: rgba(245,158,11,0.1); color: #F59E0B; }
.sc-low .ia-score-icon { background: rgba(239,68,68,0.1); color: #EF4444; }
.ia-score-card .score-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.ia-score-card .score-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.score-excellent { color: #10B981; }
.score-good { color: #0891B2; }
.score-average { color: #F59E0B; }
.score-low { color: #EF4444; }

/* IA Seções Parseadas */
.ia-parsed-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ia-section-card {
  background: white;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.05);
  border: 1px solid #ede9fe;
  transition: all 0.3s ease;
}
.ia-section-card:hover {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.1);
}
.ia-section-card .ia-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f5f3ff;
}
.ia-sec-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.ia-sec-icon.fortes { background: rgba(16,185,129,0.1); color: #10B981; }
.ia-sec-icon.sugestoes { background: rgba(245,158,11,0.1); color: #F59E0B; }
.ia-sec-icon.observacoes { background: rgba(124,58,237,0.1); color: #7C3AED; }
.ia-sec-icon.geral { background: rgba(8,145,178,0.1); color: #0891B2; }
.ia-sec-head h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.ia-section-card .ia-sec-body {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.8;
}
.ia-section-card .ia-sec-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ia-section-card .ia-sec-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.ia-section-card .ia-sec-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-1);
}

/* Fallback feedback */
.ia-feedback {
  background: white;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.05);
  border: 1px solid #ede9fe;
}
.ia-feedback h5 {
  font-family: 'Space Grotesk', sans-serif;
  color: #7C3AED;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.ia-feedback-content {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-stats { gap: 1rem; }
  .relatorios-grid { grid-template-columns: 1fr; }
  .filters-row { flex-direction: column; }
  .filter-select { min-width: 100%; }
  .ia-score-grid { grid-template-columns: repeat(2, 1fr); }
  .ia-gauge-wrap { width: 130px; height: 130px; }
  .ia-gauge-wrap svg { width: 130px; height: 130px; }
  .ia-gauge-text .gauge-num { font-size: 2.2rem; }
  .view-info-grid { grid-template-columns: 1fr; }
  .modal-view-footer { justify-content: stretch; }
  .modal-view-footer .btn { flex: 1 1 45%; }
}

@media (max-width: 576px) {
  .hero-section { padding: 100px 0 60px; }
  .hero-title { font-size: 1.6rem; }
  .content-section { padding: 30px 0 60px; }
  .filters-bar { padding: 16px; }
  .rel-card-footer { flex-direction: column; }
  .rel-card-footer .btn { flex: none; }
}
