:root {
	--background: #0a0a0a;
	--primary: 
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0a0a0a;
  color: #eaeaea;
  line-height: 1.6;
}

/* Header */
header {
	position: sticky;
	top: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 40px;
	background: #111;
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 200, 0, 0.2);
	z-index: 99;
}
#subnav {
	position: sticky;
	display: flex;
	padding: 5px 40px;
	background: #111;
	backdrop-filter: blur(10px);
	border-top: 1px solid rgba(255, 200, 0, 0.2);
	border-bottom: 1px solid rgba(255, 200, 0, 0.2);
	z-index: 98;
	align-items: center;
	gap: 10px;
}
#subnav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ccc;
  transition: 0.2s;
  color: #ccc;
}
#subnav a:hover {
  color: #ffcc00;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.4);
}
#subnav a:not(:first-child)::before {
  content: ">";
  color: #ffcc00;
  opacity: 0.8;
  margin: 0 15px;
}

.logo {
  display: flex;
  align-items: center; /* centers everything vertically */
  gap: 10px;
}

.logo img {
  height: 40px;
  width: auto;
  display: block; /* removes baseline alignment issues */
}

.logo span {
  display: flex;              /* key fix */
  align-items: center;        /* vertically center text inside */
  height: 40px;               /* match image height */
  line-height: 1;             /* remove weird spacing */
  color: #ffcc00;
  font-weight: bold;
  letter-spacing: 2px;
}

p {
    margin: 10px 0 10px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
}

nav a:hover, #subnav a:hover {
  color: #ffcc00;
}

/* Hero container */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
  padding: 120px 20px;
}

.hero-sml {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px;
}

/* Video background */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Dark overlay for readability */
.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Content stays on top */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3px;
    width: 100%;
}

.hero-container div {
  width: 100%;
}
.hero-container div:first-of-type {
    place-content: center;
}


/* Buttons */
a.btn, button.btn:hover, button.btn.active {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #ffcc00;
  color: #ffcc00;
  text-decoration: none;
  transition: 0.3s;
  margin: 10px;
}
button.btn:hover, .btnSml:hover, .btnSml.active, .btnTiny:hover, .btnTiny.active {
    cursor: pointer;
    background-color: #FFF;
    margin: 0;
}

a.btn:hover, button.btn, .btnSml, .btnTiny {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  transition: 0.3s;
  margin: 10px;
  border: 1px solid #ffcc00;
  background: #ffcc00;
  color: #000;
  box-shadow: 0 0 10px #ffcc00;
}
.btnSml:disabled, .button:disabled, .btnTiny:disabled {
  cursor: default;
  background:  #666666;
  box-shadow: none;
  border: none;
}
button.btn {
    margin: 0;
}
button.btn .throbber, button.btnSml .throbber, button.btnTiny {
  display: inline-block;
}
.btnSml {
  padding: 6px 15px !important;
  margin: 5px !important;
}
.btnTiny {
    padding: 3px 7px !important;
    margin: 2px !important;
}

ul {
    display: inline-block;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: start;
}

ul.inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

ul li {
    background: #1e1e1e;
    border: 1px solid #333;
    padding: 5px 6px;
    margin-bottom: 8px;
    color: #ddd;
    border-left: 3px solid #ffcc00;
    transition: 0.2s;
}

ul li:hover {
    background: #252525;
    border-left-color: #ffffff;
}

.profile-btn {
  margin-left: 50px !important;
  padding: 8px 18px;
  border: 1px solid #ffcc00;
  border-radius: 20px; /* rounded */
  color: #ffcc00;
  text-decoration: none;
  transition: 0.3s;
}

.profile-btn:hover {
  background: #ffcc00;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
}

/* Sections */
.section {
  padding: 20px;
  text-align: center;
}

.section.tight {
  padding: 0;
}

/* Odd sections */
.section:nth-of-type(odd) {
  background: #0a0a0a;
}

