@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;900&display=swap');

/* Estilos gerais */
:root {
  --primary-color: #2d388a;
  --secondary-color: #e13a3e;
  --accent-color: #ffcb2b;
  --danger-color: #dc3545;
  --success-color: #28a745;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --border-radius: 8px;
  --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
  --font-primary: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Cabeçalho */
header {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 60%, var(--accent-color) 100%);
  color: white;
  padding: 1.5rem 0;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 0;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--box-shadow);
  animation: slideIn 0.3s ease;
}

.modal-header {
  background: var(--primary-color);
  color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-weight: 600;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  opacity: 0.7;
}

.modal-body {
  padding: 2rem;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Formulário */
.form-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(45, 56, 138, 0.15);
  padding: 3rem;
  margin: 2rem 0;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(45, 56, 138, 0.2);
}

.form-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 900;
  font-size: 2.5rem;
}

.form-subtitle {
  text-align: center;
  color: var(--gray-color);
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.form-subtitle strong {
  color: var(--secondary-color);
  font-weight: 700;
}

.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(45, 56, 138, 0.1);
}

.form-section-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--dark-color);
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-primary);
}

.form-control:focus {
  border-color: var(--primary-color);
  background: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 56, 138, 0.1);
  transform: translateY(-1px);
}

.form-control[readonly] {
  background-color: #f8f9fa;
  opacity: 1;
  cursor: not-allowed;
}

/* Autocomplete de Escolas */
.escola-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--primary-color);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.escola-suggestions.active {
  display: block;
}

.escola-suggestion-item {
  padding: 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
  transition: background-color 0.2s;
  font-family: var(--font-primary);
}

.escola-suggestion-item:hover,
.escola-suggestion-item.selected {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.escola-suggestion-item:last-child {
  border-bottom: none;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
}

.form-col {
  flex: 1;
  padding: 0 10px;
  min-width: 250px;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--danger-color);
  font-weight: 500;
}

.is-invalid {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Botões */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-primary);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  box-shadow: 0 4px 15px rgba(45, 56, 138, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 56, 138, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--gray-color), #5a6268);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268, var(--gray-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

/* Seção de pagamento */
.payment-container {
  display: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(45, 56, 138, 0.15);
  padding: 2.5rem;
  margin: 2rem 0;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.payment-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 2rem;
}

.payment-info {
  margin-bottom: 2rem;
}

.payment-amount {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1rem 0;
}

.payment-status-section {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(245, 247, 250, 0.8);
  border-radius: var(--border-radius);
  border: 1px solid rgba(45, 56, 138, 0.1);
}

.payment-check-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  width: 100%;
}

