/* =========================
   GENERAL (comum)
========================= */
:root {
  --primary-blue: #011c96;
  --secondary-green: #01961f;
  --dark-blue: #01125c;
  --light-gray: #f5f6fa;
  --text-main: #333;
  --gradient-brand: linear-gradient(135deg, #011c96 0%, #01961f 100%);
}

* , *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; height: auto; }
html, body { min-width: 320px; }

.sidebar {
  width: 260px;
  background: white;
  padding: 20px;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 15px rgba(0,0,0,0.02);
  z-index: 1001;
}

.sidebar .menu-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-blue);
  margin: 20px 0 30px 10px;
  font-weight: 800;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--light-gray);
  color: var(--text-main);
  scroll-behavior: smooth;
}

/* Novo Padrão Hero Section (Index e Internas) */
.hero-standard-layout {
  background: var(--gradient-brand);
  padding: 100px 20px 140px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
}

.hero-standard-layout h1 {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.2);
  letter-spacing: -1px;
}

.hero-standard-layout p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-standard-layout { padding: 60px 16px 80px; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; }
  .hero-standard-layout h1 { font-size: 2rem; }
  .hero-standard-layout p { font-size: 1rem; }
}

/* Novo Padrão Hero Mini */
.hero-mini-standard {
  background: var(--gradient-brand);
  padding: 80px 5% 100px;
  text-align: center;
  color: white;
  margin-bottom: -60px;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
}

.hero-mini-standard h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  letter-spacing: -1px;
}

.hero-mini-standard p {
  opacity: 0.9;
  font-size: 1.2rem;
}

/* Novo Padrão de Header Premium Unificado */
.header-premium {
  background: var(--dark-blue);
  height: 80px; /* Altura fixa para garantir uniformidade */
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  color: white;
  transition: transform 0.25s ease;
  will-change: transform;
}

.header-premium.is-hidden {
  transform: translateY(-110%);
}

.header-premium .logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.header-premium .logo-container img {
  height: 100px; /* Aumentado conforme solicitado */
  margin-top:20px;
  width: auto;
  transition: transform 0.3s ease;
}

.header-premium .logo-text {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -1px;
}

.header-premium nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-premium .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-premium .mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: white;
  cursor: pointer;
}

.header-premium .mobile-menu-icon {
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  display: block;
}

.header-premium .mobile-menu-icon::before,
.header-premium .mobile-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.header-premium .mobile-menu-icon::before { top: -6px; }
.header-premium .mobile-menu-icon::after { top: 6px; }

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1990;
}

.mobile-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 86vw;
  height: 100vh;
  background: var(--gradient-brand);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 18px;
  box-shadow: -16px 0 40px rgba(0,0,0,0.25);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.mobile-menu-title {
  font-weight: 900;
  color: white;
  font-size: 1rem;
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
}

.mobile-menu-links a {
  text-decoration: none;
  color: white;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
}

.mobile-menu-links a.active {
  background: rgba(255,255,255,0.24);
  border-color: rgba(255,255,255,0.34);
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-backdrop {
    display: none;
  }

  .header-premium {
    position: static;
    top: auto;
  }
}

@media (max-width: 768px) {
  .header-premium { padding: 0 5%; height: 64px; }
  .header-premium .logo-container img { height: 40px; margin-top: 0; }
  .header-premium .logo-text { font-size: 1.2rem; }
  .header-premium nav.nav-desktop { display: none; }
  .header-premium .mobile-menu-btn { display: inline-flex; }
}

.header-premium .btn-nav {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem; /* Tamanho de fonte fixo */
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(5px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}

.header-premium .btn-nav:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.3);
}

.header-premium .btn-nav.active {
  background: var(--secondary-green);
  border-color: var(--secondary-green);
  box-shadow: 0 4px 15px rgba(1, 150, 31, 0.3);
}

.header-premium .btn-status {
  background: white;
  color: var(--dark-blue);
  border-color: white;
}

.header-premium .btn-status:hover {
  background: #f1f5f9;
  color: var(--primary-blue);
  transform: translateY(-2px);
}

