/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 18 Mar 2025, 20:36:34
    Author     : MalickMoro-Samah
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

.toast {
    border-left: 6px solid #4070f4;

}

.warning-toast {
    border-left: 6px solid #ff9900;
}

.error-toast {
    border-left: 6px solid #e60000;
}

.toast, .warning-toast, .error-toast {
    position: fixed; /* Fix position relative to the viewport */
    top: 20px; /* You can adjust this to control how far from the top it appears */
    right: 30px; /* Positioning from the right */
    z-index: 9999; /* Make sure it’s on top of everything */
    border-radius: 12px;
    background: #fff;
    padding: 20px 35px 20px 25px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
}

.toast.active, .warning-toast.active, .error-toast.active{
    transform: translateX(0%);
}

.toast .toast-content, .warning-toast .toast-content, .error-toast .toast-content{
    display: flex;
    align-items: center;
}

.toast .check, .warning-toast .check, .error-toast .check{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 30px;
    background-color: #4070f4;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
}

.warning-toast .check{
    background-color: #ff9900;
}

.error-toast .check{
    background-color: #e60000;
}

.toast .message, .warning-toast .message, .error-toast .message{
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.message .text{
    font-size: 15px;
    font-weight: 400;
    color: #666666;
}

.message .text.text-1{
    font-weight: 600;
    color: #333;
}

.toast .close, .warning-toast .close, .error-toast .close{
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
}

.toast .close:hover, .warning-toast .close:hover, .error-toast .close:hover{
    opacity: 1;
}

.toast .progress, .warning-toast .progress, .error-toast .progress{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #ddd;
}

.toast .progress:before, .warning-toast .progress:before, .error-toast .progress:before{
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: #4070f4;
}

.warning-toast .progress:before{
    background-color: #ff9900;
}

.error-toast .progress:before{
    background-color: #e60000;
}

button{
    padding: 12px 20px;
    font-size: 20px;
    outline: none;
    border: none;
    background-color: #4070f4;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    margin: 5px;
}

button:hover{
    background-color: #0e4bf1;
}


.progress.active:before {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}
