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;
}

/* User Avatar Styles */
.avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-initials {
  color: white;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
}

.user-name {
  font-weight: 500;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dropdown styling */
.navbar-nav .dropdown-menu {
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
  min-width: 160px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

/* Responsive avatar */
@media (max-width: 575.98px) {
  .user-name {
    display: none;
  }
  
  .avatar-mini {
    width: 28px;
    height: 28px;
  }
  
  .avatar-initials {
    font-size: 12px;
  }
}

/* ClientAdmin Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin: 0.125rem 0.5rem;
  transition: all 0.15s ease-in-out;
}

.sidebar .nav-link:hover {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.1);
}

.sidebar .nav-link.active {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.1);
  font-weight: 600;
}

.sidebar .nav-link i {
  margin-right: 0.5rem;
  width: 16px;
  text-align: center;
}
/* Admin Sub-Navigation Styles */
.navbar .nav-link.active {
  font-weight: 600;
  color: #0d6efd !important;
}

.navbar .dropdown-menu {
  max-height: 80vh;
  overflow-y: auto;
}

.navbar .dropdown-item i {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
}

.bg-light .nav-link.active {
  background-color: rgba(13, 110, 253, 0.1);
  font-weight: 600;
  color: #0d6efd;
  border-radius: 0.25rem;
}

.bg-light .nav-link {
  transition: all 0.15s ease-in-out;
}

.bg-light .nav-link:hover {
  background-color: rgba(13, 110, 253, 0.05);
  border-radius: 0.25rem;
}
