html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f8f8f8;
}

#app, svg {
  width: 100vw;
  height: 100vh;
  display: block;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  html, body {
    font-size: 14px;
  }
  
  #app, svg {
    width: 100vw;
    height: 100vh;
    touch-action: manipulation;
  }
  
  /* Ensure navigation buttons are visible on mobile */
  .nav-buttons {
    position: fixed !important;
    top: 8px !important;
    left: 10px !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
  }
  
  .nav-controls {
    position: fixed !important;
    top: 8px !important;
    right: 10px !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
  }
  
  .nav-button {
    font-size: 10px !important;
    padding: 4px 8px !important;
    margin-left: 3px !important;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  .node-box {
    min-height: 44px;
    min-width: 44px;
  }
  
  .context-menu {
    min-height: 44px;
  }
  
  .context-menu button {
    min-height: 44px;
    padding: 8px 12px;
  }
}

.node-odd {
  fill: #A9A9A9;
}
.node-even {
  fill: #D3D3D3;
}

.node-selected rect {
  stroke: #0078D4;
  stroke-width: 3px;
}

.node-active rect {
  stroke: #FF9800;
  stroke-width: 3px;
}

.node-label {
  pointer-events: none;
  user-select: none;
}

.floating-controls {
  position: absolute;
  z-index: 10;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 6px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.floating-controls button {
  background: #0078D4;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}
.floating-controls button:hover {
  background: #005a9e;
} 

/* Share info display */
.share-info {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Shared page specific styles */
.shared-page .header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #007bff;
}

.shared-page .nav-buttons {
    opacity: 0.7;
}

.shared-page .nav-controls {
    opacity: 0.7;
} 