/* Gojek-style Toast Notification */
.gojek-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
    width: auto;
}

.gojek-toast {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    animation: toastSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}

.gojek-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.gojek-toast.success {
    color: #00AA5B;
}

.gojek-toast.error {
    color: #E53E3E;
}

.gojek-toast.warning {
    color: #F6AD55;
}

.gojek-toast.info {
    color: #3182CE;
}

.gojek-toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    background: currentColor;
    color: white;
    animation: iconPulse 0.5s ease;
}

.gojek-toast.success .gojek-toast-icon {
    background: #00AA5B;
}

.gojek-toast.error .gojek-toast-icon {
    background: #E53E3E;
}

.gojek-toast.warning .gojek-toast-icon {
    background: #F6AD55;
}

.gojek-toast.info .gojek-toast-icon {
    background: #3182CE;
}

.gojek-toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gojek-toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #1A202C;
    line-height: 1.5;
    margin: 0;
}

.gojek-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #718096;
    cursor: pointer;
    border-radius: 4px;
    padding: 0;
    transition: all 0.2s ease;
    font-size: 18px;
    line-height: 1;
}

.gojek-toast-close:hover {
    background: #F7FAFC;
    color: #2D3748;
}

.gojek-toast-close:active {
    transform: scale(0.95);
}

.gojek-toast.progress {
    position: relative;
}

.gojek-toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: toastProgress linear;
    transform-origin: left;
}

@keyframes toastSlideUp {
    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;
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.gojek-toast.hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gojek-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
    
    .gojek-toast {
        padding: 14px 16px;
        min-height: 56px;
    }
    
    .gojek-toast-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .gojek-toast-message {
        font-size: 13px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .gojek-toast {
        background: #2D3748;
    }
    
    .gojek-toast-message {
        color: #F7FAFC;
    }
    
    .gojek-toast-close {
        color: #A0AEC0;
    }
    
    .gojek-toast-close:hover {
        background: #4A5568;
        color: #E2E8F0;
    }
}

