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;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-alert {
  min-width: 320px;
  max-width: 420px;
  padding: 14px 20px 14px 16px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.4s ease;
}

.toast-alert.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-alert.hide {
  transform: translateX(120%);
  opacity: 0;
}

.toast-alert .toast-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-alert .toast-body {
  flex: 1;
}

.toast-alert .toast-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.toast-alert .toast-message {
  opacity: 0.9;
  font-size: 13px;
}

.toast-alert .toast-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}

.toast-alert .toast-close:hover {
  color: #fff;
}

.toast-alert .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 10px 10px;
  background: rgba(255,255,255,0.35);
  animation: toastProgress var(--toast-duration, 4s) linear forwards;
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Toast types */
.toast-success {
  background: linear-gradient(135deg, #1a8a4a, #22a95a);
}

.toast-error {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.toast-warning {
  background: linear-gradient(135deg, #d4850a, #f39c12);
}

.toast-info {
  background: linear-gradient(135deg, #2471a3, #2e86c1);
}

/* Loader Overlay */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 18, 0.7);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(4px);
}

.loader-overlay.active {
  display: flex;
}

.loader-scene {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  width: 140px;
  height: 140px;
}

.loader-ring-spin {
  transform-origin: 60px 60px;
  animation: loaderSpin 2.5s linear infinite;
}

.loader-tree {
  width: 44px;
  height: 55px;
  animation: treePulse 1.5s ease-in-out infinite;
}

@keyframes treePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.loader-birds {
  position: absolute;
  top: -10px;
  width: 160px;
  height: 60px;
}

.lbird-1 {
  animation: birdFly1 2s ease-in-out infinite;
}

.lbird-2 {
  animation: birdFly2 2.5s ease-in-out infinite 0.4s;
}

.lbird-3 {
  animation: birdFly3 2.2s ease-in-out infinite 0.8s;
}

@keyframes birdFly1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -6px); }
}

@keyframes birdFly2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, -8px); }
}

@keyframes birdFly3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -4px); }
}

.loader-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}