/*!
 * Bootoast CSS
 * @author odahcam
 */

/*! 
 * Improved Bootoast CSS 
 */

/* Container fixed at top-right */
.bootoast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 1050;
}

/* Toast box */
.bootoast {
    display: flex;
    align-items: center;
    background-color: #fdecea;
    color: #d6180a;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 260px;
    /* max-width: 340px; */
    position: relative;
    font-family: "Segoe UI", sans-serif;
    font-size: 15px;
    /* animation: slideInRight 0.4s ease; */
}

/* Icon (optional) */
.bootoast .glyphicon {
    margin-right: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

/* Close button */
.bootoast button {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #d6180a;
    cursor: pointer;
    opacity: 0.6;
    /* transition: opacity 0.2s ease; */
}
.bootoast button:hover {
    opacity: 1;
}

/* Slide-in animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.bootoast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-success {
    display: flex;
    align-items: center;
    background-color: #e6ffed;
    color: #1a7f37;
    border: 1px solid #b7e4c7;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    min-width: 260px;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    /* animation: fadeSlideIn 0.3s ease; */
}

.alert-success button {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #1a7f37;
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
    opacity: 0.6;
    /* transition: opacity 0.2s ease; */
}
.alert-success button:hover {
    opacity: 1;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bootoast-container.bottom.center {
    position: fixed;
    /* bottom: 20px; */
    /* left: 50%; */
    transform: translateX(-30%) translateY(7.5%);
    z-index: 1250;
    pointer-events: none; /* 👈 Prevents blocking clicks */
}


.bootoast {
    pointer-events: auto; /* 👈 Re-enables interaction inside toast */
    /* background-color: #d4edda; */
    /* color: #155724; */
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    max-width: 90vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Close button styling */
.bootoast .close {
    background: none;
    border: none;
    font-size: 18px;
    /* color: #155724; */
    opacity: 0.7;
    margin-left: 10px;
    cursor: pointer;
}
.bootoast .close:hover {
    opacity: 1;
}

/* Responsive Adjustment for Mobile View */
@media screen and (max-width: 576px) {
    .bootoast-container {
        left: auto;
        right: 20px;
        transform: none;
    }

    .bootoast-container.bottom.center {
        transform: translateX(-0%) translateY(7.5%);
    }
}

.bootoast .bootoast-alert-container {
    margin-right: 24px;
}