html, body, #cesiumContainer { 
  width: 100%; 
  height: 100%; 
  margin: 0; 
  padding: 0; 
  overflow: hidden; 
  background-color: #000; 
}
.material-icons {
    font-size: 12px;
}

/* HEADER & TITLE */
#ui-overlay-header {
  position: absolute; top: 0; left: 0; width: 100%; z-index: 9999;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  color: white; padding: 20px 30px; display: flex; align-items: center;
  pointer-events: none; font-family: 'Helvetica Neue', Arial, sans-serif;
  z-index: 999; 
  pointer-events: none;
}
.title { 
  font-weight: 300; 
  letter-spacing: 4px; 
  font-size: 1.2rem; 
  text-transform: uppercase; 
}

/* NAVIGATION BUTTONS (Home / Top-Down) */
#home-button, #top-down-button {
  background: rgba(40, 40, 40, 0.8);
  color: white;
  border: 1px solid #555;
  width: 40px; 
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 18px;
  transition: background 0.2s;
  pointer-events: auto;
}
#home-button:hover, #top-down-button:hover {
  background: #ff6319;
  border-color: #ff6319;
}

/* TOGGLE MODEL BUTTON */
#toggle-model-button {
  background: rgba(40, 40, 40, 0.8);
  color: white;
  border: 1px solid #555;
  height: 32px; 
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px; 
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  
  transition: all 0.2s ease;
  pointer-events: auto;
}
#toggle-model-button:hover {
  background: #ff6319;
  border-color: #ff6319;
  color: black;
}
#toggle-model-button.is-off {
  background: rgba(20, 20, 20, 0.9) !important;
  color: #666;
  border-color: #333;
  height: 32px; 
}
#toggle-model-button.is-off:hover {
  background: #ff6319 !important;
  border-color: #ff6319;
  color: black;
  transform: translateY(0);
  box-shadow: none;
}

/* SIDE PANEL */
#side-panel {
  position: absolute;
  top: 70px;
  left: 20px;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  width: 280px;
  transition: all 0.4s ease-in-out;
}
#line-toggle-container {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 100vh;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, opacity 0.3s;
  opacity: 1;
}
#side-panel.collapsed #line-toggle-container {
  max-height: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
}
#panel-toggle-btn {
  background: none;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  pointer-events: none;
}
#line-toggle-container::-webkit-scrollbar {
  width: 4px;
}
#line-toggle-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  color: white;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(40, 40, 40, 0.8);
}
.group-row {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  background: rgba(40, 40, 40, 0.8);
  padding: 4px 8px;
  border-radius: 20px;
  width: fit-content;
}

/* LINE TOGGLES */
.line-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: #FF6319;
  color: white;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-right: 15px;
}
.line-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  color: white;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.line-toggle-btn[data-line="N"], 
.line-toggle-btn[data-line="Q"], 
.line-toggle-btn[data-line="R"], 
.line-toggle-btn[data-line="W"] {
  color: black;
}
.line-toggle-btn:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}
.line-toggle-btn.is-off {
  background-color: #222 !important;
  color: #555;
  border-color: #444;
  box-shadow: none;
  filter: grayscale(1);
  opacity: 0.6;
}

/* GROUP TOGGLES */
.master-toggle-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s;
    pointer-events: auto;
}
.master-toggle-btn .material-icons {
    font-size: 14px;
}
.master-toggle-btn.is-off {
    opacity: 0.4;
    background: transparent;
}
.master-toggle-btn.is-off .material-icons {
    content: 'visibility_off';
}
