body {
    background: #000;
    color: #FF6A00;
    font-family: monospace;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
    padding: 0;
}

.logo-group {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.logo-text {
    font-size: 1.6em;
    font-weight: bold;
    color: #FF6A00;
}

.menu {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.menu a {
    text-decoration: none;
    color: #FF6A00;
}

.menu a:hover {
    color: #fff;
}

h1, h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #FF6A00;
}

.system-table {
    border-collapse: collapse;
    width: 100%;
    box-sizing: border-box;
}

.system-table th, .system-table td {
    border: 1px solid #FF6A00;
    padding: 8px;
    text-align: left;
    white-space: nowrap;
}

.container .system-table {
    width: 100%;
}

td[data-label='Controlling Faction'] {
    max-width: 220px;
    white-space: normal;
}

.system-table th a,
.system-table td a {
    color: #FF6A00;
    text-decoration: none;
}

.system-table th a:hover,
.system-table td a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.system-table tr:hover {
    background-color: rgba(255, 106, 0, 0.2);
}

/* Dot styles */
.dot-fresh, .dot-stale, .dot-old {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
}
.dot-fresh { background-color: green; }
.dot-stale { background-color: orange; }
.dot-old { background-color: red; }

.sector-table {
    width: 100%;
    table-layout: fixed;
}

/* Responsive fallback */
@media (max-width: 768px) {
    .system-table, .system-table thead, .system-table tbody, .system-table th, .system-table td, .system-table tr {
        display: block;
        width: 100%;
    }
    .system-table thead tr {
        display: none;
    }
    .system-table td {
        position: relative;
        padding-left: 50%;
    }
    .system-table td:before {
        position: absolute;
        top: 8px;
        left: 8px;
        width: 45%;
        white-space: nowrap;
    }
}

/* Button default = black bg, orange text; hover = orange bg, black text */
button,
.sector button,
form button {
  background-color: #000;
  color: #FF6A00;
  border: 2px solid #FF6A00;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: monospace;
  font-size: 1em;
}

button:hover,
.sector button:hover,
form button:hover {
  background-color: #FF6A00;
  color: #000;
  border-color: #FF6A00;
}

button:disabled,
.sector button:disabled,
form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dropdowns: black background, orange text */
select,
.sector select,
form select {
  background-color: #000;
  color: #FF6A00;
  border: 2px solid #FF6A00;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: monospace;
  font-size: 1em;
}

select option {
  background-color: #000;
  color: #FF6A00;
}

/* Make list items a bit bigger & add some spacing */
.sector li {
  font-size: 1.25em;
  line-height: 1.5;
  margin-bottom: 0.5em;
}

/* Tame button & select sizing */
.sector button,
.sector select {
  font-size: 1em;
  padding: 4px 8px;
  line-height: 1.4;
  vertical-align: middle;
}

/* Give a small margin between controls */
.sector button + select,
.sector select + button,
.sector button + button {
  margin-left: 0.5em;
}

/* Hide bullet points in sector lists */
.sector ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Orange border and padding on each sector card */
.sector {
  border: 2px solid #FF6A00 !important;
  padding: 1em !important;
  margin-bottom: 1em !important;
  border-radius: 4px !important;
}

/* Black background + orange text/Border for inputs & textareas */
input[type="text"],
textarea {
  background-color: #000;
  color: #FF6A00;
  border: 2px solid #FF6A00;
  padding: 6px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

/* Placeholder text in a slightly dimmer orange */
input[type="text"]::placeholder,
textarea::placeholder {
  color: rgba(255,106,0,0.6);
}

/* On focus, invert for clarity */
input[type="text"]:focus,
textarea:focus {
  background-color: #FF6A00;
  color: #000;
  outline: none;
}

/* Admin area typography reset */
.admin-area {
  font-size: 16px;
  line-height: 1.4;
}

.admin-area form label,
.admin-area textarea,
.admin-area input[type="text"],
.admin-area select,
.admin-area button,
.admin-area .sector li {
  font-size: 1rem;
}

.admin-area h1 { font-size: 2rem; }
.admin-area h2 { font-size: 1.5rem; }

.system-table {
  table-layout: auto !important;
}

.system-table th:nth-child(3),
.system-table td:nth-child(3) {
  white-space: normal !important;
  word-wrap: break-word;
  word-break: normal !important;
  hyphens: auto;
}

/* Sector nav link styles */
.sector-nav a {
    color: #FF6A00;
    text-decoration: none;
}
.sector-nav a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}
.sector-nav .active {
    font-weight: bold;
}
/* Sortable column headers */
        .system-table th { cursor: pointer; }
        .system-table th.asc::after  { content: ' ↑'; }
        .system-table th.desc::after { content: ' ↓'; }
        /* Delta change colors */
        .delta-pos  { color: #00FF00; }
        .delta-zero { color: #FFFF00; }
        .delta-neg  { color: #FF0000; }
        /* Sortable column headers */
        .system-table th { cursor: pointer; }
        .system-table th.asc::after  { content: ' ↑'; }
        .system-table th.desc::after { content: ' ↓'; }
		
/* Power View Table Styling */
.power-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.power-table th,
.power-table td {
    border: 1px solid #FF6A00;
    padding: 8px;
    text-align: left;
}
.power-table th {
    background-color: rgba(255, 106, 0, 0.1);
}
.power-table tr:hover {
    background-color: rgba(255, 106, 0, 0.2);
}

/* Progress Bar Styling */
.progress-container {
    background-color: #222;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}
.progress-bar {
    display: inline-block;
    padding: 4px 6px;
    background-color: #FF6A00;
    border-radius: 4px;
    white-space: nowrap;
    min-width: 30px;
    color: #000;
    font-weight: bold;
}

/* Power View Link Styling (inherit general menu styles) */
.power-table a {
    color: #FF6A00;
    text-decoration: none;
}
.power-table a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* light-yellow background + dark text for <10% */
.power-table tr.low-progress {
    background-color: #fff3cd;
}
.power-table tr.low-progress td {
    color: #000;
}

/* light-red (pink) background + dark text for <5% */
.power-table tr.very-low-progress {
    background-color: #f8d7da;
}
.power-table tr.very-low-progress td {
    color: #000;
}


/* Admin Page Table Styling */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.admin-table th,
.admin-table td {
    border: 1px solid #FF6A00;
    padding: 8px;
    text-align: left;
}
.admin-table th {
    background-color: rgba(255, 106, 0, 0.1);
}
.admin-table tr:hover {
    background-color: rgba(255, 106, 0, 0.2);
}

/* Admin action link styling */
.admin-table a {
    color: #FF6A00;
    text-decoration: none;
}
.admin-table a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.chart-container {
  width: 100%;
  max-width: 900px;
  height: 380px;
  aspect-ratio: 3 / 1; /* auto height based on width */
  margin: 20px auto;
  background: #121212;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px;
}
