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;
  background: #f8f9fa;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
  color: #1a237e;
}

.table {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}

.form-control, .form-select {
  border-radius: 0.4rem;
}

.btn-primary, .btn-success, .btn-warning, .btn-danger {
  border-radius: 0.4rem;
  font-weight: 500;
}

footer.footer {
  background: #e3e3e3;
  color: #444;
  font-size: 1rem;
}

.card {
  border-radius: 0.7rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

body.dark-mode {
  background: #181a1b;
  color: #e0e0e0;
}
body.dark-mode .navbar, body.dark-mode .footer {
  background: #23272b !important;
  color: #e0e0e0;
}
body.dark-mode .card {
  background: #23272b;
  color: #e0e0e0;
  border-color: #444;
}
body.dark-mode .table, body.dark-mode .table th, body.dark-mode .table td {
  background: #23272b;
  color: #e0e0e0;
}
body.dark-mode .btn-primary {
  background: #375a7f;
  border-color: #375a7f;
}
body.dark-mode .btn-outline-secondary {
  color: #e0e0e0;
  border-color: #888;
}
body.dark-mode .btn-outline-dark {
  color: #e0e0e0;
  border-color: #888;
}
body.dark-mode .alert-danger {
  background: #7b1e1e;
  color: #fff;
}
body.dark-mode .alert-warning {
  background: #7b5e1e;
  color: #fff;
}
body.dark-mode .dropdown-menu {
  background: #23272b;
  color: #e0e0e0;
}
body.dark-mode .dropdown-item {
  color: #e0e0e0;
}
body.dark-mode .dropdown-item:hover {
  background: #444;
}