body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f2f5fa;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
}

.card, .resultado-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  width: 60px;
  margin-bottom: 10px;
}

h1, h2 {
  margin: 0 0 20px;
  color: #333;
}

input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 15px;
  outline: none;
}

* {
  box-sizing: border-box;
}

button {
  background-color: #397eff;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background-color: #2f6de0;
}

.resultado-grid {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.box {
  flex: 1;
  margin: 0 8px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.box p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.box strong {
  font-size: 17px; /* antes era 20px */
  color: #222;
  margin-top: 8px;
  white-space: nowrap; /* força tudo na mesma linha */
}

.progress-container {
  margin-top: 20px;
}

.progress-bar {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  height: 16px;
}

.progress-fill {
  background-color: #397eff;
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
}

.percent {
  margin-top: 8px;
  font-weight: bold;
  color: #333;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-link {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #397eff;
  border-radius: 8px;
  background: white;
  color: #397eff;
  transition: background 0.2s, color 0.2s;
}

.tab-link.active {
  background: #397eff;
  color: white;
}

.tab-link:hover {
  background-color: #2f6de0;
  color: white;
}

.tab-content {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loader animado */
.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #397eff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Formatação específica para aba Alterar Região */
.form-regiao .form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 15px;
}

.form-regiao .form-group label {
  margin-bottom: 6px;
  font-weight: bold;
  color: #2f6de0; /* azul escuro unificado */
  font-size: 15px;
}

.form-regiao .form-group input,
.form-regiao .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

#aba-consumo h1 {
  font-size: 18px;
  font-weight: 500;
  color: #2f6de0; /* azul escuro do botão hover */
  margin-bottom: 16px;
}

#aba-regiao h1 {
  font-size: 18px;
  font-weight: 500;
  color: #2f6de0;
  margin-bottom: 16px;
}

/* Título "Resultados" */
#resultado h2 {
  font-size: 18px;
  font-weight: 500;
  color: #2f6de0;
  margin-bottom: 18px;
}

/* Subtítulos "Plano", "Usado", "Restante" */
.resultado-grid .box p {
  font-size: 14px;
  color: #2f6de0;
  font-weight: 500;
}

/* Texto "X% utilizado" */
#porcentagem {
  font-size: 14px;
  font-weight: 500;
  color: #2f6de0;
  margin-top: 10px;
}

#msg-regiao {
  display: none;
  background-color: #eaf2ff;
  color: #2f6de0;
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #d0e3ff;
}

/* Ajustes para Choices.js */
.choices__inner {
  border-radius: 8px !important;
  border: 1px solid #ccc !important;
  padding: 12px 16px !important;
  font-size: 16px;
  min-height: 48px;
  box-shadow: none !important;
}

.choices__list--dropdown {
  font-size: 16px;
}

.choices__list--single {
  padding: 4px 0;
}

/* Garante que o componente Choices ocupe toda a largura disponível */
.choices {
  width: 100% !important;
  max-width: 100% !important;
}

/* Unifica a fonte do Choices.js com os inputs normais */
.choices,
.choices__inner,
.choices__list--single,
.choices__item {
  font-family: 'Segoe UI', sans-serif !important;
  font-size: 16px !important;
  color: #333;
}
