body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.status-buttons {
    display: flex;
    gap: 10px;
}

.status-btn {
    border: none;
    padding: 5px 10px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.status-btn.green { background: green; }
.status-btn.blue { background: blue; }
.status-btn.red { background: red; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    bottom: 0;
    background: #222;
    color: white;
    padding: 20px 10px;
    overflow-y: auto;
}

.menu-box {
    margin-bottom: 20px;
    padding: 10px;
    background: #333;
    border-radius: 8px;
}

.menu-box h2 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #f0f0f0;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li {
    margin: 10px 0;
}

.menu-list li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
}

.menu-list li a img {
    width: 20px;
    margin-right: 10px;
}

.menu-list li a:hover {
    background: #444;
}

/* Map */
#map {
    position: absolute;
    top: 60px;
    left: 250px;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Activity Panel */
.activity-panel {
    position: absolute;
    bottom: 20px;
    left: 270px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    width: 300px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#togglePanel {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.navbar {
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-buttons .status-btn {
    margin-left: 10px;
    padding: 5px 15px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: default;
}

.status-btn.green { background-color: #2ecc71; color: white; }
.status-btn.blue { background-color: #2980b9; color: white; }
.status-btn.red { background-color: #e74c3c; color: white; }

.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 200px;
    height: calc(100% - 60px);
    background: #34495e;
    color: white;
    padding: 10px;
    overflow-y: auto;
}

.menu-box h2 {
    margin-top: 20px;
    font-size: 16px;
    color: #ecf0f1;
}

.menu-list {
    list-style: none;
    padding-left: 0;
}

.menu-list li {
    margin: 10px 0;
}

.menu-list li a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.menu-list img {
    width: 20px;
    margin-right: 10px;
}

/* Map + Control overlay */
.map-container {
    margin-left: 200px;
    position: relative;
    height: calc(100vh - 60px);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Activity Panel Container */
.activity-panel {
  position: fixed;
  bottom: 10px; /* Hạ thấp hơn tí nữa */
  left: 260px;  /* Để không đè lên sidebar */
  width: 300px;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 15px;
  z-index: 999;
}

/* Header */
.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.activity-header h3 {
  font-size: 18px;
  color: #333;
}

#togglePanel {
  background-color: #e74c3c;
  border: none;
  color: white;
  font-size: 16px;
  width: 25px;
  height: 25px;
  border-radius: 4px;
  cursor: pointer;
}

/* Common layout blocks */
.gw-block {
  margin-bottom: 15px;
}

.group-block {
  margin-left: 15px;
  margin-top: 5px;
}

.node-block {
  margin-left: 25px;
  margin-top: 3px;
}

/* Buttons */
.gw-btn, .group-btn, .node-btn {
  display: block;
  margin: 4px 0;
  padding: 6px 10px;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: white;
  font-size: 14px;
  transition: 0.2s;
}

/* Gateway button */
.gw-btn {
  background-color: #3498db;
}
.gw-btn:hover {
  background-color: #2980b9;
}

/* Group button */
.group-btn {
  background-color: #2ecc71;
}
.group-btn:hover {
  background-color: #27ae60;
}

/* Node button */
.node-btn {
  background-color: #f39c12;
}
.node-btn:hover {
  background-color: #e67e22;
}

/* Remove list styles (if any left) */
.activity-panel ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.activity-panel li {
  margin: 4px 0;
}
