/* Flash Message Styling - Sticky animated alerts */
.flash-message {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateY(-150%);
    z-index: 2000;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    max-width: 800px;
    width: fit-content;
    animation: slideDown 0.4s ease-out forwards;
    transition: opacity 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-150%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.flash-message.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.flash-notice {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-top: none;
}

.flash-alert {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-top: none;
}

/* Adjust body padding when navbar exists */
body:has(.navbar-container) {
    padding-top: 0;
}
