/* Toast Notification Styles */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.toast-critical {
    border-color: var(--accent-red);
    background: rgba(255, 0, 85, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 0, 85, 0.3);
    animation: pulse-border 2s infinite;
}

.toast-warning {
    border-color: var(--accent-yellow);
    background: rgba(255, 215, 0, 0.1);
}

.toast-info {
    border-color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.1);
}

.toast-success {
    border-color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
}

@keyframes pulse-border {
    0%, 100% {
        border-color: var(--accent-red);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(255, 0, 85, 0.3);
    }
    50% {
        border-color: #ff0088;
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(255, 0, 85, 0.6);
    }
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--accent-red);
}

/* Realtime Indicator */
.realtime-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    z-index: 1000;
}

.realtime-indicator.active {
    border-color: var(--accent-green);
}

.realtime-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.realtime-indicator.active .realtime-dot {
    background: var(--accent-green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.realtime-text {
    user-select: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* Action Button in Toast */
.toast-action {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
}

.toast-action-btn {
    flex: 1;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s ease;
}

.toast-action-btn:hover {
    background: rgba(0, 212, 255, 0.2);
}

/* Toast Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-blue);
    width: 100%;
    animation: progress 5s linear;
}

.toast-critical .toast-progress {
    background: var(--accent-red);
}

.toast-warning .toast-progress {
    background: var(--accent-yellow);
}

.toast-success .toast-progress {
    background: var(--accent-green);
}

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