/* alerts.css */
/* Alert Container */
.alert-container {
    position: fixed;
    top: 20px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 10000; 
    display: flex;
    flex-direction: column;
    gap: 10px; 
    pointer-events: none; 
}

/* Individual Alert Messages */
.alert {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 5px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0 !important;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: all; 
    z-index: 9999 !important; 
}

/* Show Alert */
.alert.show {
    display: flex;
    opacity: 1 !important;
    transform: translateY(0);
}

/* Success Alert Styling */
.alert.success {
    background-color: #4CAF50; 
}

/* Error Alert Styling */
.alert.error {
    background-color: #f44336; 
}

/* Close Button Styling */
.closebtn {
    margin-left: 15px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s;
}

.closebtn:hover {
    color: #ddd;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .alert {
        width: 90%; 
        bottom: 10px; 
        padding: 10px;
        font-size: 0.9rem;
    }
}
/* Responsive Adjustments */
@media (max-width: 480px) {
    .alert-container {
        top: 10px;
        width: 95%;
    }

    .alert {
        padding: 10px 15px;
        font-size: 14px;
    }

    .closebtn {
        font-size: 18px;
    }
}
