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;
}

/* --- Validation Styling --- */
.input-validation-error {
  border-color: #dc3545 !important;
}

/* Hide the validation summary at the bottom */
.validation-summary-errors,
.validation-summary-valid {
  display: none !important;
}

/* Individual field errors (text comes from [Required] attribute) */
.field-validation-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
  width: 100%;
}

/* Ensure span is visible (reverting previous hack) */
.field-validation-error span {
  display: inline !important;
}

/* --- Toast Notification --- */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1060;
  /* Higher than modal (1055 usually) */
}

.toast-custom {
  min-width: 300px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  margin-bottom: 10px;
  animation: slideInRight 0.3s ease-out;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-left: 5px solid;
}

.toast-custom.success {
  border-left-color: #28a745;
  background-color: #d4edda;
}

.toast-custom.success .toast-icon {
  color: #28a745;
}

.toast-custom.success .toast-message {
  color: #155724;
}

.toast-custom.error {
  border-left-color: #dc3545;
  background-color: #f8d7da;
}

.toast-custom.error .toast-icon {
  color: #dc3545;
}

.toast-custom.error .toast-message {
  color: #721c24;
}

.toast-icon {
  font-size: 1.25rem;
  margin-right: 12px;
}

.toast-message {
  flex-grow: 1;
  font-weight: 500;
  font-size: 0.95rem;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.5;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0 0 10px;
}

.toast-close:hover {
  opacity: 1;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}
/* Hide Bottom Validation Summary Globally Per Request */
.validation-summary-errors, .validation-summary-valid { display: none !important; }
