/* /static/css/menu.css */

.menu-container {
  position: relative;
  display: inline-block;
  margin-left: 12px;
}

.menu-toggle {
  padding: 8px 14px;
  background-color: #1f8f1f;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.menu-toggle:hover {
  background-color: #2dbf2d;
}

#menu-dropdown {
  position: absolute;
  right: 0;
  top: 110%;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0, 255, 100, 0.15);
  display: none;
  flex-direction: column;
  padding: 12px;
  width: 220px;
  animation: fadeSlideDown 0.3s ease-out;
  z-index: 999999;
}

#menu-dropdown.open {
  display: flex;
}

#menu-dropdown a {
  padding: 10px 12px;
  margin: 4px 0;
  background-color: #2a2a2a;
  color: #eee;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.2s ease-in-out;
}

#menu-dropdown a:hover {
  background-color: #3c3c3c;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#menu-dropdown a.active-page {
  background-color: #444;
  color: #fff;
  font-weight: bold;
  border-left: 4px solid #00cc66;
  padding-left: 10px;
  transition: all 0.3s ease;
}

/* Config sync indicator */
.sync-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    margin-left: 8px;
    vertical-align: middle;
    cursor: help;
    transition: background 0.3s;
}

.sync-indicator.connected {
    background: #4caf50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.6);
}

.sync-indicator.disconnected {
    background: #f44336;
    box-shadow: 0 0 4px rgba(244, 67, 54, 0.6);
}
