/* Flash message container */
.flash {
  max-width: 520px;
  margin: 16px auto;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  font-family: Georgia, serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Success */
.flash.success {
  background: linear-gradient(135deg, #f0fbf9, #e6f7f1);
  color: #2f6f5e;
  border: 1px solid rgba(47, 111, 94, 0.2);
}

/* Error */
.flash.error {
  background: #fff5f5;
  color: #a94442;
  border: 1px solid #f5c6cb;
}

/* Animation */
.flash {
  opacity: 0;
  transform: translateY(-10px);
}

.flash.show {
  opacity: 1;
  transform: translateY(0);
}

.footer-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.btn-clear {
    background: #455a64;
    color: #800000;
}

.btn-close {
    background: #263238;
    color: #800000;
    border: 0;
    cursor: pointer;
}