#toast-container {
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    min-width: 250px;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    /* color: #fff; */
    color: black;
    background-color: white;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.4s forwards, fadeOut 0.4s forwards 3.6s;
    pointer-events: auto;
}

.toast.success {
    border-left: 15px solid #28a745;
    /* background-color: #28a745; */
}

.toast.error {
    border-left: 15px solid #dc3545;
    /* background-color: #dc3545; */
}

.toast.info {
    border-left: 15px solid #007bff;
    /* background-color: #007bff; */
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    #toast-container {
        bottom: none;
        top: 5rem;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    text-align: center;
    background: #ffffff;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.25s ease;
}

.modal h3 {
    margin-top: 0;
}

.modal-actions {
    display: flex;
    /* justify-content: flex-end; */
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn.cancel {
    background: #e0e0e0;
}

.btn.confirm {
    background: #dc3545;
    color: #fff;
}

.btnconfirm {
    text-decoration: none;
    border: none;
    outline: none;
    color: white;
    background-color: #28a745;
    padding: 10px 20px;
    text-align: center;
}
.btnconfirm2 {
    text-decoration: none;
    border: none;
    outline: none;
    color: white;
    background-color: #e51e1e;
    padding: 10px 20px;
    text-align: center;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}