/* ==========================================
   MODERN TOAST NOTIFICATION SYSTEM
   Inspired by: Google, Amazon, LinkedIn
   ========================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(400px);
}

/* Toast Types */
.toast.success {
    border-left: 4px solid #2D5016;
}

.toast.error {
    border-left: 4px solid #F44336;
}

.toast.warning {
    border-left: 4px solid #FF8C42;
}

.toast.info {
    border-left: 4px solid #FF8C42;
}

/* Toast Icon */
.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast.success .toast-icon {
    background: #E8F5E9;
    color: #2D5016;
}

.toast.error .toast-icon {
    background: #FFEBEE;
    color: #F44336;
}

.toast.warning .toast-icon {
    background: #FFF3E0;
    color: #FF8C42;
}

.toast.info .toast-icon {
    background: #FFF3E0;
    color: #FF8C42;
}

.toast-icon svg {
    width: 16px;
    height: 16px;
}

/* Toast Content */
.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin: 0;
}

.toast-message {
    font-size: 13px;
    color: #757575;
    margin: 0;
    line-height: 1.5;
}

/* Close Button */
.toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
    padding: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.toast-close svg {
    width: 14px;
    height: 14px;
    color: #9E9E9E;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: toast-progress 5s linear forwards;
}

.toast.success .toast-progress {
    color: #2D5016;
}

.toast.error .toast-progress {
    color: #F44336;
}

.toast.warning .toast-progress {
    color: #FF8C42;
}

.toast.info .toast-progress {
    color: #FF8C42;
}

@keyframes toast-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}
