/* File:  app/static/css/tools-panel.css   */
/* Styles for the Tools slide-out pane     */

#tools-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 340px;
  background: #1e1e1e;
  color: #ccc;
  flex-direction: column;
  z-index: 1000;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 16px rgba(0,0,0,0.5);
  overflow-y: auto;
}

#tools-panel.visible {
  transform: translateX(0);
}

#tools-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #333;
  border-bottom: 1px solid #555;
  flex-shrink: 0;
}

#tools-panel-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
#tools-panel-close:hover { color: #fff; }

#tools-body {
  overflow-y: auto;
  flex: 1;
  padding: 10px 12px;
}

#tools-body button {
  width: 100%;
  padding: 6px;
  background: #3a6ea8;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

#tools-body button:hover {
  background: #4a7ec0;
}

#tools-body .section-label {
  margin-top: 30px;
}

#tools-body .section-label:first-child {
  margin-top: 0;
}

#btn-measure-distance.active {
  background: #2a7a3a; /* green when active */
}
#btn-measure-distance.active:hover {
  background: #3a9a4a;
}

#btn-refresh-toggle.active {
  background: #2a7a3a;
}
#btn-refresh-toggle.active:hover {
  background: #3a9a4a;
}
