/* static/css/messages.css */
.messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    z-index: 1000;
    max-width: 400px;
    width: 90%;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.alert-icon {
    font-size: 1.2em;
}

.alert-message {
    flex: 1;
    font-size: 0.95em;
}

.alert-close {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-weight: bold;
    font-size: 1.2em;
}

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

.alert-success {
    background: #48bb78;
    color: white;
}

.alert-error {
    background: #e53e3e;
    color: white;
}

.alert-warning {
    background: #ed8936;
    color: white;
}

.alert-info {
    background: #4299e1;
    color: white;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
        visibility: hidden;
    }
}