/* === THEME OVERRIDES & BASE === */
:root {
  --bs-body-bg: #111;
  --bs-body-color: #0f0;
  --bs-border-color: #0f0;
  --bs-primary: #0f0;
  --bs-secondary: #aaa;
  --bs-success: #0a0;
  --bs-light: #222;
}

body {
  font-family: 'Courier New', monospace;
}

/* === LAYOUT === */
.sidebar {
  background-color: #0d1a0d;
  border-right: 1px solid var(--bs-border-color);
  overflow-y: auto;
}

.content-area {
  overflow-y: auto;
}

/* === BOOTSTRAP COMPONENT CUSTOMIZATION === */

/* Buttons */
.btn {
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.btn-outline-light {
    --bs-btn-color: #0f0;
    --bs-btn-border-color: #0f0;
    --bs-btn-hover-bg: #0f0;
    --bs-btn-hover-color: #000;
}

/* Modals */
.modal-content {
  background-color: #0a0a0a;
  border: 2px solid #0f0;
  box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
}

.modal-header, .modal-footer {
    border-bottom: 1px solid #0f0;
    border-top: 1px solid #0f0;
}

/* Toasts */
.toast {
    background-color: #0a0a0a;
    border: 1px solid gold;
}

/* Upgrades & Glossary List Group */
.list-group-item {
    background-color: rgba(0, 255, 0, 0.07);
    border: 1px solid rgba(0, 255, 0, 0.2);
}
.list-group-item.disabled, .list-group-item:disabled {
    background-color: rgba(100, 100, 100, 0.1);
    color: #555;
    border-color: #555;
}
.list-group-item:hover:not(:disabled) {
  background-color: rgba(0, 255, 0, 0.2);
  color: #fff;
  cursor: pointer;
}

/* === CUSTOM GAME UI (Non-Bootstrap) === */

/* Achievements */
.achievement-card {
    border: 1px solid #444;
    transition: all 0.3s ease;
    opacity: 0.6;
    background-color: #1a1a1a;
}
.achievement-card.unlocked {
    border-color: #0f0;
    background-color: #112111;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
    opacity: 1;
}
.achievement-card.unlocked h5 {
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
}

/* Tooltip */
#tooltip {
  position: fixed;
  background-color: rgba(17, 17, 17, 0.95);
  border: 1px solid #0f0;
  padding: 0.5rem;
  font-size: 0.85rem;
  pointer-events: none;
  border-radius: 4px;
  z-index: 9999;
  max-width: 250px;
}

/* Fact Card */
#fact-card {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #000;
  color: #0f0;
  border: 1px solid #0f0;
  padding: 1rem;
  max-width: 300px;
  border-radius: 8px;
  z-index: 9000;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

#fact-close {
  position: absolute;
  top: 4px;
  right: 8px;
  cursor: pointer;
  font-weight: bold;
  color: #f00;
  font-size: 1.2rem;
}

.hidden {
  display: none !important;
}

/* === WOW EFFECTS === */
.floating-number {
  position: absolute; /* Needed to position based on the cursor */
  color: #0f0;
  font-size: 1.2rem;
  font-weight: bold;
  pointer-events: none; /* So it doesn't interfere with clicks */
  z-index: 9999;
  animation: float-up 1.5s ease-out forwards;
}

@keyframes float-up {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-80px); /* How high the number floats */
  }
}