/*
 * This is a manifest file that'll be compiled into application.css
 *


 * DO NOT use require_tree . if you want page-specific CSS
 */
/* Container: floats above content */
.flash-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    pointer-events: none;
    /* Let clicks pass through the container... */
}

/* Individual Message */
.flash-message {
    pointer-events: auto;
    /* ...but catch clicks on the message (for dismiss) */
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out forwards;
}

/* Color Variants */
.flash-message.notice {
    background-color: #059669;
    /* Green */
}

.flash-message.alert {
    background-color: #dc2626;
    /* Red */
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
