/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: all;
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Progress bar */
.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    animation: progress linear;
    width: 100%;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Toast types */
.toast.success {
    border-left: 4px solid #28a745;
    color: #28a745;
}

.toast.success .toast-icon {
    background: #28a745;
    color: white;
}

.toast.error {
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

.toast.error .toast-icon {
    background: #dc3545;
    color: white;
}

.toast.warning {
    border-left: 4px solid #ffc107;
    color: #856404;
}

.toast.warning .toast-icon {
    background: #ffc107;
    color: #856404;
}

.toast.info {
    border-left: 4px solid var(--primary-green, #4a5d31);
    color: var(--primary-green, #4a5d31);
}

.toast.info .toast-icon {
    background: var(--primary-green, #4a5d31);
    color: white;
}

/* Toast elements */
.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #2d2d2d;
}

.toast-message {
    font-size: 14px;
    color: #5a5a5a;
    line-height: 1.4;
}

.toast-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    color: #5a5a5a;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

