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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Command panel styles */
.command-panel {
  width: 220px;
  min-width: 220px;
  height: calc(100vh - 80px);
  position: sticky;
  top: 72px;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  transition: width 0.2s ease, min-width 0.2s ease;
}
.command-panel.collapsed {
  width: 52px;
  min-width: 52px;
}
.command-panel .command-panel-header {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.command-link {
  text-decoration: none;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #212529;
  border-radius: 4px;
  white-space: nowrap;
}
.command-link:hover { background: rgba(0,0,0,0.05); text-decoration: none; color: #212529; }

/* Icon inside nav links */
.cmd-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
}

/* Collapsed state: hide text, center icons, hide sub-menus */
.command-panel.collapsed .cmd-label { display: none; }
.command-panel.collapsed .cmd-sub   { display: none; }
.command-panel.collapsed .command-link {
  justify-content: center;
  padding: 8px 0;
  gap: 0;
}
.command-panel.collapsed .command-panel-header {
  justify-content: center !important;
}

/* Responsive: panel becomes off-canvas on small screens */
@media (max-width: 767.98px) {
  .command-panel { display: none; }
  .command-panel.offcanvas-show { display: block; position: fixed; z-index: 1050; left:0; top:0; height:100vh; width:280px; background:#fff; box-shadow:4px 0 12px rgba(0,0,0,0.15); }
}