/* Toast Notification System - Based on Uiverse.io by akshat-patel28 */

.toast-container-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast-custom {
    width: 330px;
    min-height: 80px;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 10px 20px 10px 15px;
    background-color: #ffffff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 15px;
    animation: toastSlideIn 0.3s ease-out;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.toast-custom.toast-hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-custom .toast-wave {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.toast-custom .toast-icon-container {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-left: 8px;
    flex-shrink: 0;
}

.toast-custom .toast-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toast-custom .toast-message-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1;
    min-width: 0;
}

.toast-custom .toast-message,
.toast-custom .toast-sub-message {
    margin: 0;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.toast-custom .toast-message {
    font-size: 17px;
    font-weight: 700;
    word-break: break-word;
}

.toast-custom .toast-sub-message {
    font-size: 14px;
    color: #555;
    word-break: break-word;
}

.toast-custom .toast-close {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
    margin-right: 4px;
}

.toast-custom .toast-close:hover {
    transform: scale(1.1);
}

/* Info Toast - Blue */
.toast-custom.toast-info .toast-wave {
    fill: #4777ff3a;
}

.toast-custom.toast-info .toast-icon-container {
    background-color: #4777ff48;
}

.toast-custom.toast-info .toast-icon {
    color: #124fff;
}

.toast-custom.toast-info .toast-message {
    color: #124fff;
}

.toast-custom.toast-info .toast-close {
    color: #555;
}

/* Warning Toast - Orange */
.toast-custom.toast-warning .toast-wave {
    fill: #ffa30d3a;
}

.toast-custom.toast-warning .toast-icon-container {
    background-color: #ffa30d48;
}

.toast-custom.toast-warning .toast-icon {
    color: #db970e;
}

.toast-custom.toast-warning .toast-message {
    color: #db970e;
}

.toast-custom.toast-warning .toast-close {
    color: #555;
}

/* Error Toast - Red */
.toast-custom.toast-error .toast-wave {
    fill: #fc0c0c3a;
}

.toast-custom.toast-error .toast-icon-container {
    background-color: #fc0c0c48;
}

.toast-custom.toast-error .toast-icon {
    color: #d10d0d;
}

.toast-custom.toast-error .toast-message {
    color: #d10d0d;
}

.toast-custom.toast-error .toast-close {
    color: #555;
}

/* Success Toast - Green */
.toast-custom.toast-success .toast-wave {
    fill: #0cfc3a3a;
}

.toast-custom.toast-success .toast-icon-container {
    background-color: #0cfc3a48;
}

.toast-custom.toast-success .toast-icon {
    color: #0d8a1f;
}

.toast-custom.toast-success .toast-message {
    color: #0d8a1f;
}

.toast-custom.toast-success .toast-close {
    color: #555;
}