/* Even sections */
.section:nth-of-type(even) {
  background: #111;
}

.section h2 {
  font-size: 2rem;
  color: #ffcc00;
  margin: 10px 0 20px;
}

.section h3 {
  color: #ffcc00;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 10px 0 10px;

  text-shadow: 0 0 10px rgba(255, 204, 0, 0.25);
  position: relative;
}

/* Cards */
.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.card {
  background: #1a1a1a;
  padding: 20px;
  width: 250px;
  border: 1px solid rgba(255, 204, 0, 0.2);
  transition: 0.3s;
}

.card:hover, .owned, .enrolled {
  transform: translateY(-5px);
  border-color: #ffcc00;
  box-shadow: 0 0 10px #ffcc00;
}
.owned, tr.highlight, .enrolled {
  background-color: rgba(255, 204, 0, 0.3) !important;
}

.ship-filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 25px 0 25px;
  flex-wrap: wrap;
}

select, input {
  background: #111;
  color: #ffcc00;
  border: 1px solid rgba(255, 204, 0, 0.4);
  padding: 8px 12px;
  border-radius: 4px;
  outline: none;
}

.ship-filters select:hover {
  border-color: #ffcc00;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}

/* Search input (matches your selects) */
.ship-filters input {
  background: #111;
  color: #ffcc00;
  border: 1px solid rgba(255, 204, 0, 0.4);
  padding: 8px 12px;
  border-radius: 4px;
  outline: none;
  min-width: 200px;
}

.ship-filters input::placeholder {
  color: rgba(255, 204, 0, 0.5);
}

.ship-filters input:hover,
.ship-filters input:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #000;
  color: #666;
  border-top: 1px solid rgba(255, 200, 0, 0.2);
}
.ship-scroll {
  height: 520px;          /* controls scroll area height */
  overflow-y: auto;
  padding: 20px;        /* space for scrollbar */
  border: 2px solid rgba(255, 204, 0, 0.15);
  background: rgba(0, 0, 0, 0.2);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.vehicle-scroll {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  height: 200px;          /* controls scroll area height */
  overflow-y: auto;
  padding: 20px;        /* space for scrollbar */
  border: 2px solid rgba(255, 204, 0, 0.15);
  background: rgba(0, 0, 0, 0.2);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.vehicle-scroll .cds-checkbox {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.ship-scroll, .vehicle-scroll, .modal-scroll {
  scroll-behavior: smooth;
}

/* Keep grid inside scroll */
.ship-scroll .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Firefox scrollbar */
.ship-scroll {
  scrollbar-width: thin;
  scrollbar-color: #ffcc00 #111;
}

/* Scrollbar track */
.ship-scroll::-webkit-scrollbar {
  width: 10px;
}

/* Track background */
.ship-scroll::-webkit-scrollbar-track {
  background: #111;
  border-left: 1px solid rgba(255, 204, 0, 0.1);
}

/* Thumb (the draggable part) */
.ship-scroll::-webkit-scrollbar-thumb {
  background: #ffcc00;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

/* Hover effect */
.ship-scroll::-webkit-scrollbar-thumb:hover {
  background: #ffe066;
}

/* Responsive */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-top: 0;
    width: 100%;
  }

  nav a,
  nav button {
    margin: 0 !important;
  }

  .profile-btn {
    margin-left: 0 !important;
  }

  .logo {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .logo span {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  h1 {
    font-size: 2.5em;
  }

  h2 {
    font-size: 2em;
  }

  h3 {
    font-size: 1.5em;
  }
}

.logo {
  display: flex;
  align-items: center; /* vertical centering */
  gap: 10px;
  color: #ffcc00;
  font-weight: bold;
  letter-spacing: 2px;
}

.logo span {
  line-height: 40px; /* match image height */
}

/* Hidden by default */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;

  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);

  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal .scroll {
	padding: 20px;

    overflow-y: auto;
    max-height: 70vh;

    scroll-behavior: smooth;
}

/* Show state */
.modal-overlay.active {
  display: flex;
}

/* Modal box */
.modal {
  width: auto;
  background: #0a0a0a;
  border: 1px solid rgba(255, 204, 0, 0.3);
  padding: 25px;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.2);
  max-height: 80vh;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #ffcc00;
  font-size: 20px;
  cursor: pointer;
}

/* Inputs */
.modal input {
  width: 100%;
  margin-bottom: 15px;
  padding: 8px;
  background: #111;
  border: 1px solid rgba(255, 204, 0, 0.3);
  color: #fff;
  outline: none;
}

/* Button */	
.modal-btn {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid #ffcc00;
  color: #ffcc00;
  cursor: pointer;
  transition: 0.3s;
}

.modal-btn:hover {
  background: #ffcc00;
  color: #000;
}

.modal {
  animation: pop 0.2s ease-out;
}

body.no-scroll {
    overflow: hidden;
}

@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   CDSYS TABLE (YELLOW THEME)
   ========================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-cds {
  width: 100%;
  border-collapse: collapse;
  background: #111;
  border: 1px solid rgba(255, 204, 0, 0.2);
  color: #eaeaea;
  font-size: 14px;
  box-sizing: border-box;
}

/* Header */
.table-cds thead {
	position: static;
	z-index: 2;
	background: linear-gradient(
		90deg,
		rgba(255, 204, 0, 0.15),
		rgba(17, 17, 17, 1)
	);
}

.table-cds thead.sticky {
	position: sticky;
	top: 115px;
}

.table-cds th {
  text-align: center;
  padding: 12px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffcc00;
  border-bottom: 1px solid rgba(255, 204, 0, 0.25);
}

/* Cells */
.table-cds td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 204, 0, 0.08);
}

