/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 10px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #2196F3;
}

.toast.toast-error {
    border-left-color: #f44336;
}

.toast.toast-success {
    border-left-color: #4CAF50;
}

.toast.toast-warning {
    border-left-color: #ff9800;
}

.toast.toast-info {
    border-left-color: #2196F3;
}

.toast-icon {
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.toast-error .toast-icon {
    color: #fff;
    background-color: #f44336;
}

.toast-error .toast-icon::before {
    content: '?';
}

.toast-success .toast-icon {
    color: #fff;
    background-color: #4CAF50;
}

.toast-success .toast-icon::before {
    content: '?';
}

.toast-warning .toast-icon {
    color: #fff;
    background-color: #ff9800;
}

.toast-warning .toast-icon::before {
    content: '?';
}

.toast-info .toast-icon {
    color: #fff;
    background-color: #2196F3;
}

.toast-info .toast-icon::before {
    content: '?';
}

.toast-content {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.toast-close:hover {
    background: #f5f5f5;
    color: #666;
}

@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;
    }
}

.toast.toast-hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}
