body {
  background-color: #f9f9f9;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  max-width: 400px;
  margin: 0 auto;
  padding: 40px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 20px;
}

.label {
  display: block;
  text-align: center;
  margin-bottom: 8px;
  font-size: 16px;
  color: #555;
  font-weight: bold;
}

.input {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease;
}

.input:focus {
  border-color:  #3DDC84;
}

.button {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
  padding: 14px;
  background-color:  #3DDC84;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color:  #3DDC84;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 14px;
  text-align: center;
}

th {
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #e6e6e6;
}

.sub-table-container {
  /*background-color: #ddefd3;*/
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
}

.sub-table-header {
  background-color: #aed7f8;
  color: #333;
}


/* chart and map */
.details-container {
  display: flex;
}

.half-width {
  width: 50%;
  height: 300px;
}

/* Optional: Add some padding around the chart and map */
.half-width:first-child {
  padding-left: 10px;
  padding-right: 10px;
}

.half-width:last-child {
  padding-left: 10px;
  padding-right: 10px;
}

/* styles for dashboard */
.slider-container {
  display: flex;
  justify-content: flex-start;
}

.slider-label {
  margin-right: 10px;
  white-space: nowrap;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 25px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #24a683;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #04AA6D;
  cursor: pointer;
}

#form-container {
  display: flex;
  flex-direction: column;
}

#vehicle-form {
  margin-top: 20px;
  border: 1px;
}

#container {
  display: flex;
}

#slider-container {
  margin-left: 20px;
  border: 1px;
}

#dynamicIframe {
  margin-right: 20px;
}
/* header */
#header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  padding: 0px;
  font-family: Arial, sans-serif;
}

.title-container {
  align-self: stretch;
  display: flex;
  justify-content: center;
  padding: 0px;
  /*border: 0px solid red;*/
}

.title-container h2 {
  color: #007bff;
  margin-bottom: 5px;
}

.dropdowns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  width: 100%;
  /*border: 0px solid green;*/
}

.left-container, .right-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  /*border: 0px solid blue;*/
}

#header select {
  flex: 1;
  margin: 20px;
  padding: 10px;
  font-size: 14px;
}

#header button:hover {
  background-color: #2700b3;
}

#logoutbutton {
  background-color: #f9c445;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
}

#savebutton {
  background-color: #24a683;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
}

.state-dropdown,
.site-dropdown,
.report-dropdown {
  width: 200px; 
}

#vehicle-form-button {
  background-color: #24a683;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
}

#vehicle-form-button:disabled {
  background-color: #8fd7b3;
  cursor: not-allowed;
}

#vehicle-form-button:not(:disabled):hover  {
  background-color: #2700b3;
}

hr {
  margin: 20px;
}


/* Styling for the hourglass spinner */
.hourglass-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.hourglass {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
