/* ═══════════════════════════════════════════════════════════════════════════════
   MGraph HTML Graph - Server Reload Detector Styles
   v0.2.10
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Toggle button */
.auto-reload-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 8px;
}

.auto-reload-toggle:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #666;
}

.auto-reload-toggle.active {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
}

.auto-reload-toggle.active:hover {
    background: rgba(34, 197, 94, 0.2);
}

.auto-reload-toggle span {
    font-size: 12px;
}

/* Maximize mode toggle */
.maximize-toolbar .auto-reload-toggle.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

/* Toast notification */
.server-reload-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-reload-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Connecting indicator */
.auto-reload-toggle.connecting {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* Toast for graph-canvas */
.graph-canvas-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.graph-canvas-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}