:root {
    --toast-success: #059669;
    --toast-error: #dc2626;
    --toast-info: #2563eb;
    --toast-warning: #d97706;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --text-main: #1f2937;
    --text-muted: #1f2937 !important;
}

#toast-container {
    position: fixed;
    z-index: 999999;
    top: 25px;
    right: 20px;
    pointer-events: none;
    width: calc(100% - 40px);
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#toast-container>div {
    position: relative;
    width: 100%;
    padding: 16px 20px 16px 60px;
    border-radius: 14px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main);
    font-family: 'Kulim Park', sans-serif;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    transition: all 0.3s ease;
    animation: toastEntrance 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

#toast-container>div:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}


#toast-container>div::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}

#toast-container>div::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 5;
}

.toast-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 400;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    opacity: 0.7;
}

.toast-success::after {
    background: var(--toast-success);
}

.toast-success::before {
    background-color: #ecfdf5;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23059669"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
}

.toast-success .toast-progress {
    background: var(--toast-success);
}

.toast-error::after {
    background: var(--toast-error);
}

.toast-error::before {
    background-color: #fef2f2;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc2626"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>');
}

.toast-error .toast-progress {
    background: var(--toast-error);
}

.toast-info::after {
    background: var(--toast-info);
}

.toast-info::before {
    background-color: #eff6ff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232563eb"><path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z"/></svg>');
}

.toast-info .toast-progress {
    background: var(--toast-info);
}

.toast-warning::after {
    background: var(--toast-warning);
}

.toast-warning::before {
    background-color: #fffbeb;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d97706"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>');
}

.toast-warning .toast-progress {
    background: var(--toast-warning);
}

@keyframes toastEntrance {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 500px) {
    #toast-container {
        top: 15px;
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        max-width: 340px;
    }
    #toast-container>div {
        padding: 14px 16px 14px 52px;
    }
    #toast-container>div::before {
        left: 12px;
        width: 28px;
        height: 28px;
    }
}