/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* CCTV Monitoring System Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  color: #ffffff;
  font-family: sans-serif;
  overflow: hidden;
}

/* App Container Styles */
.app-container {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* Page Container Styles */
.page-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.page-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;  /* 添加 visibility 双重保险 */
  transform: translateX(20px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;  /* 禁用所有交互 */
  z-index: -1;  /* 放到最底层，避免遮挡 */
}

.page-content.active {
  opacity: 1;
  visibility: visible;  /* 恢复可见性 */
  transform: translateX(0);
  pointer-events: auto;  /* 恢复交互 */
  z-index: 1;  /* 提升到顶层 */
}

.page-header {
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid #333;
}

.page-header h2 {
  margin: 0;
  color: #00ff88;
  font-size: 20px;
}

.nav-btn-divider {
  color: white;
  border:1px solid #666;
}

/* Venue Page Styles */
.venue-content {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  padding: 20px 30px;
  overflow: auto;
}

.overview-card {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.overview-card h3 {
  margin: 0 0 15px 0;
  color: #00ff88;
  font-size: 16px;
}

.venue-map {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.venue-map h3 {
  margin: 0 0 15px 0;
  color: #00ff88;
  font-size: 16px;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px dashed #333;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-content {
  color: #666;
  font-size: 16px;
}

.hover-box-shadow:hover {
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.hover-outline-primary:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.active-scale-85:active {
  transform: scale(0.85);
}



.online-count {
  color: #00ff88;
  font-weight: bold;
}

@keyframes pointLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
}

/* Bottom Action Bar */
.bottom-action-bar {
  border-top: 2px solid #333;
  background: rgba(15, 15, 15, 0.95);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.action-buttons {
  display: flex;
  padding: 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #555 #2a2a2a;
}

.action-buttons::-webkit-scrollbar {
  height: 6px;
}

.action-buttons::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.action-buttons::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

.action-buttons::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.action-btn {
  background: transparent;
  border: none;
  border-right: 1px solid #333;
  color: #ccc;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.action-btn:last-child {
  border-right: none;
}

.action-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  color: #fff;
}

.action-btn.active {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
  border-bottom: 2px solid #00ff88;
}

.btn-text {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.unassigned-count {
  background: #00ff88;
  color: #000;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.expandable-content {
  max-height: 250px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.expandable-content.collapsed {
  max-height: 0;
  opacity: 0;
}

.content-panel {
  display: none;
  padding: 20px;
  height: 250px;
  overflow-y: auto;
}

.content-panel.active {
  display: block;
}

.content-panel .helmet-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  overflow-x: auto;
}

.content-panel .helmet-item {
  margin-bottom: 0;
}

/* Venue Monitoring Styles */
.venue-container {
  display: flex;
  height: 100%;
  width: 100%;
}

.venue-canvas-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  overflow: hidden;
}

.venue-canvas-container canvas {
  border: 2px solid #333;
  border-radius: 8px;
  background: #000;
  cursor: crosshair;
}

.venue-control-panel {
  width: 350px;
  background: rgba(15, 15, 15, 0.95);
  border-left: 2px solid #333;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.venue-control-panel.collapsed {
  width: 0px;
}

.venue-control-panel .panel-header {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-bottom: 2px solid #333;
  padding: 15px 20px;
  position: relative;
  z-index: 10;
}

.venue-control-panel .panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.venue-control-panel.collapsed .panel-content {
  opacity: 0;
  overflow: hidden;
}


/* Helmets and Unassigned Sections */
.helmets-section, .unassigned-section {
  margin-bottom: 30px;
}

.helmets-section h3, .unassigned-section h3 {
  margin-bottom: 20px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.helmets-section h3::before {
  content: '🎮';
  font-size: 20px;
}

.unassigned-section h3::before {
  content: '📦';
  font-size: 20px;
}

/* Group Views */
.group-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.group-view.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Unassigned Helmets Section */
.unassigned-helmets {
  margin-bottom: 30px;
}

.unassigned-helmets h3 {
  color: #00ff88;
  margin-bottom: 15px;
  font-size: 16px;
}

.helmet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-radius: 8px;
  min-height: 80px;
}

.helmet-item {
  /*display: flex.css;*/
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px 12px;
  transition: all 0.3s ease;
  min-width: 150px;
}

.helmet-item.dragging,
.helmet-card.dragging {
  opacity: 0.5;
  transform: rotate(5deg);
  cursor: grabbing;
}

.helmet-card[draggable="true"] {
  cursor: grab;
}

.helmet-item.online {
  border-left: 3px solid #00ff88;
}

.helmet-item.offline {
  border-left: 3px solid #ff4444;
}

.helmet-item.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed !important;
  filter: grayscale(50%);
  background: rgba(30, 30, 30, 0.4) !important;
  border-color: #333 !important;
}

.helmet-item.disabled:hover {
  border-color: #333 !important;
  box-shadow: none !important;
  transform: none !important;
}

.helmet-info {
  display: flex;
  flex-direction: column;
}

.helmet-info-header{
  display: flex;
  justify-content: space-between;
}

.helmet-name {
  font-weight: bold;
  color: #fff;
  font-size: 13px;
  margin-bottom: 2px;
}

.helmet-id {
  color: #ccc;
  font-size: 11px;
}

.helmet-status {
  display: flex;
  align-items: center;
}

/* Drag and Drop Effects */
.group-card.drag-over {
  border-color: #00ff88 !important;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4) !important;
  transform: scale(1.02);
}

/* Group Detail View */
.header-with-back {
  display: flex;
  align-items: center;
  gap: 15px;
}

.group-detail-content {
  flex: 1;
  overflow: auto;
}

.group-info-panel {
  display: flex;
  flex-direction: column;
}

.group-info-card {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.group-info-card h3 {
  margin: 0 0 15px 0;
  color: #00ff88;
  font-size: 18px;
}

.group-detail-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Unassigned helmets in detail view */
.unassigned-helmets-detail {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.unassigned-helmets-detail h3 {
  margin: 0 0 15px 0;
  color: #00ff88;
  font-size: 16px;
}

/* Drop zone styling */
.drop-zone {
  transition: all 0.3s ease;
}

.drop-zone.drag-over,
#unassignedListDetail.drag-over {
  border: 2px dashed #00ff88 !important;
  background-color: rgba(0, 255, 136, 0.1) !important;
  transform: scale(1.01);
}

.helmets-grid h3 {
  color: #00ff88;
  margin-bottom: 15px;
  font-size: 16px;
}

.group-helmets-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.helmet-card {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.helmet-card:hover {
  /*border-color: #00ff88;*/
  background-color: rgba(255, 255, 255, 0.1);
  /*box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);*/
}

.helmet-card.online {
  border-left: 3px solid #00ff88;
}

.helmet-card.offline {
  border-left: 3px solid #ff4444;
}

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

.helmet-card-header .helmet-name {
  font-weight: bold;
  color: #fff;
  font-size: 14px;
}

.helmet-card-content {
  margin-bottom: 12px;
}

.helmet-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}

.helmet-info-row span:first-child {
  color: #ccc;
  margin-right: 8px;
}

.helmet-info-row .battery-display {
  gap: 6px;
}

.helmet-info-row .battery-bar {
  width: 30px;
  height: 6px;
}

.helmet-info-row .battery-text {
  font-size: 10px;
  min-width: 25px;
}

.cctv-container {
  display: flex;
  height: 100%;
  background: transparent;
}

/* Control Panel Styles */
.control-panel {
  width: 300px;
  background: rgba(20, 20, 20, 0.95);
  border-left: 2px solid #333;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
<<<<<<< Updated upstream
z-index: 1000;
  order: 2;
=======
<<<<<<< Updated upstream
z-index: 1000;
  overflow-y: auto;
=======
>>>>>>> Stashed changes
order: 2;
>>>>>>> Stashed changes
flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.control-panel.collapsed {
  width: 0;
  min-width: 0;
  border-left: none;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-bottom: 1px solid #333;
}

.panel-header h3 {
  margin: 0;
  color: #00ff88;
  font-size: 18px;
  font-weight: bold;
}

.panel-content {
  padding: 20px;
}

/* Panel content wrapper for sliding containers */
.panel-content-wrapper {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.panel-content-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.panel-content-container.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.panel-content-container.panel-control.active {
  transform: translateX(0);
}

.panel-content-container.panel-details.active {
  transform: translateX(0);
}

/* Sliding direction */
.panel-content-wrapper.slide-to-details .panel-control {
  transform: translateX(-100%);
  opacity: 0;
}

.panel-content-wrapper.slide-to-details .panel-details {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.panel-content-wrapper.slide-to-control .panel-details {
  transform: translateX(100%);
  opacity: 0;
}

.panel-content-wrapper.slide-to-control .panel-control {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.grid-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.grid-btn.active {
  background: var(--bs-primary);
  color: #000;
  border-color: var(--bs-primary);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.helmet-info-row {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
}

.helmet-info-row span:first-child {
  color: #bbb;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
  animation: pulse 2s infinite;
}

.status-dot.online {
  background: #00ff88;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.status-dot.offline {
  background: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

/* Animations */
@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0.3;
  }
}

.recording-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  animation: blink 1s infinite;
}

/* Custom Checkbox Styling */
.form-check-input:checked {
  background-color: #00ff88;
  border-color: #00ff88;
}

.form-check-input:focus {
  border-color: #00ff88;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
}

.form-check-input:checked:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
}

/* Custom styling for group checkboxes */
.checkbox-label input[type="checkbox"] {
  accent-color: #00ff88;
}

.checkbox-label input[type="checkbox"]:checked {
  background-color: #00ff88;
  border-color: #00ff88;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .control-panel {
    width: 280px;
  }

  .grid-24 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .control-panel {
    width: 100%;
    position: absolute;
    height: 100%;
  }

  .control-panel.collapsed {
    transform: translateX(-100%);
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* Range slider with green fill */
.form-range {
  width: 100%;
  height: 1.5rem;
  padding: 0;
  background-color: transparent;
  appearance: none;
}

.form-range::-webkit-slider-track {
  width: 100%;
  height: 0.5rem;
  color: transparent;
  cursor: pointer;
  background: #dee2e6;
  border-radius: 1rem;
  border: transparent;
}

.form-range::-webkit-slider-thumb {
  width: 1rem;
  height: 1rem;
  margin-top: -0.25rem;
  background: #00ff88;
  border-radius: 1rem;
  border: 0;
  appearance: none;
  cursor: pointer;
}

.form-range::-moz-range-track {
  width: 100%;
  height: 0.5rem;
  color: transparent;
  cursor: pointer;
  background: #dee2e6;
  border-radius: 1rem;
  border: transparent;
}

.form-range::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  background: #00ff88;
  border-radius: 1rem;
  border: 0;
  cursor: pointer;
}

.form-range::-ms-track {
  width: 100%;
  height: 0.5rem;
  color: transparent;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 0.5rem 0;
}

.form-range::-ms-fill-lower {
  background: #00ff88;
  border-radius: 1rem;
}

.form-range::-ms-fill-upper {
  background: #dee2e6;
  border-radius: 1rem;
}

.form-range::-ms-thumb {
  width: 1rem;
  height: 1rem;
  background: #00ff88;
  border-radius: 1rem;
  border: 0;
  cursor: pointer;
}

/* Custom green fill for webkit browsers */
#nodeDiameter::-webkit-slider-runnable-track,
#moveDistance::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #00ff88 0%, #00ff88 var(--range-progress, 50%), #dee2e6 var(--range-progress, 50%), #dee2e6 100%);
}

/* Custom green fill for Firefox */
#nodeDiameter::-moz-range-track,
#moveDistance::-moz-range-track {
  background: linear-gradient(to right, #00ff88 0%, #00ff88 var(--range-progress, 50%), #dee2e6 var(--range-progress, 50%), #dee2e6 100%);
}

/* Application Management Styles */
.app-files-section h5 {
  font-weight: bold;
}

.app-file-item {
  background: rgba(20, 20, 20, 0.8);
  border-color: #333 !important;
  transition: all 0.3s ease;
}

.app-file-item:hover {
  background: rgba(30, 30, 30, 0.9);
  border-color: #00ff88 !important;
  transform: translateY(-2px);
}

.app-file-item .badge {
  font-size: 10px;
  font-weight: bold;
}

.app-file-item h6 {
  color: #fff;
  font-size: 14px;
}

.app-file-item small {
  color: #ccc;
  font-size: 11px;
}

.app-file-item p {
  color: #bbb;
  font-size: 12px;
}

.app-files-list {
  overflow-y: auto;
}

.no-apps, .no-files {
  color: #666;
  font-style: italic;
}

.search-filter-bar {
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-filter-bar .search-box {
  flex: 1;
}

.search-filter-bar .filter-options {
  display: flex;
  gap: 10px;
}

.search-filter-bar .filter-options select {
  min-width: 120px;
}

/* Form control styling for dark theme */
.form-control, .form-select {
  background-color: rgba(40, 40, 40, 0.8);
  border-color: #555;
  color: #fff;
}

.form-control:focus, .form-select:focus {
  background-color: rgba(50, 50, 50, 0.9);
  border-color: #00ff88;
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
  color: #fff;
}

.form-control::placeholder {
  color: #aaa;
}

/* Auto-sizing number inputs for range sliders */
input[type="number"].form-control-sm {
  padding-right: 8px;
}

/* Remove spinner arrows that might overlap text */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  /*-webkit-appearance: none;*/
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}

/* Ensure number input containers have proper spacing */
.input-group.w-auto {
  min-width: fit-content;
}

/* Helmet card dropdown styling */
.helmet-card .dropdown-toggle {
  border: none;
  background: transparent;
  color: #999;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.helmet-card .dropdown-toggle:hover,
.helmet-card .dropdown-toggle:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  box-shadow: none;
}

.helmet-card .dropdown-menu {
  background-color: rgba(40, 40, 40, 0.95);
  border: 1px solid #555;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.6);
  min-width: 140px;
}

.helmet-card .dropdown-item {
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.helmet-card .dropdown-item:hover,
.helmet-card .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.helmet-card .dropdown-item.text-danger:hover {
  background-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.form-text {
  color: #bbb;
}

/* Venue Setup Modal Styles */
.venue-setup-controls {
  background-color: rgba(40, 40, 40, 0.8);
  border-radius: 8px;
  padding: 1rem;
  height: fit-content;
}

.image-upload-area {
  border: 2px dashed #555;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(60, 60, 60, 0.3);
}

.image-upload-area:hover {
  border-color: #00ff88;
  background-color: rgba(0, 255, 136, 0.1);
}

.image-upload-area.drag-over {
  border-color: #00ff88;
  background-color: rgba(0, 255, 136, 0.2);
  transform: scale(1.02);
}

.upload-placeholder {
  color: #999;
}

.upload-placeholder i {
  color: #666;
}

.venue-setup-canvas {
  border: 1px solid #555;
  border-radius: 4px;
  max-width: 100%;
  max-height: 600px;
  cursor: crosshair;
}

.canvas-placeholder {
  background-color: rgba(40, 40, 40, 0.3);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-placeholder i {
  color: #666;
}

.area-stats {
  background-color: rgba(60, 60, 60, 0.5);
  padding: 0.5rem;
  border-radius: 4px;
}

/* Drawing mode button states */
.btn-drawing-active {
  background-color: #00ff88 !important;
  color: #000 !important;
  border-color: #00ff88 !important;
}

/* Area edit options */
.area-edit-options {
  background-color: rgba(60, 60, 60, 0.9);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid #555;
}

.selected-area-info h6 {
  color: #00ff88;
  margin-bottom: 0.5rem;
}

.selected-area-info .badge {
  font-size: 0.75rem;
}

/* Modal styling adjustments */
.modal-content {
  background-color: #2a2a2a;
  border: 1px solid #444;
}

.modal-header {
  border-bottom-color: #444;
}

.modal-footer {
  border-top-color: #444;
}

.modal-title {
  color: #fff;
}

.btn-close {
  filter: invert(1);
}

/* Game Session Status Bar Styles */
.game-session-status {
  background: linear-gradient(135deg, #1a4d1a 0%, #0d2d0d 100%);
  border-bottom: 2px solid #00ff88;
  padding: 15px 20px;
  position: relative;
  overflow: hidden;
}

.game-session-status::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  animation: scanLine 3s infinite;
}

@keyframes scanLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.session-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.session-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot.playing {
  background: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
  animation: pulse 1.5s infinite;
}

.status-text {
  color: #00ff88;
  font-weight: bold;
  font-size: 16px;
}

.session-details {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.session-detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.detail-label {
  color: #aaa;
  font-size: 11px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-detail-item span:last-child {
  color: #fff;
  font-weight: bold;
  font-size: 13px;
}

/* Application Selection Modal Styles */
.app-selection-list, .version-selection-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #444;
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.8);
}

.app-selection-item, .version-selection-item {
  padding: 15px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.app-selection-item:last-child, .version-selection-item:last-child {
  border-bottom: none;
}

.app-selection-item:hover, .version-selection-item:hover {
  background: rgba(50, 50, 50, 0.8);
  border-left: 3px solid #00ff88;
}

.app-selection-item h6, .version-selection-item h6 {
  color: #fff;
  margin-bottom: 5px;
}

.app-selection-item small, .version-selection-item small {
  color: #bbb;
}

.app-selection-item .badge, .version-selection-item .badge {
  font-size: 10px;
}

/* Form check styling for selection */
.app-selection-item .form-check-input:checked,
.version-selection-item .form-check-input:checked {
  background-color: #00ff88;
  border-color: #00ff88;
}

/* Disabled states during game session */
.disabled-drop-zone {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

.disabled-drop-zone::after {
  content: '遊玩期間無法操作';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: #ff4444;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
}

.disabled-drag {
  opacity: 0.5;
  cursor: not-allowed;
}

.disabled-drag:hover {
  border-color: #ff4444 !important;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.3) !important;
}

/* Button disabled states */
button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #444 !important;
  border-color: #444 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .session-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .session-details {
    width: 100%;
    justify-content: space-between;
    gap: 15px;
  }

  .session-detail-item {
    flex: 1;
    min-width: 0;
  }
}

/* Group Session Indicator in Sidebar */
.group-session-indicator {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #1a4d1a 0%, #0d2d0d 100%);
  border: 1px solid #00ff88;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  color: #00ff88;
  animation: pulse 2s infinite;
}

/* Helmet App Installation Styles */
.selected-helmets-info {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #444;
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.8);
  padding: 10px;
}

.selected-helmet-item {
  margin-bottom: 8px;
}

.selected-helmet-item:last-child {
  margin-bottom: 0;
}

.selected-helmet-item .border {
  border-color: #444 !important;
  background: rgba(40, 40, 40, 0.5);
  transition: all 0.3s ease;
}

.selected-helmet-item:hover .border {
  border-color: #00ff88 !important;
  background: rgba(50, 50, 50, 0.7);
}

/* Installation Progress Styles */
.installation-progress p {
  margin-bottom: 8px;
}

.installation-progress hr {
  border-color: #444;
  margin: 15px 0;
}

#installProgressText {
  color: #00ff88;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

/* Installation Results Styles */
.installation-results h5 {
  color: #00ff88;
  border-bottom: 1px solid #444;
  padding-bottom: 8px;
}

.installation-results h6 {
  color: #fff;
  margin-bottom: 10px;
}

.results-details {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
}

.result-item {
  padding: 5px 0;
}

.result-item:last-child {
  border-bottom: none !important;
}

.result-item strong {
  color: #fff;
}

.result-item small {
  color: #aaa;
}

/* Progress bar styling */
.progress {
  background-color: #2a2a2a;
  border: 1px solid #444;
  height: 8px;
}

.progress-bar {
  background: linear-gradient(90deg, #00ff88, #00cc6a);
}

.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
}

