.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message {
    padding: 1rem 1.5rem;
    position: relative;
    border-radius: 8px;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.3s ease-out;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    border-left: 4px solid #e5e7eb;
}

.message.success {
    border-left-color: #10b981;
    color: #065f46;
}

.message.error {
    border-left-color: #ef4444;
    color: #991b1b;
}

.message.warning {
    border-left-color: #f59e0b;
    color: #92400e;
}

.message.hiding {
    transform: translateX(110%);
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

.message .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: currentColor;
    opacity: 0.2;
    animation: shrink 5s linear forwards;
}

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

@keyframes shrink {
    from { width: 100%; }
    to { width: 0%; }
}
