/*!
 * ZephyrToast - A Toast Notification Library
 * Version: 1.5.0
 *
 * ZephyrToast is a lightweight, pure vanilla JavaScript toast notification library,
 * inspired by Bootstrap 5 styling and free from dependencies. It offers elegant,
 * customizable notifications that gently appear and disappear, delivering a seamless
 * user experience.
 *
 * Author: Md.Sarwar Alam
 * GitHub: https://github.com/sarwaralamini
 * Library: https://github.com/sarwaralamini/zephyr-toast
 *
 * Released under the MIT License
 */


.toast-container {
    position: fixed;
    z-index: 9999;
    padding: 15px;
    overflow: hidden;
    min-width: fit-content;
}

.position-top-right {
    top: 85px;
    right: 0px;
}

.position-top-left {
    top: 0px;
    left: 0px;
}

.position-bottom-right {
    bottom: 0px;
    right: 0px;
}

.position-bottom-left {
    bottom: 0px;
    left: 0px;
}

.position-top-center {
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
}

.position-bottom-center {
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
}

.toast-notification {
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: fit-content;
    opacity: 0;
    border-width: 1px;
    border-style: solid;
    pointer-events: auto;
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.toast-notification-body {
    padding: 0.75rem;
    display: flex;
}

.toast-notification-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.toast-notification-content {
    flex: 1;
}

.toast-notification-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.toast-notification-close {
    background: transparent;
    border: 0;
    padding: 0 0.5rem;
    cursor: pointer;
    align-self: flex-start;
    margin-left: 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.7;
}

.toast-notification-close:hover {
    opacity: 1;
}

.toast-progress-bar {
    height: 5px;
    background-color: rgba(0, 0, 0, 0.15);
    position: relative;
}

.toast-progress-bar-fill {
    height: 100%;
    background-color: rgba(0, 0, 0, 0.075);
    transition: width linear;
    width: 100%;
}

.toast-progress-bar-void{
    height: 5px;
    background-color: rgba(75, 84, 88, 1);
    position: relative;
}

.toast-progress-bar-void-fill {
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    transition: width linear;
    width: 100%;
}

/*
 * Responsive adjustments for mobile view (max-width: 576px)
 * Applies full-width and centered alignment to all toast positions 
 * for better readability and appearance on small screens.
 */
@media (max-width: 576px) {

    .position-top-right,
    .position-top-left,
    .position-bottom-right,
    .position-bottom-left,
    .position-top-center,
    .position-bottom-center {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .toast-notification {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

}