body {
    margin-top: 100px;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

.toast {
    width: 300px; 
    position: fixed; 
    left: 50%; 
    transform: translateX(235%); 
    top: 200px; 
    animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideIn {
    from {
        transform: translateX(100%) rotate(5deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%) rotate(-5deg);
        opacity: 0;
    }
}

@keyframes timelineProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.wrapper {
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wrapper:hover {
    transform: translateY(-5px) scale(1.02);
}

.main {
    margin: 16px 20px 16px 55px; 
    position: relative;
}

.main::before {
    font-size: 24px; 
    top: calc(50% - 12px);
    left: -35px;
    line-height: 24px;
    position: absolute;
    z-index: 2;
}

.icon-background {
    position: absolute;
    left: -45px;
    top: calc(50% - 20px);
    width: 40px; 
    height: 40px; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline {
    position: absolute;
    bottom: -8px; 
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-progress {
    height: 3px; 
    background: #4caf50; 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    animation: timelineProgress 5s linear forwards;
    border-radius: 0 0 30px 30px; 
}


.success-icon::before {
    font-family: "Font Awesome 5 Free";
    content: "\f058";
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 150, 0.5);
}

.success {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #fff;
    padding: 12px; 
}

.success .icon-background {
    background: linear-gradient(135deg, #059669, #10B981);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.success .timeline-progress {
    background: #10B981;
}

.success-border {
    border-left: none;
    border-radius: 20px;
}


.info-icon::before {
    font-family: "Font Awesome 5 Free";
    content: "\f0f3";
    color: #ffffff;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.info {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #fff;
    padding: 12px; 
}

.info .icon-background {
    background: linear-gradient(135deg, #0284C7, #0EA5E9);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.info .timeline-progress {
    background: #0EA5E9;
}

.info-border {
    border-left: none;
    border-radius: 20px;
}


.warning-icon::before {
    font-family: "Font Awesome 5 Free";
    content: "\f071";
    color: #ffffff;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.warning {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #fff;
    padding: 12px; 
}

.warning .icon-background {
    background: linear-gradient(135deg, #D97706, #F59E0B);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.warning .timeline-progress {
    background: #F59E0B;
}

.warning-border {
    border-left: none;
    border-radius: 20px;
}


.error-icon::before {
    font-family: "Font Awesome 5 Free";
    content: "\f06a";
    color: #ffffff;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.error {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #fff;
    padding: 12px; 
}

.error .icon-background {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.error .timeline-progress {
    background: #EF4444;
}

.error-border {
    border-left: none;
    border-radius: 20px;
}


.phonemessage-icon::before {
    font-family: "Font Awesome 5 Free";
    content: "\f7cd";
    color: #ffffff;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.phonemessage {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #fff;
    padding: 12px; 
}

.phonemessage .icon-background {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.phonemessage .timeline-progress {
    background: #8B5CF6;
}

.phonemessage-border {
    border-left: none;
    border-radius: 20px;
}


.neutral-icon::before {
    font-family: "Font Awesome 5 Free";
    content: "\f11c";
    color: #ffffff;
    text-shadow: 0 0 10px rgba(100, 116, 139, 0.5);
}

.neutral {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #fff;
    padding: 12px; 
}

.neutral .icon-background {
    background: linear-gradient(135deg, #475569, #64748B);
    box-shadow: 0 0 20px rgba(100, 116, 139, 0.4);
}

.neutral .timeline-progress {
    background: #64748B;
}

.neutral-border {
    border-left: none;
    border-radius: 20px;
}


@media (max-width: 480px) {
    .toast {
        width: calc(100% - 32px);
        margin-right: 16px;
    }
}


@media (prefers-color-scheme: dark) {
    .success,
    .info,
    .warning,
    .error,
    .phonemessage,
    .neutral {
        background: linear-gradient(135deg, #030712, #0F172A);
    }
}