/* Zebra striping */
.table-cds tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Hover effect (matches cards + buttons glow) */
.table-cds tbody tr:hover {
  background: rgba(255, 204, 0, 0.08);
  box-shadow: inset 0 0 10px rgba(255, 204, 0, 0.15);
  transition: 0.2s ease;
}

/* Optional: tighter sci-fi feel */
.table-cds th,
.table-cds td {
  border-right: 1px solid rgba(255, 204, 0, 0.05);
}

.table-cds th:last-child,
.table-cds td:last-child {
  border-right: none;
}

/* Status colors (reuse your palette) */
.status {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 11px;
}

.status.active {
  color: #2dc653;
}

.status.idle {
  color: #ffcc00;
}

.status.inactive {
  color: #ff4d4d;
}

/* Tag style (matches buttons/cards) */
.tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid rgba(255, 204, 0, 0.4);
  border-radius: 3px;
  font-size: 11px;
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.08);
}

/* Scroll wrapper (matches ship-scroll) */
.table-wrapper {
  max-width: 80%;
  margin: 0 auto;
  overflow-x: auto;
  border: 2px solid rgba(255, 204, 0, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

/* =========================
   CDSYS LIST (YELLOW THEME)
   ========================= */

.list-cds {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 600px;
  text-align: left;

  background: #111;
  border: 1px solid rgba(255, 204, 0, 0.2);
}

/* List items */
.list-cds li {
  position: relative;
  padding: 12px 16px 12px 40px;
  margin-bottom: 10px;

  transition: 0.25s ease;
}

/* Custom bullet */
.list-cds li::before {
  content: "▸";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);

  color: #ffcc00;
  font-size: 14px;

  text-shadow: 0 0 6px rgba(255, 204, 0, 0.6);
}

/* Hover effect (matches cards/tables) */
.list-cds li:hover {
  border-color: #ffcc00;
  background: rgba(255, 204, 0, 0.06);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
  transform: translateX(4px);
}

/* Optional: subtle divider line */
.list-cds li:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 40px;
  right: 10px;
  height: 1px;
  background: rgba(255, 204, 0, 0.08);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 204, 0, 0.3);
    border-top: 3px solid #ffcc00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#throbber {
    margin-top: 10px;
    color: #ffcc00;
    font-family: sans-serif;
}

