/* Toast Notification Styles */

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

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    padding: 14px 18px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.toast-icon {
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
    color: #333;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

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

/* Toast Types */

.toast-success {
    border-left: 4px solid #4caf50;
}

.toast-success .toast-icon {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

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

.toast-error .toast-icon {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

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

.toast-warning .toast-icon {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

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

.toast-info .toast-icon {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
}

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

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

/* Dark mode support (if implemented later) */
@media (prefers-color-scheme: dark) {
    .toast {
        background: #2d2d2d;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    .toast-message {
        color: #e0e0e0;
    }

    .toast-close {
        color: #999;
    }

    .toast-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
}
