html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-bottom: 2rem !important;
}

footer {
  margin-top: auto;
  position: relative;
  width: 100%;
}

/* Barra de usuário logado - mesmo tamanho do navbar */
.user-logged-banner {
  padding: 0.5rem 0;
  border-radius: 0;
  margin-bottom: 0 !important;
}

/* Ajustes mobile-first para a barra */
@media (max-width: 767.98px) {
  .user-logged-banner {
    padding: 0.75rem 0;
  }
  
  .user-logged-banner .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .user-logged-banner .d-flex > div:first-child {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .user-logged-banner .d-flex > div:last-child {
    width: 100%;
  }
  
  .user-logged-banner .btn {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  
  .user-logged-banner .btn:last-child {
    margin-bottom: 0;
  }
  
  .user-logged-banner form {
    width: 100%;
  }
  
  .user-logged-banner form button {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .user-logged-banner {
    padding: 0.75rem 0;
  }
}

/* Espaçamento extra para formulários em mobile */
@media (max-width: 768px) {
  main {
    padding-bottom: 3rem !important;
  }
  
  .container {
    padding-bottom: 2rem;
  }
  
  footer {
    padding-top: 1rem;
  }
}