.cds-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    border-bottom: 2px solid #d4a800;
    padding: 12px 20px;
    font-family: Arial, sans-serif;
    text-align: center;
}

.cds-nav a {
    flex: 1;
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 10px;
    transition: 0.2s;
}

.cds-nav a:hover {
    color: #ffcc00;
}

.cds-nav .logo {
    font-weight: bold;
    color: #ffcc00;
    font-size: 18px;
}

.cds-nav-links {
    display: flex;
    gap: 10px;
}

.cds-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cds-nav .user {
    color: #aaa;
    font-size: 14px;
}

.cds-nav .logout {
    color: #ff4d4d;
}

.calendar-container {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* keeps top aligned */
}

.calendars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar {
    background: #1e1e1e;
    padding: 15px;
    border: 1px solid #333;
    width: 400px;
}

.calendar h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #ffcc00;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    width: 100%;
}

.day, .today, .selected {
    padding: 10px;
    text-align: center;
    background: #2a2a2a;
    cursor: pointer;
    position: relative;
}
.today {
    color: #ffcc00;
}
.selected {
	border: 1px solid #ffcc00;
}

.day:hover {
    background: #3a3a3a;
}

.day.empty {
    background: transparent;
    cursor: default;
}

.pip {
    width: 6px;
    height: 6px;
    background: #ffcc00;
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

/* RIGHT PANEL */
.calendar-details {
    flex: 1;
    background: #1e1e1e;
    padding: 15px;
    border: 1px solid #333;
}

.event {
    padding: 10px;
    margin-bottom: 10px;
    background: #2a2a2a;
    border-left: 3px solid #ffcc00;
}

.crew {
  margin-bottom: 10px;
}

.card {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    width: 260px;
}

.card img.header {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card h3 {
    margin: 8px 0 12px;
    font-size: 18px;
}

.info {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
}

.row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 20px;
}
.row.owned .label, .row.owned .value, .row.owned .byline, .section-row .enrolled {
	color: #FFF !important;
}

.row:last-child {
    border-bottom: none;
}

.label {
    color: #aaa;
    font-weight: 500;
    margin-right: 5px;
}

.value {
	position: relative;
    color: #fff;
    text-align: right;
    min-height: 35px;
}

#pagination {
    margin-top: 20px;
    text-align: center;
}

#pagination button {
    margin: 2px;
    padding: 6px 10px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

#pagination button.active {
    background: #00aaff;
}

.vehicle {
  position: relative;
  padding-bottom: 50px;
}
.buttons {
  display: flex;
  justify-content: flex-end;
}

/* =========================
   CDS CHECKBOX (YELLOW THEME)
   ========================= */

.cds-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffcc00;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  white-space: nowrap;
}

/* Hide default checkbox */
.cds-checkbox input {
  display: none;
}

/* Custom box */
.cds-checkbox .checkmark {
  width: 18px;
  height: 18px;
  background: #111;
  border: 1px solid rgba(255, 204, 0, 0.4);
  border-radius: 4px;
  position: relative;
  transition: 0.2s ease;
}

/* Hover (matches inputs/selects) */
.cds-checkbox:hover .checkmark {
  border-color: #ffcc00;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}

/* Checked state (matches buttons glow) */
.cds-checkbox input:checked + .checkmark {
  background: #ffcc00;
  border-color: #ffcc00;
  box-shadow: 0 0 10px #ffcc00;
}

/* Checkmark icon */
.cds-checkbox .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Show check */
.cds-checkbox input:checked + .checkmark::after {
  opacity: 1;
}

#events-filter {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================
   CDS TEXTAREA (YELLOW THEME)
   ========================= */

textarea {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;

  background: #111;
  color: #ffcc00;

  border: 1px solid rgba(255, 204, 0, 0.4);
  border-radius: 4px;

  outline: none;
  resize: vertical;

  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;

  transition: 0.2s ease;

  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}

/* Placeholder */
textarea::placeholder {
  color: rgba(255, 204, 0, 0.5);
}

/* Hover */
textarea:hover {
  border-color: #ffcc00;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.2);
}

/* Focus (important for UX) */
textarea:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.35);
}
/* Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #ffcc00 #111;
}

/* Chrome / Edge / Safari */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Track */
*::-webkit-scrollbar-track {
  background: #111;
  border-left: 1px solid rgba(255, 204, 0, 0.1);
}

