/* ==================== TOAST NOTIFICATIONS COMPONENT ==================== */
/* Forest Fortune Theme - Warm Amber & Forest Green */

.toast-container {
    position: fixed;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-container.top-right {
    top: 20px;
    right: 20px;
}

.toast-container.top-left {
    top: 20px;
    left: 20px;
}

.toast-container.top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.toast-container.bottom-right {
    bottom: 20px;
    right: 20px;
}

.toast-container.bottom-left {
    bottom: 20px;
    left: 20px;
}

.toast-container.bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.toast {
    background: linear-gradient(135deg, #1B3B2B, #2D5A42);
    border-radius: 16px;
    padding: 14px 20px;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(255, 183, 77, 0.1);
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease forwards;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.toast.success {
    border-left-color: #81C784;
    background: linear-gradient(135deg, #1B3B2B, #1a3a2a);
}

.toast.error {
    border-left-color: #EF5350;
    background: linear-gradient(135deg, #1B3B2B, #2a1a1a);
}

.toast.warning {
    border-left-color: #FFB74D;
    background: linear-gradient(135deg, #1B3B2B, #2a2518);
}

.toast.info {
    border-left-color: #64B5F6;
    background: linear-gradient(135deg, #1B3B2B, #18222e);
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast.success .toast-icon { 
    color: #81C784;
    text-shadow: 0 0 10px rgba(129, 199, 132, 0.3);
}

.toast.error .toast-icon { 
    color: #EF5350;
    text-shadow: 0 0 10px rgba(239, 83, 80, 0.3);
}

.toast.warning .toast-icon { 
    color: #FFB74D;
    text-shadow: 0 0 10px rgba(255, 183, 77, 0.3);
}

.toast.info .toast-icon { 
    color: #64B5F6;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.8rem;
    color: #A8D0B0;
    line-height: 1.4;
}

.toast-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #A8D0B0;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 183, 77, 0.2);
    color: #FFB74D;
    transform: rotate(90deg);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #FFB74D, #FFD699);
    animation: toastProgress linear forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .toast {
        min-width: 260px;
        max-width: 320px;
        padding: 12px 16px;
    }
    
    .toast-container {
        left: 16px;
        right: 16px;
    }
    
    .toast-container.top-center,
    .toast-container.bottom-center {
        left: 16px;
        right: 16px;
        transform: none;
    }
}