html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Prevent Safari/Chrome iOS auto-zoom on any interactive element focus (requires font-size >= 16px) */
@media (max-width: 767px) {
  input,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="date"],
  input[type="time"],
  input[type="url"],
  input[type="button"],
  input[type="submit"],
  select,
  textarea,
  .form-control,
  .form-select,
  .btn,
  button {
    font-size: 16px !important;
  }
}

.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;
}

/* Friendly Navbar Styles */
.navbar-brand {
  text-decoration: none !important;
}

.navbar .nav-link {
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 50%;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
  width: 80%;
}

.navbar {
  backdrop-filter: blur(10px);
}

/* Mobile-Friendly Styles */
@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-xl {
    max-width: 100% !important;
  }
}

/* Touch-Friendly Button Sizes */
@media (max-width: 768px) {
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    min-height: 44px;
  }
  
  .form-control {
    padding: 0.75rem;
    font-size: 1rem;
    min-height: 44px;
  }
  
  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Offcanvas Styles */
.offcanvas {
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
}

.offcanvas-title {
  font-size: 1.25rem;
}

.offcanvas-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.offcanvas-body {
  padding: 0;
}

.offcanvas .list-group-item {
  border-left: 0;
  border-right: 0;
  transition: all 0.3s ease;
}

.offcanvas .list-group-item:hover {
  background-color: #f8f9fa;
  padding-left: 1.5rem;
}

.offcanvas .list-group-item:active {
  background-color: #e9ecef;
}

@media (max-width: 576px) {
  .offcanvas {
    width: 80% !important;
  }
}

html {
  position: relative;
  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;
}