/* dark-mode.css */
/* 27 APR 2025 0940 */

:root {
/* 	radius for control buttons */
  --border-radius: 0px;
  
/*  width of ui columns */
/*  this needs to stay at 750 right now */
  --ui-col-width: 750px;
  
/* values   */
  --values: #f0f;
}


/* Overall body styles */
body {
  background-color: #111;
  color: #E0E0E0;
  font-family: Arial, Helvetica, sans-serif;
  margin: 5px 5px 20px 20px;
  padding: 0;
}

/* 
* {
  border: 1px dashed lime;
}
 */


a {
  color: #66aaff;        /* soft electric blue */
  text-decoration: none;
}

a:hover {
 text-decoration: underline;
}

.plot-image {
  filter: invert(1);
  width: 300px;
}

.plot-active {
  border: 1px solid #66ccff !important;
}

/* Outer container/table set to 750 wide */
.outer-table {
  width: var(--ui-col-width);
  margin: 0px 0px 10px 0px;
  border: 1px solid #444;
  background-color: #111;                               /* 222 */
  border-collapse: collapse;
}


/* .right-table { */
/*   width: 800px; */
/*   padding: 50px; */
/*   margin: 0 auto 10px auto; */
/*   border: 2px solid #444; */
/*   background-color: #222; */
/*   border-collapse: collapse; */
/* } */

input[type="number"],
select {
  background-color: #222;
  color: #eee;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 1em;
  margin: 5px 0;
  outline: none;
  width: auto;
}

input[type="number"]:focus,
select:focus {
  border-color: #66ccff;
  background-color: #2a2a2a;
}

select option {
  background-color: #222;
  color: #eee;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #222;
  border: 1px solid #555;
  width: 18px;
  height: 18px;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
  background-color: #66ccff;
  border-color: #66ccff;
}

input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 4px;
  height: 9px;
  border: solid #111;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

input[type="checkbox"]:checked::after {
  opacity: 1;
}

/* Left panel: vertical buttons */
.left-panel {
  width: 15%;
  padding: 2px;
  border-right: 1px solid #555;
  background-color: #222;								/* 333 */
  text-align: center;
}

