/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Global variables for colors */
:root {
    --dark: #34495E;
    --light: #ffffff;
    --success: #0ABF30; /* Success color */
    --error: #E24D4C;    /* Error color */
    --warning: #E9BD0C;  /* Warning color */
    --info: #3498DB;     /* Info color */
}

/* Notification container */
.notifications {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 9999;  /* Ensure the notifications appear above other content */
    width: 350px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual toast message */
.notifications .toast {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(100%);
    animation: show_toast 0.5s ease-out forwards;
}

/* Toast show animation */
@keyframes show_toast {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    80% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Specific styles for different message types */
.toast.success {
    background-color: var(--success);
}

.toast.error {
    background-color: var(--error);
}

.toast.warning {
    background-color: var(--warning);
}

.toast.info {
    background-color: var(--info);
}

/* Toast content styles */
.toast .column i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.toast .column span {
    font-size: 1rem;
    font-weight: 500;
}

/* Close button for toast */
.toast i:last-child {
    color: #fff;
    border: 2px solid #fff;
    font-size: 0.75rem;
    border-radius: 50%;
    background-color: #000;
    padding: 4px;
    cursor: pointer;
}

/* Close button hover effect */
.toast i:last-child:hover {
    background-color: var(--dark);
}

/* Hide toast animation */
.notifications.hide {
    animation: hide_toast 0.5s ease-out forwards;
}

/* Hide toast keyframe */
@keyframes hide_toast {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsiveness */
@media screen and (max-width: 530px) {
    .notifications {
        width: 95%;
    }
    .notifications .toast {
        width: 100%;
        font-size: 0.9rem;
    }
}
