/* Messages Styling */
.messages-container {
    position: fixed;
    top: 80px; /* Adjust based on your header height */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 90%;
    max-width: 500px;
}

.alert {
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error,
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.btn-close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.btn-close:hover {
    opacity: 0.8;
}

/* Animation */
.alert {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .messages-container {
        width: 95%;
        top: 70px;
    }
    
    .alert {
        padding: 10px 12px;
        font-size: 14px;
    }
}