/* styles.css */

html, body {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   LOADING CONTAINER
   ============================================= */
#loading-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 668px;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  z-index: 9999;
}

/* =============================================
   LOADING DIALOG — card central com gif + progresso
   ============================================= */
.loading-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;       /* ✅ centraliza tudo horizontalmente */
  justify-content: center;
  text-align: center;        /* ✅ centraliza textos */
  padding: 40px 32px;
  width: 100%;
  max-width: 420px;
  gap: 12px;
}

/* ✅ GIF reduzido */
.loading-dialog img {
  width: 140px;              /* era livre — agora limitado */
  height: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

/* Título "Iniciando Educare 360" */
.loading-text {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Mensagem de progresso "Carregando recursos..." */
.loading-subtext {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 20px;
}

/* Barra de progresso */
.progress-container {
  width: 100%;
  max-width: 280px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0175C2, #01a8e0);
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* Percentual "0%" */
.percentage {
  font-size: 12px;
  color: #94a3b8;
  font-family: system-ui, -apple-system, sans-serif;
  text-align: center;
}