/* ==========================================================================
   CSS Core - Portal do Processo Seletivo PPGPsi/UFSCar 2027
   ========================================================================== */

/* Importação de Fontes Oficiais e Modernas */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  /* Paleta de Cores Oficial e Premium */
  --primary-color: #0081BD;       /* Azul predominante oficial */
  --primary-hover: #006090;       /* Azul escuro para interações */
  --secondary-color: #008060;     /* Verde institucional UFSCar para detalhes/destaques */
  --secondary-hover: #005c44;     /* Verde hover */
  --text-dark: #333333;           /* Cor principal do texto para boa legibilidade */
  --text-medium: #555555;         /* Texto secundário */
  --text-light: #777777;          /* Detalhes de texto */
  --bg-site: #fafafa;             /* Fundo do site confortável para leitura */
  --bg-card: #ffffff;             /* Fundo dos painéis e cards */
  --border-color: #e2e8f0;        /* Cor suave de bordas */
  
  /* Sistema de Grid e Espaçamento */
  --max-width: 1200px;
  --transition-fast: all 0.2s ease-in-out;
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.03), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Reset Geral e Acessibilidade */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-site);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* Foco Visível para Teclado (Acessibilidade) */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ==========================================================================
   CABEÇALHO INSTITUCIONAL (Fidelidade Absoluta)
   ========================================================================== */

#content-header {
  background-color: #ffffff;
  border-bottom: 4px solid var(--secondary-color);
  position: relative;
  width: 100%;
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

/* Linha com Diagonal Azul Superior e Selo CAPES */
#content-header .header-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

#content-header .dark-decor {
  background: var(--primary-color);
  height: 140px;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0.05; /* Fundo suave */
  display: block;
}

/* Layout do Portal Header */
.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 140px;
}

/* Brasão e Identidade à Esquerda */
.header-branding {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.logo-ppgpsi {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}

.header-branding:hover .logo-ppgpsi {
  transform: scale(1.02);
}

.branding-text {
  display: flex;
  flex-direction: column;
}

.branding-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #424143;
  line-height: 1.2;
  text-transform: uppercase;
}

.branding-text span {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 2px;
}

