/* 
   Cyberpunk Dark Mode Theme 
   Scoped under .caicgame-container 
*/

.caicgame-container {
  font-family: 'Orbitron', sans-serif;
  background-color: #0d0d0d;
  color: #00ffff;
}

/* Because we also have dynamic colors from the mod,
   the actual color usage can be updated by JS if needed.
   These are our defaults. */

.caicgame-container h5,
.caicgame-container h3,
.caicgame-container label {
  color: #00ffff;
}

.caicgame-container .small {
  color: #00ffff;
}

.caicgame-container .sidebar {
  background-color: #1a1a1a;
  padding: 10px;
  height: 100vh;
  overflow-y: auto;
}

.caicgame-container .main-content {
  background-color: #0d0d0d;
  padding: 20px;
}

.caicgame-container .btn-cyberpunk {
  background-color: #00ffff;
  color: #0d0d0d;
  border: 1px solid #00ffff;
  margin-bottom: 10px;
}

.caicgame-container .btn-cyberpunk:hover {
  background-color: #00cccc;
  color: #0d0d0d;
}

.caicgame-container .progress.cyberpunk-progress {
  background-color: #1a1a1a;
  height: 20px;
  margin-bottom: 10px;
}

.caicgame-container #health-bar,
.caicgame-container #mobile-health-bar {
  background-color: #ff0066;
}

.caicgame-container #experience-bar,
.caicgame-container #mobile-experience-bar {
  background-color: #66ff66;
}

.caicgame-container #tokens-bar,
.caicgame-container #mobile-tokens-bar {
  background-color: #0099ff;
}

.caicgame-container #mobile-level-bar {
  background-color: #00cccc;
}

.caicgame-container #captured-ais ul,
.caicgame-container #inventory ul,
.caicgame-container #mobile-captured-ais ul,
.caicgame-container #mobile-inventory ul {
  background-color: #1a1a1a;
}

.caicgame-container #captured-ais .list-group-item,
.caicgame-container #inventory .list-group-item,
.caicgame-container #mobile-captured-ais .list-group-item,
.caicgame-container #mobile-inventory .list-group-item {
  background-color: #262626;
  color: #00ffff;
  border: 1px solid #00ffff;
}

.caicgame-container #captured-ais .list-group-item.active,
.caicgame-container #inventory .list-group-item:hover,
.caicgame-container #mobile-captured-ais .list-group-item.active,
.caicgame-container #mobile-inventory .list-group-item:hover {
  background-color: #00ffff;
  color: #0d0d0d;
}

.caicgame-container #event-buttons .event-button {
  background-color: #262626;
  color: #00ffff;
  border: 1px solid #00ffff;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  padding: 0.75rem 1rem;
  margin: 5px;
  flex: 1 1 auto; 
}

.caicgame-container #event-buttons .event-button:hover {
  background-color: #00ffff;
  color: #0d0d0d;
}

.caicgame-container #action-buttons .btn {
  background-color: #262626;
  color: #00ffff;
  border: 1px solid #00ffff;
  margin: 5px;
  flex: 1 1 auto;
}

.caicgame-container #action-buttons .btn:hover {
  background-color: #00ffff;
  color: #0d0d0d;
}

.caicgame-container .breadcrumb {
  background-color: transparent;
  padding: 0;
}

.caicgame-container .breadcrumb .breadcrumb-item {
  color: #00ffff;
}

.caicgame-container #area-title {
  color: #00ffff;
}

.caicgame-container #area-image-container {
  text-align: center;
  margin-bottom: 20px;
}

.caicgame-container #area-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border: 2px solid #00ffff;
}

.caicgame-container #event-log {
  background-color: #000000;
  color: #00ff00;
  font-family: 'Courier New', Courier, monospace;
  padding: 10px;
}

.caicgame-container #event-log h5 {
  color: #00ff00;
}

.caicgame-container #log-list .list-group-item {
  background-color: #000000;
  color: #00ff00;
  border: none;
  padding: 2px 5px;
}

.caicgame-container #save-load-buttons .btn {
  background-color: #262626;
  color: #00ffff;
  border: 1px solid #00ffff;
  margin-right: 10px;
}

.caicgame-container #save-load-buttons .btn:hover {
  background-color: #00ffff;
  color: #0d0d0d;
}

.caicgame-container #navigation-buttons {
  margin-top: 20px;
}

.caicgame-container #navigation-buttons button {
  width: 100%;
  margin-bottom: 10px;
  background-color: #262626;
  color: #00ffff;
  border: 1px solid #00ffff;
}

.caicgame-container #navigation-buttons button:hover {
  background-color: #00ffff;
  color: #0d0d0d;
}

.caicgame-container #navigation-buttons .my-2 {
  display: flex;
  justify-content: space-between;
}

.caicgame-container #navigation-buttons .my-2 button {
  width: 48%;
}

/* Scrollbars */
.caicgame-container ::-webkit-scrollbar {
  width: 8px;
}
.caicgame-container ::-webkit-scrollbar-track {
  background: #1a1a1a;
}
.caicgame-container ::-webkit-scrollbar-thumb {
  background: #00ffff;
}
.caicgame-container ::-webkit-scrollbar-thumb:hover {
  background: #00cccc;
}

/* Mobile Styles */
@media (max-width: 767.98px) {
  .caicgame-container .sidebar {
      display: none;
  }

  .caicgame-container .main-content {
      padding: 10px;
      margin-top: 160px; /* Adjusted for fixed header height */
  }

  .caicgame-container #area-title {
      font-size: 1.5rem;
  }

  .caicgame-container .event-button,
  .caicgame-container #action-buttons .btn {
      width: 100%;
      display: block;
      margin-bottom: 10px;
  }

  .caicgame-container #event-log h5 {
      font-size: 1rem;
  }

  .caicgame-container #event-log ul {
      font-size: 0.9rem;
  }

  .caicgame-container .mobile-stats .col {
      padding: 5px;
      text-align: center;
  }

  .caicgame-container .mobile-stats small {
      font-size: 0.8rem;
  }

  .caicgame-container .mobile-stats .progress {
      height: 10px;
      margin-bottom: 5px;
  }

  /* Fixed Mobile Header */
  .caicgame-container #mobile-header {
      position: fixed;
      top: 0;
      width: 100%;
      background-color: #0d0d0d;
      z-index: 1000;
      border-bottom: 1px solid #00ffff;
      padding: 10px;
  }

  .caicgame-container .mobile-stats,
  .caicgame-container .mobile-navigation {
      margin: 0;
  }

  .caicgame-container .mobile-navigation .d-flex {
      gap: 5px;
  }

  .caicgame-container .mobile-navigation .d-flex .btn {
      flex: 1;
  }

  .caicgame-container .row.d-flex.d-md-none.mt-3 {
      display: flex !important;
      flex-wrap: nowrap;
  }

  .caicgame-container .row.d-flex.d-md-none.mt-3 .col-6 {
      flex: 0 0 50%;
      max-width: 50%;
  }

  .caicgame-container #mobile-captured-ais h5,
  .caicgame-container #mobile-inventory h5 {
      font-size: 1rem;
      margin-bottom: 5px;
  }

  .caicgame-container #mobile-captured-ais .list-group-item,
  .caicgame-container #mobile-inventory .list-group-item {
      font-size: 0.8rem;
  }

  /* Fix for sticky header overlapping content */
  .caicgame-container #mobile-header {
      margin-bottom: 10px;
  }
}

/* Desktop & Tablet: Make #event-buttons / #action-buttons flex and wrap */
@media (min-width: 768px) {
  #event-buttons,
  #action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}