/* Novo Padrão de Rodapé Premium */
.footer-premium {
  background: var(--dark-blue);
  color: white;
  text-align: center;
  padding: 60px 20px;
  margin-top: 50px;
}

.footer-premium .footer-links {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-premium .footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-premium .footer-links a:hover {
  color: var(--secondary-green);
  transform: translateY(-2px);
}

.footer-premium .footer-contacts {
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.footer-premium .footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-premium .footer-contact-link:visited {
  color: rgba(255, 255, 255, 0.86);
}

.footer-premium .footer-contact-link:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.footer-premium .footer-contact-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.footer-premium .footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.footer-premium .footer-contact-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-premium .footer-copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-premium .footer-copyright strong {
  color: white;
}

.layout {
  display: flex;
  height: 100vh;
}

/* =========================
   LOGIN PAGE (prioridade: página de baixo)
========================= */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #0b1c6b;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(1, 150, 31, 0.22), transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(1, 28, 150, 0.28), transparent 42%),
    linear-gradient(135deg, #011c96 0%, #0b3b8d 45%, #01961f 100%);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo img {
  height: 150px; /* prioridade do CSS de baixo */
  object-fit: contain;
}

.auth-tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  color: #888;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.tab-btn:hover {
  color: #011c96;
}

.tab-btn.active {
  color: #011c96;
  border-bottom-color: #011c96;
}

.auth-form {
  display: none;
  animation: fadeIn 0.3s ease;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #444;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #011c96;
  outline: none;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: #011c96;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  margin-top: 10px;
}

.btn-primary:hover {
  background: #01125c;
}

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

@media (max-width: 768px) {
  .login-container { padding: 16px; }
  .login-card { padding: 28px 20px; }
  .login-logo img { height: 110px; }
  .login-body [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .login-body [style*="grid-column: span 2"] { grid-column: span 1 !important; }
  .payment-methods { flex-wrap: wrap !important; }
  .payment-method-card { flex: 1 1 140px !important; }
}

@media (max-width: 768px) {
  .pix-container,
  .boleto-container {
    margin: 20px auto !important;
    padding: 20px !important;
  }

  .actions {
    flex-wrap: wrap !important;
    padding: 0 16px;
  }

  .boleto-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .linha-digitavel {
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .boleto-body { grid-template-columns: 1fr !important; }
  .campo { border-right: none !important; }
}

/* =========================
   SIDEBAR (comum)
========================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 50px; /* retraída */
  background: #01961f;
  color: white;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 3px 0 12px rgba(0,0,0,0.30);
  overflow: hidden;
  transition: width 0.3s ease;
  z-index: 1000;
}

.sidebar:hover {
  width: 240px; /* expandida */
}

.menu-title {
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-bottom: 20px;
  margin-left: 17px;
}

.sidebar:hover .menu-title {
  opacity: 1;
}

.menu-item {
  padding: 12px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: 0.2s;
  white-space: nowrap;
  font-size: 0.95rem;
}

.menu-inicio img { width: 30px; margin-bottom: 2px; }
.menu-notas img { width: 25px; margin-bottom: 2px; }
.menu-simulados img { width: 25px; margin-bottom: 0px; }
.menu-historico img { width: 27px; margin-bottom: 0px; }
.menu-assinatura img { width: 25px; margin-bottom: 0px; } /* só existia na página de cima */
.menu-config img { width: 23px; margin-bottom: -3px; }

.menu-icon {
  font-size: 1.3rem;
  min-width: 1px;
  text-align: center;
}

.menu-text {
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.sidebar:hover .menu-text {
  opacity: 1;
}

.sidebar .menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 16px;
  color: #f1f1f1;
  text-align: left;
}

.sidebar .menu-item:hover {
  background-color: #ffffff81;
  border-radius: 6px;
}

.sidebar .menu-item:active {
  background-color: #d4d4d4;
}

.sidebar .link {
  text-decoration: none;
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    left: auto;
    height: auto;
    width: 100%;
    padding: 10px 12px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sidebar:hover { width: 100%; }

  .sidebar .menu-title { display: none; }
  .sidebar .menu-text { opacity: 1; }

  .sidebar .link {
    flex: 0 0 auto;
  }

  .sidebar .menu-item {
    width: auto;
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .content {
    margin-left: 0;
    overflow-y: visible;
  }

  header:not(.header-premium) {
    padding: 16px;
  }

  header:not(.header-premium) h1 {
    font-size: 1.25rem;
  }

  .banner-title {
    margin-left: 0;
    padding-left: 0;
    font-size: 1.6rem;
  }

  .container[style*="padding: 0 40px"] {
    padding: 0 16px 32px !important;
  }

  .payment-container {
    padding: 18px !important;
  }
}

/* =========================
   CONTENT + HEADER (comum)
========================= */
.content {
  flex: 1;
  overflow-y: auto;
  margin-left: 50px;
}

/* Mantém compatibilidade com páginas que usam <header> simples */
header {
  background: #01125c;
  color: white;
  padding: 20px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

header h1 {
  margin: 0;
  font-size: 1.6rem;
}

/* =========================
   HERO/BANNER (da página de cima)
   (não interfere na página de baixo)
========================= */
.hero {
  margin: 35px auto;
  max-width: 1100px;
  height: 250px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background-image: url("banner_melhorado.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.banner-title {
  max-width: 1100px;
  margin: 25px auto 0 auto;
  padding-left: 10px;
  margin-left: 83px;
  font-size: 2rem;
  font-weight: 700;
  color: #011c96;
}

.hero-overlay {
  background: #000000b3;
  padding: 20px 30px;
  border-radius: 10px;
  color: white;
  width: auto;
  max-width: 800px;
  margin: 0 auto;
}

.hero-overlay h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #ffdddd;
}

.hero-overlay p {
  font-size: 1.1rem;
  line-height: 1.5rem;
}

/* =========================
   CONTAINER + CARDS (comum)
========================= */
.objects {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 20px auto;
  padding: 30px 20px;
  gap: 20px;
}

.container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin-bottom: 40px;
}

.card h2 {
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.card-centralizado p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-centralizado ul li {
  color: #4e4d4d;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 10px;
}

/* Botão genérico (comum) */
.btn {
  background: #011c96;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
}

.btn:hover {
  background: #01125c;
}

/* btnsimulado: prioridade da página de cima (tinha visual completo) */
.btnsimulado {
  background: #011c96;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
  margin-left: 500px;
}

.btnsimulado:hover {
  background: #01125c;
}

@media (max-width: 768px) {
  .objects { padding: 20px 16px; }
  .container { padding: 0 16px; }
  .card { padding: 22px; margin-bottom: 28px; }

  .btnsimulado { margin-left: 0; width: 100%; }
}

/* =========================
   DASHBOARD (prioridade: página de baixo)
========================= */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 5px solid #011c96;
}

.stat-card h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #011c96;
  margin: 10px 0;
}

.stat-desc {
  font-size: 0.85rem;
  color: #888;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  height: 350px;
}

@media (max-width: 768px) {
  .charts-grid { grid-template-columns: 1fr; }
  .chart-container { height: 320px !important; }
}

.chart-container h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* DATA TABLE (prioridade: página de baixo) */
.table-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background-color: #f8f9fa;
  color: #555;
  font-weight: 600;
}

.data-table tr:hover {
  background-color: #f9f9f9;
}

/* Badges (prioridade: página de baixo) */
.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.badge-1 { background-color: #e3f2fd; color: #1565c0; }
.badge-2 { background-color: #e8f5e9; color: #2e7d32; }
.badge-3 { background-color: #fff3e0; color: #ef6c00; }
.badge-jr { background-color: #f3e5f5; color: #7b1fa2; }

/* =========================
   CARTÃO RESPOSTA / NOTAS / HISTÓRICO / CONFIG (comum)
========================= */
.resposta-section label {
  font-size: 1rem;
  margin-bottom: 8px;
  display: block;
}

.resposta-input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

select.resposta-input {
  background: #fff;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 10px;
}

select.resposta-input:hover {
  border-color: #b30000;
}

select.resposta-input:focus {
  border-color: #b30000;
  outline: none;
  box-shadow: 0 0 5px #b30000;
}

.historico-item {
  margin-bottom: 20px;
}

.historico-item .btn {
  margin-top: 10px;
}

table.notas-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

table.notas-table tr {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

table.notas-table tr td,
table.notas-table tr th {
  padding: 14px 18px;
}

/* Config blocks */
.config-block {
  background: white;
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  overflow: hidden;
}

.config-summary {
  padding: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  list-style: none;
}

.config-summary:hover {
  background: #f0f0f0;
}

.config-icon {
  font-size: 1.5rem;
  margin-right: 12px;
}

.config-block[open] .config-summary {
  background: #01125c;
  color: white;
}

.config-content {
  padding: 20px 25px 30px 25px;
  animation: fadeIn 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================
   ÁREA DO ALUNO (da página de cima)
   Mantido para seu HTML
========================= */
.student-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #01125c;
  color: white;
  padding: 22px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.student-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.student-header-logo {
  height: 64px;
}

.header-sub {
  font-size: 0.95rem;
  opacity: 0.85;
}

.student-header-right {
  display: flex;
  gap: 10px;
}

.header-pill {
  background: rgba(255,255,255,0.18);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.profile-card {
  grid-column: span 2;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #011c96;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.profile-details {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #e7ecff;
  color: #01125c;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.muted {
  color: #666;
  font-size: 0.95rem;
}

.progress {
  background: #e8ecf7;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #011c96, #01961f);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  background: #f5f7ff;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.check {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #e7ecff;
  color: #01125c;
  text-align: center;
  line-height: 22px;
  margin-right: 8px;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  border-left: 3px solid #011c96;
  padding-left: 12px;
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.notice {
  background: #f0f5ff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.notice-board {
  border: 1px solid #e3e8ff;
  background: linear-gradient(135deg, #ffffff 0%, #f6f8ff 100%);
}

.notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.notice-chip {
  background: #011c96;
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.notice-list {
  display: grid;
  gap: 12px;
}

.notice-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.notice-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e7ecff;
  color: #01125c;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.notice-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.notice-badge {
  background: #e7ecff;
  color: #01125c;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.notice-badge.warning {
  background: #fff3d6;
  color: #8a5a00;
}

.feature-card {
  border: 1px solid #e3e8ff;
  background: linear-gradient(135deg, #ffffff 0%, #f2f6ff 100%);
  position: relative;
  overflow: hidden;
}

/* Shadow effect removed */

.feature-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e7ecff;
  color: #011c96;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.feature-panel {
  background: #ffffff;
  border: 1px solid #e3e8ff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-title {
  font-weight: 700;
  color: #01125c;
  margin-bottom: 6px;
}

.feature-steps {
  display: grid;
  gap: 12px;
}

.feature-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e3e8ff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-step-number {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background-color:  #011c96;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.feature-timeline {
  display: grid;
  gap: 12px;
}

.feature-timeline-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  border-left: 4px solid #011c96;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-timeline-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #01125c;
}

.info-list {
  display: grid;
  gap: 10px;
}

.info-item {
  background: #f7f9ff;
  border-left: 4px solid #011c96;
  padding: 10px 12px;
  border-radius: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-tile {
  background: #ffffff;
  border: 1px solid #e3e8ff;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #01125c;
}

.student-cta {
  max-width: 1100px;
  margin: 0 auto 30px auto;
  padding: 0 20px;
}

.cta-card {
  border-left: 6px solid #011c96;
}

/* Botão de login (da página de cima) */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #8f98c2;
  background: #011c96;
  color: #ffffff;
  box-shadow: 0 3px 11px #102998;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-login-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.btn-login-icon svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.btn-login:hover {
  background: #2746cf;
  border-color: #2746cf;
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

/* =========================
   RESPONSIVO (área do aluno)
========================= */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-column: span 1;
  }

  .student-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-header-right {
    flex-wrap: wrap;
  }

  .notice-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   ANIMAÇÕES (1x só)
========================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
