/* =========================
   TOAST CONTAINER
========================= */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

/* =========================
   TOAST BASE - PREMIUM ENHANCED
========================= */
.custom-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    background: rgba(24, 24, 24, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;

    padding: 14px 18px;
    min-width: 300px;
    max-width: 420px;
    max-height: 80px;;

    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Premium gradient border effect */
.custom-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-toast:hover::before {
    opacity: 1;
}

/* hide animation */
.custom-toast.hide {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================
   ICON - PREMIUM
========================= */
.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    flex-shrink: 0;
    
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.toast-icon i {
    font-size: 16px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

/* =========================
   CONTENT - PREMIUM
========================= */
.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.toast-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    letter-spacing: -0.1px;
}

/* =========================
   CLOSE BUTTON - PREMIUM
========================= */
.toast-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 13px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* =========================
   TYPES - PREMIUM WITH GLOW
========================= */
.custom-toast.success { 
    border-color: rgba(74, 222, 128, 0.4);
    box-shadow: 0 20px 35px -12px rgba(74, 222, 128, 0.15),
                0 0 0 1px rgba(74, 222, 128, 0.05) inset;
}

.custom-toast.success .toast-icon {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.1));
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.custom-toast.success:hover {
    border-color: rgba(74, 222, 128, 0.6);
    box-shadow: 0 20px 35px -12px rgba(74, 222, 128, 0.25);
}

.custom-toast.error { 
    border-color: rgba(248, 113, 113, 0.4);
    box-shadow: 0 20px 35px -12px rgba(248, 113, 113, 0.15),
                0 0 0 1px rgba(248, 113, 113, 0.05) inset;
}

.custom-toast.error .toast-icon {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2), rgba(248, 113, 113, 0.1));
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.custom-toast.error:hover {
    border-color: rgba(248, 113, 113, 0.6);
    box-shadow: 0 20px 35px -12px rgba(248, 113, 113, 0.25);
}

.custom-toast.info { 
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 20px 35px -12px rgba(96, 165, 250, 0.15),
                0 0 0 1px rgba(96, 165, 250, 0.05) inset;
}

.custom-toast.info .toast-icon {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(96, 165, 250, 0.1));
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.custom-toast.info:hover {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 20px 35px -12px rgba(96, 165, 250, 0.25);
}

.custom-toast.warning { 
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 20px 35px -12px rgba(250, 204, 21, 0.15),
                0 0 0 1px rgba(250, 204, 21, 0.05) inset;
}

.custom-toast.warning .toast-icon {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(250, 204, 21, 0.1));
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.custom-toast.warning:hover {
    border-color: rgba(250, 204, 21, 0.6);
    box-shadow: 0 20px 35px -12px rgba(250, 204, 21, 0.25);
}

/* =========================
   ANIMATION - PREMIUM
========================= */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Optional: Add entrance stagger effect for multiple toasts */
.custom-toast {
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

/* Progress bar for auto-dismiss (optional premium feature) */
.custom-toast {
    position: relative;
}

.custom-toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, currentColor, transparent);
    border-radius: 2px;
    animation: progress 3s linear forwards;
}

.custom-toast.success::after { background: linear-gradient(90deg, #4ade80, transparent); }
.custom-toast.error::after { background: linear-gradient(90deg, #f87171, transparent); }
.custom-toast.info::after { background: linear-gradient(90deg, #60a5fa, transparent); }
.custom-toast.warning::after { background: linear-gradient(90deg, #facc15, transparent); }

@keyframes progress {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}