/* Container for all flashes */
.flash-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 300px;
  z-index: 1050;
  font-size: 14px;
  cursor: pointer;
}

/* Notice flash (blue info) */
.flash-notice {
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  color: #084298;
  background-color: #cfe2ff;
  border: 1px solid #b6d4fe;
  margin-bottom: 0.5rem;
}

/* Alert flash (red danger) */
.flash-alert {
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  color: #842029;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  margin-bottom: 0.5rem;
}

/* base */
.flash-message {
  opacity: 1;
  transition: opacity 2s ease, transform 2s ease;
}

/* fadeout flashes */
.flash-message.fade-out {
  opacity: 0;
  transform: translateY(-5px);
}

/* Close button */
.flash-close {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff; /* white pill background */
  border: 1px solid #ccc;
  border-radius: 50%; /* circular */
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 18px; /* center the × */
  text-align: center;
  cursor: pointer;
  color: #333; /* darker × for contrast */
  box-shadow: 0 1px 3px rgba(0,0,0,0.4); /* shadow */
  padding: 0;
}
.flash-close:hover {
  background: #f8f8f8;
  border-color: #999;
}
