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

/* ---- App shell: top bar + collapsible sidebar ---- */
.app-body {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.sidebar {
  width: 230px;
  flex: 0 0 auto;
  overflow-y: auto;
  transition: width .18s ease, padding .18s ease;
}

.sidebar.collapsed {
  width: 0;
  padding: 0 !important;
  overflow: hidden;
}

.sidebar .nav-link {
  color: #333;
  border-radius: .375rem;
  white-space: nowrap;
}
.sidebar .nav-link:hover {
  background: rgba(0, 0, 0, .05);
}
.sidebar .nav-link.active {
  background: #0d6efd;
  color: #fff;
}

.content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.5rem;
}

/* Icon buttons in the top bar */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

.notif-menu {
  min-width: 320px;
  max-width: 360px;
}
.notif-item {
  white-space: normal;
}

/* ---- Guided tour (tutorial popups) ---- */
.tour-block {
  position: fixed;
  inset: 0;
  display: none;
  background: transparent;
}
.tour-block.dark {
  background: rgba(0, 0, 0, .55);
}
.tour-spot {
  position: fixed;
  display: none;
  border-radius: .5rem;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55);
  outline: 2px solid #0d6efd;
  pointer-events: none;
  transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
}
.tour-pop {
  position: fixed;
  display: none;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: #fff;
  color: #1b1f24;
  border: 1px solid #e1e4e8;
  border-radius: .5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  padding: 16px 18px;
}
.tour-pop-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .4rem;
}
.tour-pop-body {
  font-size: .92rem;
  line-height: 1.5;
  color: #333;
}
.tour-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.tour-pop-count {
  font-size: .8rem;
  color: #6c757d;
}
.tour-pop-btns {
  display: inline-flex;
  gap: .35rem;
}
