:root {
      --primary: #f7941d;
      --primary-light: #b26214;
      --bg: #121212;
      --surface: #1e1e1e;
      --text: #e0e0e0;
      --muted: #888888;
      --border: #333333;
      --radius: 6px;
    }
    * { box-sizing: border-box; }
    body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 20px; }
    .container { max-width: 1200px; margin: auto; padding: 0 20px; }
    h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
    .api-container, .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
    input.flatpickr-input, input.api-input, select { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
    input.api-input { width: 250px; }
    button { background: var(--primary); color: #fff; border: none; padding: 0.5rem 1rem; border-radius: var(--radius); cursor: pointer; font-weight: 500; transition: background 0.2s; }
    button:disabled { opacity: 0.6; cursor: not-allowed; }
    button:not(:disabled):hover { background: var(--primary-light); }
    table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 1rem; }
    th, td { padding: 0.75rem 1rem; text-align: left; }
    th { background: var(--primary); border-bottom: 2px solid var(--border); color: #fff; }
    tr:nth-child(even) { background: var(--bg); }
    
    .crime-header-row { cursor: pointer; } /* Added for clickable cursor */
    .crime-header-row:hover td { background-color: #2a2a2a; } /* Hover effect */
    .crime-header-row td {
      font-weight: bold;
      font-size: 1.1em;
      padding: 1rem;
    }
	#dataTable a {
    color: var(--text); /* Use the theme's main text color (white) */
    text-decoration: none; /* This removes the underline */
}

#dataTable a:hover {
    color: var(--primary); /* This makes it orange on hover */
    text-decoration: underline;
}
    .banner-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    .banner-right { text-align: right; font-weight: normal; font-size: 0.9em; padding: 0.3rem 0.6rem; border-radius: var(--radius); }
	
/* Shared container style for both banners */
#armoryBar, #lifetimeNet {
    background: #1e1e1e; /* Match surface color */
    border: 1px solid #333;
    border-left: 4px solid var(--primary); /* Maintain orange accent */
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

/* Shared header height and alignment */
#armoryHeader, .net-total-header {
    padding: 12px 15px; /* Unified height */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

#armoryHeader:hover, .net-total-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.armory-toggle-btn, .net-toggle-btn {
    font-size: 0.9rem;
    color: var(--primary);
    user-select: none;
}

.armory-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

#armoryHeader:hover {
    background: rgba(255, 255, 255, 0.05);
}
.armory-low-stock-alert {
    color: #ff6b6b;
    font-weight: 800;
    font-size: 0.8rem;
    margin-right: 15px; /* Space between text and arrow */
    letter-spacing: 1px;
    animation: pulse 2s infinite; /* Optional: adds a subtle heartbeat effect */
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

#armoryContent {
    padding: 10px 15px;
    display: none; /* Hidden by default */
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid var(--border);
}

.armory-item {
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.armory-item .name { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }
.armory-item .count { font-weight: bold; color: #fff; }
.armory-item.low { border-bottom: 2px solid #ff6b6b; }
.armory-item.ok { border-bottom: 2px solid #b2ffb2; }

footer {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

footer strong {
  color: var(--primary); /* Optional: makes the warning pop slightly */
}

footer p {
  margin: 0.5rem 0;
}

footer ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}