header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f3f2f2;
  color: rgb(4, 67, 49);
  padding: 30px;
  z-index: 1000;
}


.logo-right {
  position: fixed;
  top: -65px;
  right: 30px;
  height: 225px;
  width: 250px;
  z-index: 1001;
}

.logo-far-right {
  position: fixed;
  top: -55px;
  right: 300px; /* Adjust for desired spacing */
  height: 225px;
  width: 250px;
  z-index: 1001;
}

.header-logo-container {
  display: flex;
  gap: 10px;
}

.header-logo-container img {
  height: 225px;
  width: 250px;
  object-fit: contain; /* Keeps image quality intact */
}

h1 {
  color: rgb(4, 67, 49);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 140%;
}

main {
  display: block;
  margin-top: 120px;               /* Ensures clear space under fixed header */
  padding: 10px;                   /* Adds inner spacing for content */
  background-color: #fff;          /* Keeps contrast from the header */
  font-family: Arial, Helvetica, sans-serif;
  font-size: 85%;
  border: 2px solid rgb(4, 67, 49);
  width: 100%;                      /* Responsive width on all screens */
  box-sizing: border-box;
  width: calc(100% - 50px);    /* 25px gap on each side */
  margin: 0 auto;
}



html, body {
  height: 100%;
  margin: 0;
  overflow-y: auto;
}

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

header img {
  height: 120px;          /* Bigger and more balanced */
  width: auto;
}


@media screen and (max-width: 600px) {
  main {
    padding: 20px;
    font-size: 80%;
  }
}


  main {
    font-size: 80%;
  }
}

#login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;        /* A nice fixed-height fallback */
  padding: 40px;
  background-color: transparent;
}


#login-box {
  border: 2px solid #000;
  border-radius: 12px;
  width: 320px;
  padding: 20px;
  background-color: #b22222;
  box-sizing: border-box;
  margin: 0 auto;        /* Horizontally center if needed */
}


#login-section {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#login-section input,
#login-section button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid rgb(12, 0, 0);
  border-radius: 10px;
  box-sizing: border-box;
  margin-botton:1px;
}

#login-section button {
  background-color: #333;
  color: white;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

#login-section button:hover {
  background-color: #d43f00; /* Slightly darker on hover */
}


#login-section form {
  margin: 0;
  padding: 0;
}

#login-link a {
  color: white;
  text-decoration: underline;
}

#getinput {
  float: left;
  width: 35%;
  padding: 5px;
  margin-left: 10px;
}

#login-section,
#getinput,
#logout,
#results {
  display: none; /* ✅ Hide all sections before JavaScript runs */
}

/* Default background for all inputs and selects */
input[type="number"],
input[type="text"],
select {
  color: black !important;
  background-color: #fff;
}

/* When filled/selected */
input.input-filled,
select.input-filled {
  background-color: #fcf1f1 !important; /* light red */
}

/* Ensure all form elements have the same padding and font size */
input[type="number"],
input[type="text"],
select {
  background-color: #fff;
  margin: 0;
  display: block;
  color: #1a1a1a;
  padding: 4px 8px;
  border: 1px solid #0a0000;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  appearance:none;
}

.about-link {
  color: #b22222;         
  font-style: italic;
  font-size: 20px;
  margin-left: 20px;
  text-decoration: none;
}

.about-link:hover {
  text-decoration: underline;
  color: #004466;
}

.help-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 6px;
  color: #007bff;
  vertical-align: middle;
}

.help-icon .material-icons {
  font-size: 18px;
  vertical-align: middle;
}

.help-text {
  display: none;
  position: absolute;
  top: 24px;
  left: 0;
  z-index: 10;
  width: 250px;
  background: #f9f9f9;
  color: #333;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#results {
   display: flex; /* This will now be in effect */
   flex-direction: column; /* Add this if you want vertical stacking */
   font-family: Arial, Helvetica, sans-serif;
   padding: 5px;
   width: 28%;
}


#results-container {
  text-align: left;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  min-height: 2rem; /* Or however tall you want the space to remain */
}
.results-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1.5rem;
}

#text-results {
  margin-top: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

#traffic_light {
  display: block; /* ✅ Ensure it's visible */
  text-align: center; /* ✅ Center the icon */
  font-size: 20px; /* ✅ Adjust size */
  display: block;
}


canvas {
  background-color: #fff !important;
}

/* Clear floats after the columns */
section::after {
  content: "";
  display: table;
  clear: both;
}

table {
  border: 2px solid;
  border-collapse: collapse;
  background-color: rgb(243, 242, 242);
  table-layout: fixed;
  width: 90%; /* or a fixed max-width if preferred */
  table {
  margin-top: -2px;
  margin-bottom: 0px;
}

}

/* Set consistent vertical spacing and alignment */
th,
td {
  padding: 3px 10px; /* 4px top/bottom, 10px left/right */
  text-align: left;
  vertical-align: middle;
  box-sizing: border-box;
}

/* Specific column widths */
th:nth-child(1),
td:nth-child(1) {
  width: 200px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 160px;
}

/* Center the table */
table.center {
  max-width: 800px; /* Optional: controls layout on large screens */
  margin: 10px auto;
  width: 100%;
}

section {
  display: flex;
  justify-content: space-between;
  gap: 10px; /* Add space between the columns */
}

button {
  background-color: #b22222; /* onyx red */
  border: none;
  color: white;
  padding: 15px 50px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 4px;
  position:relative;
  bottom: 10px; /* Adjust space from bottom */
  /*  margin: 0px 275px;*/
  cursor: pointer;
}

#download_pdf {
  background-color: #b22222;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  top:5px; /* Aligns it to top-right inside the container */
}

#login {
  top:2px;
  padding: 15px 50px;
}

#logout {
  display: none; /* ✅ Ensure it starts hidden */
  padding: 15px 20px;
  font-size: 16px;
  background-color: #b22222; /* 🔥 Orange-red color */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
  top:5px;;
}

#logout:hover {
  background-color: #d43f00; /* ✅ Darker color on hover */
}

#charts {
  margin-top: 50px;
  padding: 20px;
  width: 35%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#myDoughnutChart {
  display: block;
  margin: 0 auto;
  width: 300px;
  height: 300px;
  max-width: 300px;
  max-height: 300px;
  background-color: #fff !important;
}

#myBarChart {
  width: 150px;
  height: 150px;
  background-color: #fff !important;
}




/* Make selects look consistent across browsers */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 30px; /* space for the arrow */
}

table#input_table select,
table#input_table_equipment select,
table#input_table_travel select {
  width: 100%;
  height: 26px; /* Set height of select to match input fields */
  padding: 5px; /* Match the padding of inputs */
  font-size: 14px; /* Same font size as inputs */
  border-radius: 4px; /* Rounded borders */
  border: 1px solid #000000; /* Same green border as inputs */
  box-sizing: border-box; /* Include padding in element’s width */
}


/* Ensure number inputs have similar height as text and select elements */
input[type="number"] {
  height: 24px; /* Match height to make them consistent */
  line-height: 18px; /* Match line height for consistency */
}

/* to overide autofil issues */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-text-fill-color: black !important;
 box-shadow: 0 0 0px 1000px #fcf1f1 inset !important;
  transition: background-color 5000s ease-in-out 0s; /* prevent autofill bg */
}

