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

/* Material Icons Configuration */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  vertical-align: middle;
}

/* Context-specific icon alignment fixes */
/* Buttons need more upward adjustment */
.btn .material-symbols-rounded {
  vertical-align: middle;
  position: relative;
  top: -2px;
}

/* Links need upward adjustment */
a .material-symbols-rounded {
  vertical-align: middle;
  position: relative;
  top: -2px;
}

/* Card headers need adjustment */
.card-header .material-symbols-rounded {
  vertical-align: middle;
  position: relative;
  top: 1px;
}

/* Card headers with icons should have no extra padding */
.card-header {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding-left: 12px;
}

/* Navigation links */
.nav-link .material-symbols-rounded {
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Badges need smaller icons and better alignment */
.badge .material-symbols-rounded {
  font-size: 16px;
  vertical-align: text-bottom;
  position: relative;
  top: -1px;
}

/* User Dropdown Styling */
.dropdown-item .material-symbols-rounded {
  vertical-align: middle;
  position: relative;
  top: -2px;
  margin-right: 8px;
}

/* Logout button in dropdown should look like a dropdown item */
.dropdown-item button,
.dropdown-menu form button.dropdown-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.25rem 1rem;
  color: #212529;
  font-weight: normal;
}

.dropdown-menu form {
  margin: 0;
  padding: 0;
}

.dropdown-item button:hover,
.dropdown-menu form button.dropdown-item:hover {
  background-color: #e9ecef;
  color: #1e2125;
}

/* User icon in navbar */
#userDropdown .material-symbols-rounded {
  font-size: 24px;
  top: -1px;
}

/* User email in dropdown header */
.dropdown-menu .dropdown-header {
  font-weight: 600;
  color: #212529;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Footer optimization for mobile */
.footer {
  line-height: 30px;
}