/* Custom Alert */

.custom-alert {
    position: fixed;
    top: 20px;
    left: 80%;
    transform: translateX(-20%);
    padding: 15px;
    background: #c32f24;
    color: white;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    font-size: 1.2rem;
}

@media (max-width: 1300px) {
    .custom-alert {
        left: 68%;
        transform: translateX(-12%);
    }
}

@media (max-width: 900px) {
    .custom-alert {
        top: 0;
        left: 0;
        transform: translateX(0);
        width: 100%;
        border-radius: 0;
        min-width: 200px;
    }
}

.custom-alert.success {
    background: #477c37;
}

.custom-alert.error {
    background: #c32f24;
}

.custom-alert.warning {
    background: #878b33;
}

@media (max-width: 900px) {
    .custom-alert.success {
        border-color: #477c37;
    }
    
    .custom-alert.error {
        border-color: #c32f24;
    }
}

.custom-alert.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert span {
    flex: 1; 
    text-align: left; 
}
