.app-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.app-modal.is-open {
  display: block;
}

.app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
}

.app-modal__dialog {
  position: relative;
  width: min(100% - 32px, 480px);
  margin: 10vh auto 0;
  background: #ffffff;
  border: 1px solid #dbe5f0;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  animation: modalPopIn 0.18s ease;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.app-modal__header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.1rem;
}

.app-modal__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f8fafc;
  color: #475569;
  font-size: 1.4rem;
  cursor: pointer;
}

.app-modal__body {
  padding: 18px 22px 8px;
}

.app-modal__body p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.app-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 22px 22px;
}

.app-toast-container {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(92vw, 360px);
}

.app-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dbe5f0;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  animation: toastSlideIn 0.22s ease;
}

.app-modal__dialog--report {
  width: min(100% - 32px, 560px);
}

.station-report-intro {
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.6;
}

.station-report-form .form-group {
  margin-bottom: 16px;
}

.station-report-form textarea {
  min-height: 110px;
  resize: vertical;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.app-toast--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.app-toast--error {
  border-color: #fecaca;
  background: #fef2f2;
}

.app-toast--info {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.app-toast__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.app-toast--success .app-toast__icon {
  background: #16a34a;
  color: #fff;
}

.app-toast--error .app-toast__icon {
  background: #dc2626;
  color: #fff;
}

.app-toast--info .app-toast__icon {
  background: #2563eb;
  color: #fff;
}

.app-toast__content {
  min-width: 0;
  flex: 1;
}

.app-toast__title {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-weight: 700;
}

.app-toast__text {
  color: #475569;
  line-height: 1.5;
}

.app-toast__close {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 767px) {
  .app-modal__dialog {
    width: min(100% - 20px, 420px);
    margin-top: 12vh;
    border-radius: 20px;
  }

  .app-toast-container {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .app-modal__footer {
    flex-direction: column-reverse;
  }

  .app-modal__footer .btn {
    width: 100%;
    justify-content: center;
  }
}