
body {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: linear-gradient(135deg, #0f9f5b, #16c47f, #c8f7e5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app-wrapper {
  max-width: 1400px;  
  margin: 24px auto;   
  padding: 0 16px;     
}

.card-app {
  border-radius: 20px;
}

.card-app {
  border-radius: 1.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: none;
}

/* ===== HEADER ===== */
.card-header-app {
  background: linear-gradient(135deg, #0b7b45, #15aa6a);
  color: #ffffff;
  padding: 1.75rem 1.75rem 1.2rem;
}

.card-header-app h1 {
  font-size: 1.6rem;
  margin: 0;
  font-weight: 600;
}

.card-header-app p {
  margin: 0.35rem 0 0;
  opacity: 0.9;
}

.badge-channel {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  margin-right: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Abas */
.nav-pills .nav-link {
  color: #e0f8ec;
  font-weight: 500;
  border-radius: 999px;
}

.nav-pills .nav-link.active {
  background-color: #ffffff;
  color: #0b7b45;
}

/* ===== CORPO ===== */
.card-body-app {
  background-color: #ffffff;
  padding: 1.75rem;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0b7b45;
  margin-bottom: 0.75rem;
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control,
.form-select {
  border-radius: 0.6rem;
  border-color: #d5e7dd;
}

.form-control:focus,
.form-select:focus {
  border-color: #16a364;
  box-shadow: 0 0 0 0.18rem rgba(22, 163, 100, 0.25);
}

/* ===== BOTÕES ===== */
.btn-primary {
  background: linear-gradient(135deg, #0f9f5b, #16c47f);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  padding-inline: 1.75rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0c7f47, #12a667);
}

.btn-primary:disabled {
  opacity: 0.7;
}

.btn-light.border {
  border-radius: 999px;
}

/* ===== FOOTER ===== */
.footer-app {
  padding: 0.75rem 1.75rem 1.2rem;
  background-color: #ffffff;
  border-top: 1px solid #edf4ef;
  border-radius: 0 0 1.5rem 1.5rem;
  font-size: 0.8rem;
  color: #7b8a84;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ===== ALERTAS ===== */
.alert {
  border-radius: 0.85rem;
}

/* ===== HINTS ===== */
.small-hint {
  font-size: 0.8rem;
  color: #6c757d;
}

/* ===== RESPONSIVO HEADER/BODY ===== */
@media (max-width: 576px) {
  .card-header-app {
    padding: 1.4rem 1.25rem 1rem;
  }

  .card-body-app,
  .footer-app {
    padding-inline: 1.25rem;
  }

  .card-header-app h1 {
    font-size: 1.3rem;
  }
}

.small-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c8f7a;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.logo-garbo {
  height: 150px;
  object-fit: contain;
}

@media (max-width: 576px) {
  .logo-garbo {
    height: 32px;
  }
}

/* Ajustes gerais para telas pequenas (smartphone) */
@media (max-width: 576px) {
  .app-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .card-app {
    border-radius: 0;
    box-shadow: none;
  }

  .card-header-app h1 {
    font-size: 1.3rem;
  }

  .card-header-app p {
    font-size: 0.8rem;
  }
}


/* Barra de carregamento global */
.global-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
  background: transparent;
}

.global-loading-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0f9f5b, #16c47f);
  box-shadow: 0 0 8px rgba(15, 159, 91, 0.6);
  transition: width 0.3s ease;
}

/* Quando estiver carregando */
.global-loading.is-active .global-loading-bar {
  width: 75%;
  animation: global-loading-pulse 1s infinite ease-in-out;
}

/* Efeito leve de "pulso" na barra */
@keyframes global-loading-pulse {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.6; }
}
