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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > .card {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* TOPO */
.top-bar {
  background-color: #f97316;
  color: #fff;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px; /* antes era 14px */
}


.logo-circle {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 6px;
  height: 48px;
  width: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-circle img {
  height: 44px;
  width: 44px;
}
.logo-text {
  font-weight: bold;
  font-size: 20px;
  margin-left: 10px;
}
.left-logo {
  display: flex;
  align-items: center;
}
.right-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.user-badge {
  background-color: #fff;
  color: #f97316;
  border-radius: 50%;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 13px;
}
.dropdown-arrow {
  font-size: 20px;
}
.user-menu {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background-color: #fff;
  color: #333;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  z-index: 1000;
}
.user-menu a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
.user-menu a:hover {
  background-color: #f3f4f6;
}

.consent-label {
  font-size: 16px; /* ou maior, se quiser */
  color: #111; /* opcional, para reforçar contraste */
  display: flex;
  align-items: center;
  gap: 8px; /* espaço entre checkbox e texto */
  margin-top: 20px;
}

/* CONTAINER */
.card {
  max-width: 50%;
  margin: 0; /* remove auto margin */
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  background: #fff;
  border-radius: 12px;
  padding: 30px 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.card h2 {
  font-size: 28px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 12px;
}

.card p {
  font-size: 20px;
  color: #555;
  margin-bottom: 20px;
}

.main-wrapper {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap; /* Para quebrar no mobile */
  margin: 30px auto;
  max-width: 1100px;
  padding: 16px 16px;
}

/* Card já está estilizado, não precisa mudar */

.info-box {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  flex: 1;
}

.info-box h3 {
  font-size: 18px;
  color: #1e293b;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 20px;
  color: #333;
}

.info-icon {
  font-size: 16px;
  color: #f97316;
  margin-top: 2px;
}

.info-box a {
  color: #f97316;
  text-decoration: none;
}

.info-box a:hover {
  text-decoration: underline;
}

.main-flex-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}


/* ALERTA */
.alert {
  background-color: #fff7ed;
  border-left: 4px solid #fb923c;
  padding: 12px 16px;
  font-size: 15px;
  color: #92400e;
  border-radius: 8px;
  margin-bottom: 20px;
}

.status-box {
  padding: 12px 16px;
  font-size: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Default (nenhum documento ou status null) — cinza */
.status-default {
  background-color: #f3f4f6;
  border-left: 4px solid #9ca3af;
  color: #374151;
}

/* Pendente — amarelo */
.status-pendente {
  background-color: #fef9c3;
  border-left: 4px solid #facc15;
  color: #92400e;
}

/* Deferido — verde */
.status-deferido {
  background-color: #dcfce7;
  border-left: 4px solid #22c55e;
  color: #065f46;
}

/* Indeferido — vermelho */
.status-indeferido {
  background-color: #fee2e2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

.status-unip {
  background-color: #ffff93;
  border-left: 4px solid #991b1b;
  color: #051536;
}


/* DROPZONE */
.upload-box {
  margin-top: 16px;
}

.upload-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.upload-consent {
  margin-bottom: 12px;
  font-size: 20px;
  color: #333;
}

.upload-consent input[type="checkbox"] {
  margin-right: 5px;
  transform: scale(1.5);
}

.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 40px 20px;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.3s ease;
}

.drop-zone.dragover {
  border-color: #f97316;
  border-style: dashed;
  background-color: #fffefb;
}

/* BOTÃO SELECIONAR */
.btn-file {
  display: inline-block;
  background-color: #f97316;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
  font-size: 20px;
  border: none;
}
.btn-file:hover {
  background-color: #ea580c;
}

/* ARQUIVO SELECIONADO */
.file-preview {
  margin-top: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  background-color: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
}

.file-preview .remove-btn {
  border: none;
  background: transparent;
  color: #f87171;
  font-size: 16px;
  cursor: pointer;
}

/* BOTÃO ENVIAR */
.send-btn {
  background-color: #f97316;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 24px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.send-btn:disabled {
  background-color: #fcd9b1;
  color: #fff;
  cursor: not-allowed;
}
.send-btn:hover:not(:disabled) {
  background-color: #ea580c;
}

.disabled-btn {
  opacity: 0.5;
  cursor: not-allowed;
}

#popup-sucesso {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
  }

/* STATUS CONCLUÍDO */
.popup-sucesso-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-sucesso-box {
  margin: 30px;
  background: #fff;
  padding: 30px;
  max-width: 400px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.popup-sucesso-box h3 {
  margin-top: 0;
  color: #16a34a;
}

.popup-sucesso-box p {
  margin: 10px 0;
  color: #444;
}

.popup-sucesso-box button {
  margin-top: 15px;
  background-color: #16a34a;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.popup-sucesso-box button:hover {
  background-color: #15803d;
}

/* POP UP ERRO */
#popup-errp {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
  }

/* STATUS CONCLUÍDO */
.popup-erro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-erro-box {
  margin: 30px;
  background: #fff;
  padding: 30px;
  max-width: 400px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.popup-erro-box h3 {
  margin-top: 0;
  color: #a31616;
}

.popup-erro-box p {
  margin: 10px 0;
  color: #444;
}

.custom-file-btn {
  background-color: #f97316;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
}
.custom-file-btn:hover {
  background-color: #fb923c;
}

.popup-erro-box button {
  margin-top: 15px;
  background-color: #b51818;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.popup-erro-box button:hover {
  background-color: #a31616;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.custom-file-btn {
  background-color: #f97316;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
}
.custom-file-btn:hover {
  background-color: #fb923c;
}
.file-name {
  margin-top: 10px;
  font-style: italic;
  color: #444;
}


/* RODAPÉ */
.footer-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 10px;
}
.logo-footer {
  max-height: 60px;
  width: auto;
}

.footer-brasao {
  display: flex;
  justify-content: center;
  margin: 24px 0 0;
}

.footer-brasao img {
  max-height: 60px;
  width: auto;
  opacity: 1;
}

.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer {
  background-color: #1e293b;
  color: #d1d5db;
  padding: 16px 32px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}

.footer a:hover {
  color: #f97316;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo-icon {
  height: 50px;
  margin-right: 8px;
}

/* Responsivo: no mobile, o card ocupa até 85% da tela */
@media (max-width: 768px) {

  .info-box {
    padding: 15px;
  }
  
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-left,
  .footer-right {
    justify-content: center;
    flex-direction: column;
    gap: 6px;
  }

  .footer a {
    margin-left: 0;
    margin-right: 0;
  }

  .card {
    max-width: 85%;
    padding: 24px 16px;
  }
  
  .user-name{
  display: none;
}

  .card {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }
}