/* Logo da UFSCar à Direita */
.logo-ufscar-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-ufscar {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Destaque CAPES 7 */
.capes-badge {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  animation: gentle-pulse 3s infinite ease-in-out;
}

.capes-logo-img {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   MENU DE NAVEGAÇÃO HORIZONTAL
   ========================================================================== */

.nav-wrapper {
  background-color: var(--primary-color);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-menu {
  display: flex;
  width: 100%;
}

.menu-item {
  flex: 1;
  text-align: center;
}

.menu-link {
  display: block;
  padding: 18px 10px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 4px solid transparent;
  transition: var(--transition-fast);
  text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.menu-link:hover, 
.menu-link:focus {
  background-color: var(--primary-hover);
  color: #ffffff;
  border-bottom-color: var(--secondary-color);
}

.menu-link.active {
  background-color: var(--primary-hover);
  border-bottom-color: var(--secondary-color);
  font-weight: 600;
}

/* Hamburguer para Mobile */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  padding: 15px;
  cursor: pointer;
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL (SPA)
   ========================================================================== */

#app-content {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 15px;
  min-height: 500px;
}

/* Efeito de fade-in para as transições de visualização */
.view-section {
  animation: fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.section-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #424143;
  margin: 25px 0 15px 0;
}

.lead-text {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 25px;
}

/* ==========================================================================
   PÁGINA 1: EDITAL (Visualizador Integrado)
   ========================================================================== */

.pdf-viewer-container {
  position: relative;
  width: 100%;
  height: 650px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 25px;
  background-color: #525659; /* Cor padrão do fundo do leitor de PDF */
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

/* ==========================================================================
   PÁGINA 2: FORMULÁRIOS
   ========================================================================== */

.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.form-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.form-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.form-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #ebf8ff;
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.form-badge.anexo {
  background-color: #e6fffa;
  color: var(--secondary-color);
}

.form-badge.recurso {
  background-color: #fffaf0;
  color: #dd6b20;
}

.form-badge.isencao {
  background-color: #faf5ff;
  color: #805ad5;
}

.form-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.form-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 20px;
  flex-grow: 1;
}

.form-card-footer {
  display: flex;
  gap: 10px;
}

.form-card .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   PÁGINA 3: MINHA INSCRIÇÃO (Dashboard Seguro)
   ========================================================================== */

.security-lock-container {
  max-width: 500px;
  margin: 40px auto;
  text-align: center;
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.lock-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.security-lock-container h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 10px;
}

.security-lock-container p {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.validation-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.input-label {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.text-input {
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition-fast);
  text-transform: uppercase;
}

.text-input::placeholder {
  text-transform: none;
}

.text-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.validation-error-msg {
  color: #e53e3e;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 10px;
  display: none;
}

/* Spinner de Carregamento */
.loader-spinner {
  display: none;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 129, 189, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  margin: 20px auto;
  animation: spin 1s linear infinite;
}

/* Dashboard do Candidato */
.candidate-dashboard {
  display: none;
  margin-top: 20px;
}

.dashboard-header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 25px 30px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.candidate-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.dashboard-body {
  padding: 30px;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background-color: #ffffff;
}

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

.info-item {
  background-color: var(--bg-site);
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 5px;
}

.info-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.green { background-color: var(--secondary-color); }
.status-dot.yellow { background-color: #dd6b20; }
.status-dot.red { background-color: #e53e3e; }

/* Checklist de Documentos e Notas */
.dashboard-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

@media (max-width: 768px) {
  .dashboard-sections {
    grid-template-columns: 1fr;
  }
}

.dash-box {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  background-color: #ffffff;
}

.dash-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #424143;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.doc-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.9rem;
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-ok { color: var(--secondary-color); font-weight: 600; }
.doc-pending { color: #dd6b20; font-weight: 600; }
.doc-error { color: #e53e3e; font-weight: 600; }

.grades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.grades-table th, .grades-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.grades-table th {
  font-weight: 700;
  color: var(--text-light);
}

.logout-container {
  margin-top: 25px;
  text-align: right;
}

/* ==========================================================================
   PÁGINA 4: RESULTADOS (Timeline Cronológica)
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 31px;
}

.timeline-item {
  padding: 10px 30px 10px 70px;
  position: relative;
  background-color: inherit;
  width: 100%;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  left: 23px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 4px solid var(--primary-color);
  z-index: 1;
  top: 15px;
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: scale(1.2);
}

.timeline-content {
  padding: 20px;
  background-color: #ffffff;
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 6px;
  display: block;
}

.timeline-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 15px;
}

.timeline-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 6px 12px;
  background-color: #ebf8ff;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.timeline-download-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* ==========================================================================
   PÁGINA 5: SOBRE O PPGPSI
   ========================================================================== */

.info-hero {
  background: linear-gradient(135deg, #0081bd 0%, #004666 100%);
  color: #ffffff;
  padding: 30px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.info-hero-text h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-hero-text p {
  opacity: 0.9;
  font-size: 0.95rem;
}

.lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.line-card {
  background-color: var(--bg-site);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition-fast);
}

.line-card:hover {
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.line-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.line-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  min-height: 48px;
}

.line-card p {
  font-size: 0.85rem;
  color: var(--text-medium);
}

.faculty-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-top: 30px;
}

.faculty-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.faculty-name {
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 6px 10px;
  background-color: var(--bg-site);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-color);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 25px;
}

@media (max-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  background-color: var(--bg-site);
}

.contact-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* ==========================================================================
   RODAPÉ (Footer)
   ========================================================================== */

#content-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 15px;
  margin-top: 60px;
  border-top: 6px solid var(--secondary-color);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-branding {
  display: flex;
  flex-direction: column;
}

.footer-branding h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-branding p {
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: #ecf0f1;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-link:hover {
  color: #ffffff;
  opacity: 1;
  text-decoration: underline;
}

/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes gentle-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.5);
  }
}

/* ==========================================================================
   RESPONSIVIDADE (Ajustes de Mídia)
   ========================================================================== */

@media (max-width: 991px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 15px;
  }
  
  .header-branding {
    flex-direction: column;
    gap: 10px;
  }
  
  .logo-ufscar-container {
    justify-content: center;
  }
  
  .nav-container {
    position: relative;
    padding: 0;
  }
  
  .mobile-menu-btn {
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .main-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary-color);
  }
  
  .main-menu.open {
    display: flex;
  }
  
  .menu-item {
    width: 100%;
  }
  
  .menu-link {
    text-align: left;
    padding: 15px 20px;
    border-bottom: none;
    border-left: 4px solid transparent;
  }
  
  .menu-link:hover, .menu-link.active {
    border-left-color: var(--secondary-color);
    background-color: var(--primary-hover);
  }
  
  #app-content {
    margin: 20px auto;
  }
  
  .section-card {
    padding: 20px;
  }
  
  .pdf-viewer-container {
    height: 450px;
  }
}

@media (max-width: 576px) {
  .branding-text h1 {
    font-size: 1.1rem;
  }
  
  .branding-text span {
    font-size: 0.75rem;
  }
  
  .logo-ppgpsi {
    height: 60px;
  }
  
  .logo-ufscar {
    height: 45px;
  }
  
  .capes-badge {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
  
  .forms-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::after {
    left: 21px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-dot {
    left: 13px;
  }
}

/* ==========================================================================
   APRIMORAMENTOS GOOGLE WORKSPACE E PORTAL PERSONALIZADO
   ========================================================================== */

/* Divisor de Login Google vs Clássico */
.google-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 25px 0;
  font-weight: 500;
}

.google-or-divider::before,
.google-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.google-or-divider:not(:empty)::before {
  margin-right: 15px;
}

.google-or-divider:not(:empty)::after {
  margin-left: 15px;
}

/* Botão do Google Customizado */
.google-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

/* Widget do Perfil no Menu Sticky */
.user-nav-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: 15px;
  transition: var(--transition-fast);
}

.user-nav-profile:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.user-nav-profile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.user-nav-name {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout-nav {
  background: none;
  border: none;
  color: #ffffff;
  opacity: 0.8;
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.btn-logout-nav:hover {
  opacity: 1;
  color: #ff8a8a;
  transform: scale(1.1);
}

/* Ajustes Responsivos do Perfil no Menu Mobile */
@media (max-width: 991px) {
  .user-nav-profile {
    margin: 15px;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
  }
  .user-nav-name {
    color: var(--text-dark);
    max-width: none;
    flex-grow: 1;
    margin-left: 10px;
  }
  .btn-logout-nav {
    color: var(--text-dark);
  }
}

/* ==========================================================================
   NOVA SEÇÃO: CORPO DOCENTE
   ========================================================================== */

/* Barra de Filtros */
.docente-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 25px 0 35px 0;
}

.filter-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.filter-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

/* Grid de Docentes */
.docentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

@media (max-width: 576px) {
  .docentes-grid {
    grid-template-columns: 1fr;
  }
}

.docente-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 25px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.docente-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

.docente-card.linha-1::before { background-color: #0081BD; }
.docente-card.linha-2::before { background-color: #008060; }
.docente-card.linha-3::before { background-color: #e53e3e; }
.docente-card.linha-4::before { background-color: #dd6b20; }

.docente-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.docente-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.docente-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
  background-color: #edf2f7;
}

.docente-card:hover .docente-avatar {
  transform: scale(1.05);
}

.docente-title-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.docente-title-group h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.docente-orientation {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  margin-top: 3px;
  letter-spacing: 0.5px;
}

.docente-card-body {
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.docente-detail {
  font-size: 0.85rem;
  color: var(--text-medium);
  line-height: 1.4;
}

.docente-detail strong {
  color: var(--text-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.docente-card-footer {
  display: flex;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.btn-docente-contact {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition-fast);
}

.btn-docente-contact.email {
  background-color: #ebf8ff;
  color: var(--primary-color);
}

.btn-docente-contact.email:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-docente-contact.lattes {
  background-color: #e6fffa;
  color: var(--secondary-color);
}

.btn-docente-contact.lattes:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
}

/* ==========================================================================
   DASHBOARD IMERSIVO E BARRA DE PROGRESSO
   ========================================================================== */

/* Banner Principal de Boas-vindas */
.candidate-profile-banner {
  background: linear-gradient(135deg, #0081BD 0%, #004666 100%);
  color: #ffffff;
  padding: 30px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.candidate-large-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-md);
}

.candidate-header-details {
  display: flex;
  flex-direction: column;
}

.candidate-header-details h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.candidate-header-details span {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 3px;
}

/* Rastreador de Progresso (Barra Dinâmica) */
.candidate-progress-tracker {
  display: flex;
  justify-content: space-between;
  margin: 35px 0;
  position: relative;
  padding: 0 15px;
}

.candidate-progress-tracker::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 45px;
  right: 45px;
  height: 4px;
  background-color: var(--border-color);
  z-index: 1;
}

.candidate-progress-line-fill {
  position: absolute;
  top: 14px;
  left: 45px;
  height: 4px;
  background-color: var(--secondary-color);
  z-index: 2;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 70px;
}

.progress-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.progress-step.completed .progress-step-dot {
  border-color: var(--secondary-color);
  background-color: var(--secondary-color);
  color: #ffffff;
}

.progress-step.active .progress-step-dot {
  border-color: var(--primary-color);
  background-color: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 129, 189, 0.15);
}

.progress-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  margin-top: 8px;
  text-align: center;
  max-width: 80px;
  line-height: 1.2;
}

.progress-step.completed .progress-step-label,
.progress-step.active .progress-step-label {
  color: var(--text-dark);
}

@media (max-width: 576px) {
  .candidate-progress-tracker::before {
    left: 25px;
    right: 25px;
  }
  .candidate-progress-line-fill {
    left: 25px;
  }
  .progress-step {
    width: 50px;
  }
  .progress-step-label {
    font-size: 0.65rem;
    max-width: 60px;
  }
}

