.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    width: calc(100% - 40px);
}

.flash-message {
    padding: 16px;
    border-radius: 8px;
    background: white;
    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;
    border-left: 4px solid #ccc;
}

.flash-message.success {
    border-left-color: #28a745;
}

.flash-message.error {
    border-left-color: #dc3545;
}

.flash-message.warning {
    border-left-color: #ffc107;
}

.flash-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-icon {
    font-size: 20px;
}

.flash-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.flash-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0 0 0 10px;
}

.flash-close:hover {
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.flash-message.hiding {
    animation: fadeOut 0.3s ease-in forwards;
}