/* ========== MESSAGE CONTAINER COMPONENT ========== */
.message-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    min-width: 300px;
}

.message-content {
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message-text {
    flex: 1;
    line-height: 1.4;
    font-size: 14px;
}

.message-text a {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
}

.message-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.message-close:hover {
    opacity: 1;
}

/* Message Types */
.message-container.success .message-content {
    background: #f0f9ff;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.message-container.error .message-content {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.message-container.info .message-content {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.message-container.warning .message-content {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .message-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .message-content {
        padding: 12px 16px;
        font-size: 13px;
    }
}
