body {
  font-family: Arial, sans-serif;
  background: #dcdcdc;

  margin: 0;
  padding: 0;
  color: #333;
}
header {
  background: linear-gradient(135deg, #5A2D82 0%, #7B3F9A 100%);
  color: white;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 0px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

h1 {
  margin: 0;
  font-size: 1.8em;
  font-weight: 600;
}

.header-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
  text-align: center;
  margin: 0 100px;
}

.title-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#curso-title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  opacity: 0.9;
}

.search-container {
  justify-content: center;
  padding: 20px 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;

}

#search-student {
  padding: 12px 16px;
  width: 100%;
  max-width: 700px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 16px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 0 auto;
  display: block;
}

#search-student:focus {
  outline: none;
  border-color: #5A2D82;
  box-shadow: 0 0 0 3px rgba(90, 45, 130, 0.1);
}
main {
  padding: 0px 0 32px 0;
  min-height: 60vh;
  background: #dcdcdc;
}
.card {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  border: 1.5px solid #ececec;
  border-radius: 16px;
  transition: box-shadow 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin: 5px auto 18px auto;
  max-width: 700px;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

/* Botões e destaques com o novo verde */
.card button {
  background: #76a618;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}
.card button:hover {
  background: #7bb317;
  transform: translateY(-1px);
}

/* Loading indicator */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #5A2D82;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

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

/* Rodapé */
.footer {
  background: #222;
  color: #fff;
  padding: 16px 0 12px 0;
  text-align: center;
  margin-top: 32px;
  border-top: 1px solid #e0e0e0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 0px 20px 0px;
}
.footer-content p{
  margin: 0;
  font-size: 14px;
}


.whatsapp-link {
  color: #25D366;
  text-decoration: none;
  font-weight: 400;
  padding: 8px 16px;
  border: 2px solid #25D366;
  border-radius: 20px;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.whatsapp-link:hover {
  background: #25D366;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.footer-icons {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}
.footer-icon svg {
  vertical-align: middle;
  transition: transform 0.2s;
}
.footer-icon:hover svg {
  transform: scale(1.12);
  filter: brightness(1.2);
}

/* Estilo específico para o ícone do WhatsApp */
.footer-icon[aria-label="WhatsApp"] {
  background: white;
  border-radius: 50%;
  padding: 4px;
  display: inline-block;
}
.footer-icon[aria-label="WhatsApp"] svg {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

/* Responsive design */
@media (max-width: 768px) {
  main {
    padding: 18px 0 18px 0;
  }
  .card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px;
    margin-bottom: 14px;
    max-width: 100%;
  }
  .card h3 {
    font-size: 1em;
    flex: 1;
    margin: 0;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
  }
  .card button, .card a {
    margin-left: 18px;
    min-width: 80px;
    flex-shrink: 0;
  }
  .footer, .footer-content {
    text-align: left;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .whatsapp-link {
    font-size: 14px;
    padding: 6px 12px;
  }
  .header-content {
    flex-direction: column;
    gap: 15px;
    padding: 0 12px;
    text-align: center;
    justify-content: center;
  }
  .header-info {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    position: relative;
    margin: 0;
  }
  .title-section {
    text-align: center;
  }
  #voltar-btn {
    position: static;
    margin-bottom: 15px;
    transform: none;
    top: auto;
    left: auto;
    min-width: auto;
  }
  .logo {
    height: 35px;
    order: -1;
  }
  h1 {
    font-size: 1.4em;
    text-align: center;
  }
 
  #search-student {
    max-width: 100%;
    margin: 0;
  }
  .footer {
    padding-left: 0;
    padding-right: 0;
  }
}

h1, h2 {
  margin-top: 0;
  margin-bottom: 0px;
}

h4 {
  padding: 0 0 10px 0;
  margin: 0;
}

#certificados-list{
  margin: 20px 0px 20px 0px;
}

.professor-info {
  background: linear-gradient(135deg, #6B3F9A 0%, #8B4FAA 100%);
  color: white;
  padding: 20px 0;
  text-align: center;
  position: relative;
  margin-bottom: 20px;
}

.professor-details {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.professor-details h2 {
  margin: 0 0 8px 0;
  font-size: 2em;
  font-weight: 600;
}

.professor-details h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 400;
  opacity: 0.9;
}

#voltar-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 10;
  min-width: 80px;
}
#voltar-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
  .professor-info {
    padding: 15px 0;
  }
  .professor-details {
    padding: 0 12px;
  }
  .professor-details h2 {
    font-size: 1.6em;
  }
  .professor-details h3 {
    font-size: 1em;
  }
  #voltar-btn {
    position: static;
    margin-bottom: 15px;
    transform: none;
    top: auto;
    left: auto;
    min-width: auto;
  }

/* Estilos para Estatísticas */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stats-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.stats-card h3 {
  margin: 0 0 15px 0;
  color: #5A2D82;
  font-size: 1.2em;
  border-bottom: 2px solid #95CF1D;
  padding-bottom: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.stat-number {
  font-size: 2em;
  font-weight: bold;
  color: #5A2D82;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
}

.stats-list {
  max-height: 300px;
  overflow-y: auto;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-name {
  font-weight: 500;
  color: #333;
  flex: 1;
}

.stat-count {
  background: #95CF1D;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  min-width: 30px;
  text-align: center;
}

.stat-info {
  flex: 1;
}

.stat-details {
  font-size: 0.8em;
  color: #666;
  margin-top: 2px;
}

.stat-time {
  font-size: 0.8em;
  color: #999;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .stat-count {
    align-self: flex-end;
  }
}