/* Thumb */
*::-webkit-scrollbar-thumb {
  background: #ffcc00;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

/* Hover effect */
*::-webkit-scrollbar-thumb:hover {
  background: #ffe066;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.6);
}

/* Corner (where horizontal + vertical meet) */
*::-webkit-scrollbar-corner {
  background: #111;
}

.medals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  align-items: center;
}
.medals div {
	width: 10px;
	height: auto;
}
.medal {
  width: auto;
  height: 133px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
}
.assigned {
  filter: grayscale(0%);
}

.highlight {
  background: rgba(255, 204, 0, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.35);
  color: #ffcc00;
  transition: all 0.2s ease;
}

.byline {
  font-size: 0.9rem;
  color: #999;
  margin-top: -0.5em;
}

.table-cds tbody tr.Urgent {
  background: rgba(255, 77, 77, 0.08); /* subtle red tint */
  position: relative;
  animation: urgentPulse 2s infinite;
  color: #ff4d4d;
}

/* Stronger hover for urgent rows */
.table-cds tbody tr.Urgent:hover {
  background: rgba(255, 77, 77, 0.15);
  box-shadow: inset 0 0 12px rgba(255, 77, 77, 0.25);
}
	.table-cds tbody tr.Urgent .value, .table-cds tbody tr.Urgent .label {
		color: #ff4d4d;
	}

/* Subtle pulsing glow */
@keyframes urgentPulse {
  0% {
    box-shadow: inset 0 0 0 rgba(255, 77, 77, 0);
  }
  50% {
    box-shadow: inset 0 0 10px rgba(255, 77, 77, 0.15);
  }
  100% {
    box-shadow: inset 0 0 0 rgba(255, 77, 77, 0);
  }
}

img.sml {
	display: inline-block;
	height: 100px;
	width: auto;
}

h1 {
	font-size: 4em;
}
h2 {
	font-size: 3em;
}
h3 {
	font-size: 2em;
}
h4 {
	font-size: 1em;
}

form {
	margin-bottom: 20px;
}

.weak {
    border: 2px solid red;
}

.medium {
    border: 2px solid orange;
}

.strong {
    border: 2px solid green;
}

.error {
	position: absolute;
	top: 0px;
	right: 100%;
	margin-right: Xpx;
    padding: 12px;
    width: 200px;

    background: rgba(68, 23, 25, 0.8);
    border: 1px solid rgba(255, 77, 77, 0.35);
    border-left: 4px solid #ff4d4d;

    color: #ff4d4d;

    font-size: 14px;
    border-radius: 4px;

    box-shadow: 0 0 10px rgba(255, 77, 77, 0.1);
    
    z-index: 99;
}
.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-layout {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* left column wider */
.section-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 300px;
}

/* right column narrower */
.section-side {
  flex-shrink: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 20px;
  min-width: 250px;
}

/* make cards consistent spacing */
.card:not(.cards .card):not(.division-grid .card) {
  width: fit-content; /* overrides your fixed 260px for this page only */
}

/* nicer row alignment for long text */
.row .value {
  text-align: right;
  max-width: 70%;
  word-wrap: break-word;
}

.division-block {
    margin-bottom: 50px;
}

.division-header {
    margin-bottom: 25px;
    text-align: center;
}