.pagamento-status {
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    max-width: 500px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.qrcode-container {
  margin: 2rem 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qrcode-img {
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 3px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 15px;
  background: white;
  box-shadow: 0 8px 25px rgba(45, 56, 138, 0.2);
}

.pix-code-section {
  margin: 2rem 0;
  text-align: center;
}

.pix-code-display {
  margin: 1rem auto;
  padding: 1.5rem;
  max-width: 700px;
  background: rgba(245, 247, 250, 0.9);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  word-break: break-all;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--dark-color);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.copy-pix-button {
  background: linear-gradient(135deg, var(--accent-color), #e0a800);
  color: var(--dark-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  margin-top: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 203, 43, 0.3);
}

.copy-pix-button:hover {
  background: linear-gradient(135deg, #e0a800, var(--accent-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 203, 43, 0.4);
}

/* Seção de comprovante */
.receipt-container {
  display: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.15);
  padding: 2.5rem;
  margin: 2rem 0;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.receipt-title {
  color: var(--success-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 2rem;
}

.receipt-info {
  margin-bottom: 2rem;
}

/* Rodapé */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.footer-title {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: white;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
  .form-container {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }
  
  .form-title {
    font-size: 2rem;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-col {
    margin-bottom: 1rem;
    min-width: auto;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  .qrcode-img {
    max-width: 200px;
    padding: 10px;
  }
  
  .payment-container {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }
  
  .pix-code-display {
    padding: 1rem;
    font-size: 0.8rem;
    max-width: 100%;
  }
  
  .copy-pix-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .payment-amount {
    font-size: 2.5rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

/* Spinner de carregamento */
.spinner {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 0.3rem solid rgba(45, 56, 138, 0.15);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  border-right-color: var(--secondary-color);
  animation: spin 1s linear infinite;
}

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

/* Loadings específicos para área administrativa */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    border: 2px solid #e9ecef;
}

.loading-container p {
    margin-top: 1rem;
    font-weight: 500;
    color: #495057;
    text-align: center;
}

/* Container de mensagens fixo */
#admin-alert-messages {
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#admin-alert-messages .alert {
    margin-bottom: 0;
    border: none;
    border-radius: 6px;
}

/* Loading Overlay - Fixo na tela */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  text-align: center;
}

.loading-overlay.active {
  display: flex;
}

.loading-overlay p {
  margin-top: 1.5rem;
  color: var(--gray-color);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Mensagens de alerta */
.alert {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  border-left: 4px solid;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

/* Melhorar visibilidade dos alertas */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Estilos para indicadores de status de pagamento */
.status-pendente {
    background-color: #fff3cd;
    border-left-color: var(--accent-color);
    color: #856404;
}

.status-recebido, .status-confirmado {
    background-color: #d4edda;
    border-left-color: var(--success-color);
    color: #155724;
}

.status-vencido, .status-estornado {
    background-color: #f8d7da;
    border-left-color: var(--danger-color);
    color: #721c24;
}

.status-desconhecido {
    background-color: #e2e3e5;
    border-left-color: var(--gray-color);
    color: #383d41;
}

/* Estilos para o cartão de inscrição */
.cartao {
    font-family: var(--font-primary);
    width: 100%;
    max-width: 900px; /* Aumentado de 750px para 900px */
    margin: 20px auto; /* Aumentado margin top/bottom */
    padding: 30px; /* Aumentado de 2rem para 30px */
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(45, 56, 138, 0.15);
    font-size: 16px; /* Aumentado para melhor legibilidade */
    line-height: 1.5; /* Melhorado para facilitar leitura */
    text-align: left; /* Alinhamento geral à esquerda */
}

/* Estilos para iframe do cartão */
.cartao-iframe {
    width: 100%;
    max-width: 900px;
    height: 800px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(45, 56, 138, 0.15);
    margin: 20px auto;
    display: block;
    background-color: white;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    max-width: 250px;
}

.titulo {
    font-size: 2rem; /* Aumentado de 1.8rem */
    font-weight: 900;
    margin: 0.5rem 0;
    color: var(--primary-color);
}

.subtitulo {
    font-size: 1.4rem; /* Aumentado de 1.3rem */
    margin-top: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.info-container {
    display: block;
    margin-bottom: 1.5rem;
}

.info-container:not(.prova-container) {
    display: flex;
    gap: 1.5rem;
}

.info-section {
    flex: 1;
    padding: 1.5rem;
    border: 2px solid rgba(45, 56, 138, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    background: rgba(245, 247, 250, 0.5);
    text-align: left;
}

.info-section h2 {
    font-size: 1.1rem; /* Aumentado de 1rem */
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    text-align: left;
}

.info-row {
    display: flex;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.info-label {
    font-weight: 600;
    width: 140px;
    min-width: 140px;
    flex-shrink: 0;
    color: var(--dark-color);
    font-size: 14px; /* Especificado para consistência */
}

.info-value {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 14px; /* Especificado para consistência */
}

.nome-value {
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
    max-width: 350px; /* Aumentado de 300px */
    font-size: 14px;
}

.inscricao-numero {
    font-weight: 700;
    font-size: 1.2rem; /* Aumentado de 1.1rem */
    color: var(--primary-color);
}

.footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 3px solid var(--primary-color);
    text-align: left;
}

.instrucoes h3 {
    font-size: 1rem; /* Aumentado de 0.9rem */
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: left;
}

.instrucoes ul {
    margin: 0;
    padding-left: 1.5rem;
}

.instrucoes li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem; /* Aumentado de 0.8rem */
    line-height: 1.4;
}

/* Garantir alinhamento à esquerda para todas as seções do cartão (exceto header) */
.cartao .info-container,
.cartao .info-section,
.cartao .info-row,
.cartao .instrucoes,
.cartao .footer {
    text-align: left !important;
}

/* Manter header centralizado */
.cartao .header {
    text-align: center;
}

.receipt-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

/* Impressão */
@media print {
  body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    background: white;
  }
  
  body * {
    visibility: hidden;
  }
  
  .cartao, .cartao * {
    visibility: visible;
  }
  
  .cartao {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem;
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    background: white;
    box-sizing: border-box;
    page-break-inside: avoid;
  }
  
  .receipt-actions {
    display: none;
  }
  
  header, footer {
    display: none;
  }
}

/* Estilo para botão de verificar pagamento */
#check-payment-button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  margin: 1rem auto 0 auto;
  transition: var(--transition);
  display: block;
  text-align: center;
  box-shadow: 0 4px 15px rgba(45, 56, 138, 0.3);
  min-width: 200px;
}

#check-payment-button:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 56, 138, 0.4);
}

/* Contador de tempo */
#contador-tempo {
  animation: fadeIn 0.5s ease-in-out;
  border-left: 4px solid #007bff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.95);
}

#contador-tempo h5 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

#contador-tempo .time-display {
  font-size: 1.8em;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Seção de pagamento expirado */
#expired-payment-section {
  animation: fadeIn 0.5s ease-in-out;
  border-left: 4px solid var(--accent-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.95);
}

#expired-payment-section h4 {
  color: #856404;
  margin-bottom: 1rem;
}

#gerar-novo-pagamento {
  font-size: 1.1em;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(45, 56, 138, 0.3);
  transition: var(--transition);
  border: none;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 600;
  margin-top: 2rem;
}

#gerar-novo-pagamento:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 56, 138, 0.4);
}

/* Animações de estado do contador */
.alert-info {
  border-left-color: #17a2b8;
}

.alert-warning {
  border-left-color: var(--accent-color);
  animation: pulse 2s infinite;
}

.alert-danger {
  border-left-color: var(--danger-color);
  animation: urgent-pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes urgent-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(220, 53, 69, 0.4);
  }
}