.left-panel button {
  background-color: #555;
  color: #fff;
  border: 1px solid #777;
  padding: 8px;
  margin: 5px;
  cursor: pointer;
  width: 90%;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.left-panel button:hover {
  background: linear-gradient(#666, #555);
  border-color: #66ccff;
}

/* Main info area */
.main-info {
  width: 60%;
  padding: 5px;
  border-right: 1px solid #555;
  /* background-color: #111;		 */						/* 444 */
}

/* Inner table for system info with reduced height and padding */
.inner-table {
  width: 100%;
  border-collapse: collapse;
  height: 150px;
  overflow: auto;
}

.inner-table tr {
  height: 25px;
}

.inner-table td {
  border: 1px solid #555;
  padding: 3px;
}

/* New class for larger, thin font info for System, Talkgroup, and Source */
.info-large {
  font-size: 1.3em;
  font-weight: 300;
  color: #FFFFFF;
}

/* Text styling for labels and values in the inner table */
.label {
  color: #BBBBBB;
  font-weight: bold;
}

.value {
  color: #FFFFFF;
}

/* Updated small label and small value styles */
.small-label {
  color: #BBBBBB;
  font-size: 0.8em;
}

.small-value {
  color: var(--values);
  font-size: 0.8em;
}

/* The labels and values on the trunk_update/system data */
.trunk-label {
  color: #bbb;
/*   font-size: 0.8em; */
}

.trunk-value {
  color: var(--values);
  font-size: 14px;
}


/* Right panel: logo area */
.right-logo {
  width: 20%;
  padding: 6px;
  background-color: #222;
  text-align: center;
}

/* Bottom row: site/system buttons */
.bottom-buttons {
  padding: 1px;
  background-color: #222;
  text-align: center;
  border-top: 1px solid #555;
}

.bottom-buttons button {
  white-space: nowrap;
  font-size: 0.9em;  
  width: 108px;
  background-color: #333;
  color: #eee;
  border: 1px solid #777;
  border-radius: var(--border-radius);
  padding: 8px 2px 8px 2px;
  margin: 6px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.bottom-buttons button:hover {
  background: linear-gradient(#666, #555);
  border-color: #66ccff;
}

/* Generic button style (for other buttons) */
.button {
  background-color: #555;
/*   color: #fff; */
  border: 1px solid #777;
/*   padding: 10px; */
  margin: 5px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.button:hover {
  background: linear-gradient(#666, #555);
  border-color: #66ccff;
}

/* Small button style for UI elements requiring smaller controls */
.small-button {
  background-color: #555;
  color: #fff;
  border: 1px solid #777;
  padding: 5px 5px;
  margin: 3px;
  width: 120px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.small-button:hover {
  background: linear-gradient(#666, #555);
  border-color: #66ccff;
}


.controls {
  padding: 10px;
  background-color: #333;
  text-align: center;
}

.nav-button {
  background-color: #555;
  color: #fff;
  border: 1px solid #777;
  padding: 10px 15px;
  margin: 5px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-button:hover {
  background: linear-gradient(#666, #555);
  border-color: #66ccff;
}

.nav-button-active {
  background-color: #777;
  color: #fff;
  border: 1px solid #999;
}
.compact-table {
  width: 100%;
  border-collapse: collapse;
/*   background-color: #333; */
  font-size: 12px;
/*   color: #E0E0E0; */
}

.compact-table th,
.compact-table td {
  border: 1px solid #222;
  padding: 6px;
  text-align: center;
  vertical-align: middle;
}

.compact-table tr {
  height: 20px;
}


.compact-table tr {
  height: 20px;
}

.compact-table th {
  background-color: #2a2a2a;
  font-weight: bold;
/*   color: #BBBBBB; */
}

/* Zebra striping */
.compact-table tr:nth-child(even) {
  background-color: #000;
}

.compact-table tr:nth-child(odd) {
  background-color: #0b0b0b;
}

.table-gradient-bg {
  background: linear-gradient(to bottom, #222, #000, #222);
  border-collapse: collapse;
  border-radius: 6px;
}

.table-gradient-bg th,
.table-gradient-bg td {
  border-left: none;
  border-right: none;
}

/* NEW: 3D-style button with gradient and reversed hover */
.button-3d {
  background: linear-gradient(to bottom, #444, #333);
  border: 1px solid #666;
  border-radius: var(--border-radius);
  padding: 8px 16px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
  color: #eee;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 5px;
}

.button-3d:hover {
  background: linear-gradient(to top, #444, #222);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.button-3d:active {
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.5);
  transform: translateY(1px);
}



.tune-button {
  width: 25px;    
  padding: 2px 2px;     /* Minimal padding */
  background-color: #555;
  color: #fff;
  border: 1px solid #777;
  margin: 3px;
  cursor: pointer;
  font-size: 0.8em;     /* Smaller font */
  text-align: center;   /* Center the text */
  border-radius: 1px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tune-button:hover {
  background: linear-gradient(#666, #555);
  border-color: #66ccff;
}

.tune-button:active {
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.4);
  transform: translateY(1px);
}

.call-history-scroll {
  height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 0px;
  border: 1px solid #555;
  background: linear-gradient(to bottom, #333, #222, #333); /* optional matching bg */

  /* Firefox scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #66aaff #222;
}

/* WebKit Scrollbar Styles */
.call-history-scroll::-webkit-scrollbar {
  width: 10px;
}

.call-history-scroll::-webkit-scrollbar-track {
  background: #222;
}

.call-history-scroll::-webkit-scrollbar-thumb {
  background-color: #66aaff;
  border-radius: 5px;
  border: 2px solid #222; /* padding effect */
}

.call-history-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #3399ff;
}

/* 
.logo {
  width: auto;
  height: auto;
  border: none;
  display: block;
}
 */

.logo-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px; /* or whatever fits your logo height */
  background-color: #222; /* match panel if needed */
  padding: 0;
}


.top-nav-container {
  width: var(--ui-col-width);
  margin: 0px 0px 10px 0px;
  background-color: #222;
  border-top: 1px solid #555;
  border-bottom: 1px solid #555;
  border-left: 1px solid #555;
  border-right: 1px solid #555;
  box-sizing: border-box;  
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 6px;
}

.nav-left {
  display: flex;
  gap: 12px;
}

.nav-item {
  color: #ccc;
  text-decoration: none;
  font-weight: bold;
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.nav-item:hover {
  background-color: #888;
}

.nav-right {
  display: flex;
  align-items: center;
}

.logo {
  width: 120px;
  height: auto;
  display: block;
}

.logo-lg {
  width: 200px;
  height: auto;
  display: block;
}

.th-section {
  text-align: center;
  background: linear-gradient(to bottom, #333, #111);
  border-collapse: collapse;
  border-radius: 3px;
  font-size: 14px;
  padding: 6px;
  color: #999
}


.warning-box {
  border: 1px solid #aa4a44;
  background: linear-gradient(to bottom, #662222, #441111);
  color: #ffdddd;
  padding: 12px;
  margin: 0;
  width: 100%;
/*   border-radius: 6px; */
  display: none;
  align-items: center; /* ← vertically center content */
  gap: 10px;           /* space between icon and text, if needed */
  font-size: 1rem;
}


.config-container {
    margin: 20px;
    font-family: Arial, sans-serif;
}

.config-section {
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #222;
    color: #ddd;
    overflow: hidden;
}

.config-header {
    background: #333;
    padding: 8px 12px;
    cursor: pointer;
    margin: 0;
}

.config-content {
    padding: 10px 15px;
    display: none;
}

.config-content.open {
    display: block;
}

.config-table {
    width: 100%;
    border-collapse: collapse;
}

.config-table td {
    padding: 4px 8px;
    border-bottom: 1px solid #444;
    vertical-align: top;
}

.config-key {
    font-weight: normal;
/*     width: 25%; */
}
.config-value {
    word-break: break-word;
    color: var(--values);
}



#aboutPopupContainer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* Dim background */
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#aboutPopupContainer.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.about-popup-content {
  background-color: #333;
  padding: 20px;
  border-radius: 12px;
  max-height: 80vh;
  max-width: 90vw;
  overflow-y: auto;
  color: #fff;
  font-family: sans-serif;
  animation: popupFade 0.3s ease;

  /* Glowing border */
  border: 2px solid var(--values); 
  box-shadow: 0 0 3px var(--values), 0 0 7px var(--values);
}



#settingsPopupContainer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* Dim background */
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#settingsPopupContainer.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.settings-popup-content {
  background-color: #333;
  padding: 20px;
  border-radius: 12px;
  max-height: 80vh;
  max-width: 90vw;
  overflow-y: auto;
  color: #fff;
  font-family: sans-serif;
  animation: popupFade 0.3s ease;

  /* Glowing border */
  border: 2px solid var(--values); 
  box-shadow: 0 0 3px var(--values), 0 0 7px var(--values);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid gray;
}

.close-icon {
  cursor: pointer;
}


#popupContainer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* Dim background */
  backdrop-filter: blur(1px);
  z-index: 1000;
  transition: opacity 0.1s ease;
  opacity: 0;
}

#popupContainer.show {
  display: block;
  opacity: 1;
}

.popup-content {
  background-color: #333;
  padding: 20px;
  border-radius: 12px;
  max-height: 80vh;
  max-width: 60vw;
  margin: 5% auto;
  overflow-y: auto;
  color: #fff;
  font-family: sans-serif;
  animation: popupFade 0.1s ease;

  /* Glowing border */
  border: 2px solid var(--values); 
  box-shadow: 0 0 3px var(--values), 0 0 7px var(--values);
}

@keyframes popupFade {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* BEGIN 2 COLUMN LAYOUT ELEMENTS */

* {
  box-sizing: border-box;
}

.row {
  margin-left: -10px;
  margin-right: -10px;
}

/* Two columns floated side-by-side with spacing */
.column {
  float: left;
  width: 50%;
  padding: 0 0px; /* horizontal padding creates the gap */
}

/* Clear floats */
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* Stack columns vertically on small screens */
@media screen and (max-width: 740px) {
  .column {
    width: 100%;
    padding: 0; /* remove gap in stacked view */
  }

  .row {
    margin: 0; /* reset margin when stacked */
  }
}

/* END 2 COLUMN LAYOUT ELEMENTS */