/* Container for all flashes */
.flash-container,
.flash-cms-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 300px;
  z-index: 1050;
  font-size: 14px;
  /* cursor: pointer; */ /* optional, remove if only button is clickable */
}

/* Each individual flash message needs relative positioning */
.flash-notice,
.flash-alert {
  position: relative;       /* ensures the close button is inside this flash */
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;    /* spacing between stacked flashes */
}

/* Notice flash (blue info) */
.flash-notice {
  color: #084298;
  background-color: #cfe2ff;
  border: 1px solid #b6d4fe;
}

/* Alert flash (red danger) */
.flash-alert {
  color: #842029;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
}

/* base for transitions */
.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;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 1;            /* better vertical centering */
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  padding: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}

.flash-close:hover {
  background: #f8f8f8;
  border-color: #999;
}

.flash-close:active {
  transform: scale(0.95);   /* subtle click feedback */
}
