html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@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;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content area — grows to fill space, pushes footer down */
.main-content {
  flex: 1 0 auto;
}

/* Footer — never overlaps content, sits at bottom naturally */
footer {
  margin-top: auto;
  flex-shrink: 0;
  background-color: #f8f9fa;
  height: 50px;
  line-height: 50px;
  padding: 0;
}

footer .container-fluid {
  line-height: 50px;
  padding-top: 0;
  padding-bottom: 0;
}

/* On chat/detail pages, hide footer to maximize space */
body.details-page footer,
body.chat-page footer {
  display: none;
}