.division-header h2 {
    margin-bottom: 5px;
}

.division-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
	justify-content: center;
	justify-items: center;
    gap: 20px;
    align-items: center;
}

.subdivision-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.subdivision-header {
    margin-bottom: 15px;
    text-align: center;
}

.subdivision-card .info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subdivision-card .section-row {
    align-items: center;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    padding: 10px;
    transition: 0.2s ease;
}

.subdivision-card .section-row:hover {
    background: rgba(255, 204, 0, 0.06);
}

.subdivision-card .label h4 {
    margin-bottom: 4px;
}

.subdivision-card .value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 120px;
}

@media (max-width: 768px) {

    .division-grid {
        grid-template-columns: 1fr;
    }

    .subdivision-card .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .subdivision-card .value {
        width: 100%;
        justify-content: flex-start;
    }
    
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-cds {
        width: 100%;
        font-size: 14px; /* keep readable */
    }

    .table-cds th,
    .table-cds td {
        padding: 10px;
    }

    .table-cds td {
        white-space: nowrap; /* ONLY if needed */
    }
}

.scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;

  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(17, 17, 17, 0.9);
  border: 1px solid rgba(255, 204, 0, 0.4);
  color: #ffcc00;

  font-size: 20px;
  text-decoration: none;

  border-radius: 8px;

  box-shadow: 0 0 12px rgba(255, 204, 0, 0.15);

  transition: 0.25s ease;
  z-index: 9999;
}

/* hover glow + lift */
.scroll-top:hover {
  transform: translateY(-4px);
  background: rgba(255, 204, 0, 0.1);
  box-shadow: 0 0 18px rgba(255, 204, 0, 0.4);
  color: #fff;
}

/* smooth fade-in effect (optional JS toggle support) */
.scroll-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.error-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;

    background: rgba(17, 17, 17, 0.95);
    border: 1px solid rgba(255, 77, 77, 0.35);
    border-left: 4px solid #ff4d4d;

    color: #ff4d4d;
    padding: 14px 16px;

    font-size: 14px;
    line-height: 1.4;

    box-shadow: 0 0 15px rgba(255, 77, 77, 0.15);
    border-radius: 6px;

    z-index: 9999;

    transform: translateX(120%);
    opacity: 0;

    transition: all 0.25s ease;
}

.cards .card.onbreak {
    border: 1px solid rgba(0, 170, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.15);
    filter: grayscale(30%);
}

.cards .card.onbreak:hover {
    border-color: #00aaff;
    box-shadow: 0 0 16px rgba(0, 170, 255, 0.3);
}

.cards .card.inactive {
    border: 1px solid rgba(255, 77, 77, 0.4);
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.12);
    opacity: 0.7;
    filter: grayscale(50%);
}

.cards .card.inactive:hover {
    border-color: #ff4d4d;
    box-shadow: 0 0 16px rgba(255, 77, 77, 0.25);
    opacity: 0.85;
}
a.active {
  color: #ffcc00;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
  border-bottom: 2px solid #ffcc00;
}

/* =========================
   FOOTER
   ========================= */

.footer {
    background: linear-gradient(
        to bottom,
        #0a0a0a,
        #050505
    );

    border-top: 1px solid rgba(255,204,0,.2);

    padding: 40px 20px 20px;

    color: #999;
}

.footer-content {
    max-width: 1000px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo img {
    width: 100px;
    max-width: 100%;
    opacity: .85;
    transition: .25s ease;
}

.footer-logo img:hover {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255,204,0,.35));
}

.footer-disclaimer {
    flex: 1;
    min-width: 300px;

    color: #888;

    font-size: .9rem;
    line-height: 1.7;

    text-align: left;
}

.footer-disclaimer strong {
    color: #ffcc00;
    font-weight: 600;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.06);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;

    color: #666;
    font-size: .85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-bottom span:first-child {
    color: #ffcc00;
}

@media (max-width:768px) {

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }

}