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 {
  height: 100%;
}

body {
  min-height: 100%;
}

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

/* Sidebar navigation styling */
:root {
  --sidebar-width: 260px;
}

@media (min-width: 768px) {
  .sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    position: sticky;
    top: 56px; /* height of header */
    height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .sidebar-collapsed .sidebar {
    margin-left: calc(-1 * var(--sidebar-width));
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 767.98px) {
  .sidebar {
    width: 100%;
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    z-index: 1040;
    overflow-y: auto;
    background-color: #f8f9fa;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  body:not(.sidebar-mobile-open) .sidebar {
    transform: translateX(-100%);
  }
  
  body.sidebar-mobile-open .sidebar {
    transform: translateX(0);
  }
}

.sidebar {
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .08);
}

.sidebar .nav-link {
  font-weight: 500;
  color: #495057;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin: 2px 8px;
  display: flex;
  align-items: center;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.sidebar .nav-link:hover {
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.08);
}

.sidebar .nav-link.active {
  color: #fff;
  background-color: #0d6efd;
  box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.sidebar .sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #6c757d;
  padding: 1.25rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
}

/* Styled dot for menu items */
.menu-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #6c757d;
  border-radius: 50%;
  margin-right: 12px;
  transition: all 0.15s ease-in-out;
}

.nav-link:hover .menu-dot {
  background-color: #0d6efd;
  transform: scale(1.3);
}

.nav-link.active .menu-dot {
  background-color: #ffffff;
  transform: scale(1.3);
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #ced4da;
}

/* Main content and sidebar toggler styling */
.main-content {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #495057;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.sidebar-toggle-btn:hover {
  background-color: #f1f3f5;
  color: #0d6efd;
}