/* Flash Message Styles */
.alert.flash-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.alert.flash-message.fade-out {
  animation: slideUp 0.3s ease-in;
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

.alert.flash-message .close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.alert.flash-message .close:hover {
  opacity: 1;
}

/* Ensure content doesn't get covered */
body.flash-message-visible {
  padding-top: 80px;
}

@media (max-width: 768px) {
  .alert.flash-message {
    top: 10px;
    width: 95%;
    max-width: none;
  }
}

/* Sortable Table Headers */
.table th[style*="cursor: pointer"] {
  user-select: none;
  transition: background-color 0.2s ease;
}

.table th[style*="cursor: pointer"]:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

.table th[style*="cursor: pointer"] i {
  margin-left: 5px;
  font-size: 0.9em;
}