:root {
  --primary-color: #121212;
  --secondary-color: #2c7a96;
  --accent-color: #ffffff;
  --background-color: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings:
    "wdth" 100;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

.header {
  background-color: var(--primary-color);
  color: var(--accent-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {  
  width: 70px;
  height: 40px;
  margin-right: 1rem;
  opacity: 85%;
}

.company-name {
  font-size: 2rem;
  font-weight: bold;
  opacity: 85%;                        
  font-weight: 400;
  font-style: normal;            
}        

.nav-menu {
  display: none; /* Hide by default */  
  font-weight: 450;            
  opacity: 85%;
}

/* Show nav menu only on screens wider than 768px */
@media (min-width: 769px) {
  .nav-menu {
      display: flex;
      gap: 1rem;
  }
}

.nav-menu a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--secondary-color);
}

.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

#logisticModeButton{
  position: absolute;
  font-weight: 350;
  font-size: 1.2em;  
  opacity: 100%;
  top: 250px;
  left: 25px;
  z-index: 1000; /* Ensure it's above the map */
  padding: 8px 12px;
  background-color: var(--secondary-color);
  color: var(--accent-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}

#logisticModeButton:hover {  
  background-color: var(--secondary-color);
  font-weight: 400;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
}

.sidebar {
  width: 250px;
  background-color: var(--background-color);
  padding: 1rem;
  overflow-y: auto;
  border: 0.5px solid var(--primary-color);
}

.sidebar-control {
  margin-bottom: 1rem;
}

.sidebar-control button {
  width: 100%;
  padding: 0.5rem;
  background-color: var(--secondary-color);
  color: var(--accent-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sidebar-control button:hover {
  background-color: va
  r(--primary-color);
}

#cesiumContainer {
  flex: 1;
  border: 0.5px solid var(--primary-color);  
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.footer {
  background-color: var(--primary-color);
  color: var(--accent-color);
  padding: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
}

.options-menu {
  position: fixed !important;
  left: 5px !important; /* Adjust this value for desired offset from left */
  top: 160px !important; /* This centers the element vertically */
  transform: translateY(-50%); /* This ensures perfect vertical centering */
  z-index: 1000; /* Ensures the element appears above other content */
  padding: 5px;
  margin-right: 0px !important;
  border-radius: 10px 10px 10px 10px !important;
}

.modal-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}


.modal-content {
  background-color: var(--accent-color);
  width: 50%;
  max-height: 80vh;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;  
  background: #f5f5f5;
  font-family: 'Noto Sans', sans-serif;
  display: flex;
  flex-direction: column;
}

.modal-body {
  overflow-y: auto;
}

.modal-footer {
  padding-top: 20px;
}

.modal-footer:empty {
  display: none;
}

.modal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.modal-table th:first-child,
.modal-table td:first-child {
  width: 40px;
  text-align: center;
  padding: 10px;
}

.modal-table th {
  background-color: var(--secondary-color);
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  padding: 12px 15px;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

.modal-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.modal-table tr:hover {
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.modal-table td:nth-child(3),
.modal-table td:nth-child(4),
.modal-table th:nth-child(3),
.modal-table th:nth-child(4) {
  text-align: right;
}

.modal-table tr:last-child td {
  border-bottom: none;
}

.modal-table input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.button-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.report-button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.report-button:hover {
  background-color: #1a5f7a;
}

@media screen and (max-width: 600px) {
  .modal-content {
      width: 95%;
      padding: 10px;
  }

  .modal-table {
      font-size: 0.8em;
  }

  .modal-table th,
  .modal-table td {
      padding: 8px 10px;
  }

  .report-button {
      padding: 8px 16px;
      font-size: 14px;
  }
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

#potholeTable td, #potholeTable th {
  width: 1%;
  text-align: left;
}

#cameraTable td, #cameraTable th {
  width: 1%;
  text-align: left;
}

.camera-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 450;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.camera-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.camera-link:active {
  color: var(--accent-color);
  background-color: var(--secondary-color);
}

.chevron {
  width: 1%;
  text-align: right !important;
}

.modal-table .chevron-right {
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-table .clickable-row:hover .chevron-right {
  opacity: 1;
  transform: translateX(3px);
}

@media screen and (max-width: 600px) {
  .modal-table {
    font-size: 0.8em;
  }

  .modal-table th,
  .modal-table td {
    padding: 8px 10px;
  }
  
  .chevron {
    padding-right: 10px;
  }
}
