
body {
  font-family: system-ui, sans-serif;
  background-color: #ffffff;
  color: #212529;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.navbar {
  background-color: #f8f9fa;
}

.navbar-brand {
  font-weight: bold;
  color: #007bff !important;
}

.navbar .nav-link {
  color: #007bff;
}

.navbar .nav-link:hover {
  color: #0056b3;
}

.btn-primary {
  background-color: #198754;
  border-color: #198754;
}

.btn-primary:hover {
  background-color: #157347;
  border-color: #146c43;
}

.table th,
.table td {
  vertical-align: middle;
}

.table thead th {
  background-color: #e9f5ff;
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
}

pre#jsonViewer {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.875rem;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

#ipInput {
  min-width: 280px;
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode .table {
  color: #e0e0e0;
}

.navbar-nav .nav-link.active {
  font-weight: bold;
}

#mobileNav {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1050;
}

.navbar-brand img {
  height: 64px;
  display: inline-block;
  vertical-align: middle;
}

.navbar {
  min-height: 64px;
  padding-top: 0;
  padding-bottom: 0;
}

/* Force navbar collapse content to overlay instead of pushing */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #f8f9fa; /* Light background to match navbar-light */
    z-index: 1050;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .navbar-collapse.collapsing,
  .navbar-collapse.show {
    display: block !important;
  }

  body {
    padding-top: 0 !important; /* prevent layout shift */
  }
}

/* Additional required: .logo-img */
.logo-img {
  height: 64px;
}
