/* =================================================================
   FLASH MESSAGES
   ================================================================= */

/* Main container for flash messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    width: 90%;
    z-index: 1100; /* Above other elements */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Base style for all messages */
.flash-message {
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out forwards;
    transform: translateX(120%);
    opacity: 0;
    border-left: 4px solid;
}

/* Entry animation */
@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Message categories */
.flash-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

.flash-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.flash-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left-color: #f59e0b;
}

.flash-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}

/* Icons */
.flash-icon {
    margin-right: 12px;
    font-size: 1.2em;
}

/* Close button */
.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: 15px;
    font-size: 1.1em;
}

.flash-close:hover {
    opacity: 1;
}