/* Responsividade para o cartão */
@media (max-width: 768px) {
  .cartao {
    padding: 20px; /* Mantido tamanho adequado para mobile */
    margin: 15px auto; /* Ajustado para mobile */
    max-width: 95%; /* Aproveitamento máximo da tela */
    font-size: 15px; /* Tamanho de fonte adequado para mobile */
  }

  .cartao-iframe {
    max-width: 95%;
    height: 700px; /* Ajustado para mobile */
    margin: 15px auto;
  }

  .info-container:not(.prova-container) {
    flex-direction: column;
    gap: 1rem;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-label {
    width: auto;
    min-width: auto;
    margin-bottom: 0.25rem;
    font-size: 13px; /* Mantido legível em mobile */
  }

  .info-value {
    font-size: 13px; /* Mantido legível em mobile */
  }

  .nome-value {
    max-width: none;
    font-size: 13px;
  }

  .titulo {
    font-size: 1.6rem; /* Reduzido mas ainda adequado */
  }

  .subtitulo {
    font-size: 1.2rem; /* Reduzido mas ainda adequado */
  }

  .logo-img {
    height: 36px;
  }

  .info-section h2 {
    font-size: 0.95rem; /* Mantido legível */
  }

  .instrucoes h3 {
    font-size: 0.9rem; /* Mantido legível */
  }

  .instrucoes li {
    font-size: 0.8rem; /* Mantido legível */
  }
}

/* Estilos para página de resultados */
.resultado-nao-divulgado {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.resultado-nao-divulgado .icone {
    font-size: 4rem;
    color: #ffa500;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.resultado-nao-divulgado h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.resultado-nao-divulgado p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.resultado-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #0056b3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resultado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.resultado-card.aprovado {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
}

.resultado-card.nao-aprovado {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #f5e8e8 100%);
}

.resultado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.resultado-nome {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.resultado-turma {
    font-size: 1rem;
    color: #666;
    margin: 0.5rem 0 0 0;
}

.resultado-desconto {
    font-size: 2rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    min-width: 80px;
    text-align: center;
}

.resultado-desconto.excelente {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    animation: pulse-green 2s infinite;
}

.resultado-desconto.bom {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.resultado-desconto.basico {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

.resultado-desconto.nao-aprovado,
.resultado-desconto.nao_aprovado {
    background: #ffffff;
    color: #dc3545;
    border: 3px solid #dc3545;
    font-weight: 900;
}

/* Estilos para quantidade de acertos */
.resultado-acertos {
    margin: 1rem 0;
    text-align: center;
}

.acertos-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.acertos-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.acertos-valor {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    min-width: 30px;
    text-align: center;
}

.acertos-valor.excelente {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.acertos-valor.bom {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.acertos-valor.basico {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
}

.acertos-valor.nao-aprovado,
.acertos-valor.nao_aprovado {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.resultado-mensagem {
    text-align: center;
    margin: 1.5rem 0;
}

.resultado-mensagem .mensagem-principal {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.resultado-mensagem .submensagem {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.whatsapp-section {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1.5rem;
}

.whatsapp-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #25d366;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    font-size: 1rem;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #25d366;
    text-decoration: none;
}

.whatsapp-icon {
    font-size: 1.2rem;
}

.resultados-lista {
    margin-top: 2rem;
}

.resultado-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.resultado-stats h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.resultado-stats p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.nenhum-resultado {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-radius: 15px;
    border: 2px dashed #fc8181;
    margin: 2rem 0;
}

.nenhum-resultado .icone {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 1rem;
}

.nenhum-resultado h3 {
    color: #e53e3e;
    margin-bottom: 1rem;
}

.nenhum-resultado p {
    color: #744210;
    font-size: 1.1rem;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Responsividade para resultados */
@media (max-width: 768px) {
    .resultado-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .resultado-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .resultado-nome {
        font-size: 1.2rem;
    }
    
    .resultado-desconto {
        font-size: 1.5rem;
        align-self: center;
        margin-top: 1rem;
    }
    
    .resultado-mensagem .mensagem-principal {
        font-size: 1.1rem;
    }
    
    .whatsapp-section {
        padding: 1rem;
    }
    
    .whatsapp-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .resultado-nao-divulgado {
        padding: 2rem 1rem;
    }
    
    .resultado-nao-divulgado .icone {
        font-size: 3rem;
    }
    
    .resultado-nao-divulgado h2 {
        font-size: 1.5rem;
    }
    
    .acertos-info {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .acertos-label {
        font-size: 0.8rem;
    }
    
    .acertos-valor {
        font-size: 1rem;
    }
}

/* Classe utilitária */
.text-center {
    text-align: center;
}

/* Estilos para lista de alunos (busca por responsável) */
.alunos-lista {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.aluno-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.aluno-card:hover {
  border-color: #4a90e2;
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.2);
  transform: translateY(-2px);
}

.aluno-info {
  flex: 1;
}

.aluno-nome {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.aluno-turma {
  font-size: 1rem;
  color: #666;
  margin: 0 0 0.25rem 0;
}

.aluno-cpf {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

.aluno-desconto {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin: 0 1rem;
  min-width: 60px;
  text-align: center;
}

.aluno-desconto.com-desconto {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.aluno-desconto.sem-desconto {
  background: #f8f9fa;
  color: #6c757d;
  border: 2px solid #dee2e6;
}

.ver-resultado {
  color: #4a90e2;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.ver-resultado span {
  font-size: 0.9rem;
}

.resultado-stats .instrucao {
  font-style: italic;
  color: #666;
  margin-top: 0.5rem;
}

/* Responsividade para cards de alunos */
@media (max-width: 768px) {
  .aluno-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .aluno-desconto {
    margin: 0;
    order: -1;
  }
  
  .ver-resultado {
    justify-content: center;
  }
}

/* Melhorias na área administrativa */
.admin-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  border: none;
  color: #212529;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #e0a800, #d39e00);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.admin-section .form-section {
  margin-bottom: 2rem;
}

.admin-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #dee2e6, transparent);
  margin: 2rem 0;
}

/* Modal de Login Administrativo */
.admin-login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.admin-login-content {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.admin-login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-login-header h3 {
  color: #1565c0;
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.admin-login-header p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

.admin-login-content .form-group {
  margin-bottom: 1.5rem;
}

.admin-login-content .btn-secondary {
  background: #6c757d;
  border-color: #6c757d;
  color: white;
  margin-top: 0.5rem;
}

.admin-login-content .btn-secondary:hover {
  background: #5a6268;
  border-color: #545b62;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Estilos para confirmação de ações */
.confirm-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.confirm-dialog .confirm-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.confirm-dialog h4 {
  color: #333;
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.confirm-dialog p {
  color: #666;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.confirm-actions .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  min-width: 120px;
}

/* Estilos para botão de download do edital */
.btn.btn-outline.btn-block[href*="edital-download"] {
    background: #fff;
    color: #0056b3;
    border: 2px solid #0056b3;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: none;
    transition: all 0.2s;
    text-align: center;
    display: block;
    width: 100%;
    margin: 0.5rem 0 0 0;
}

.btn.btn-outline.btn-block[href*="edital-download"]:hover {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

/* Responsividade para botão do edital */
@media (max-width: 768px) {
    .btn.btn-outline.btn-block[href*="edital-download"] {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }
}

/* Seção WhatsApp Unificada - Resultados */
.whatsapp-section-unificada {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.whatsapp-section-unificada h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #25d366;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-button:hover {
    background: white;
    color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.whatsapp-icon {
    font-size: 1.3rem;
}

/* Ajustes responsivos para WhatsApp unificado */
@media (max-width: 768px) {
    .whatsapp-section-unificada {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .whatsapp-section-unificada h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .whatsapp-button {
        padding: 14px 24px;
        font-size: 1rem;
        gap: 8px;
    }
}

/* Botão de fechar alerta */
.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    float: right;
    margin-left: 1rem;
}

.btn-close:hover {
    opacity: 1;
}