body {
    background-color: #ffffff;
    color: #000000;
}

#main-area {
    margin: 2%;
}

#charger-box {
    margin-right: 80%;
    margin-bottom: 5px;
}

#ocpp-prod-log-table {
    padding: 1%;
    align-items: center;
}

/* Absolute Center Spinner */
.loading {
  position: fixed;
  z-index: 999;
  height: 1em;
  width: 1em;
  align-content:center;
  overflow: visible;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}


/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 1500ms infinite linear;
  -moz-animation: spinner 1500ms infinite linear;
  -ms-animation: spinner 1500ms infinite linear;
  -o-animation: spinner 1500ms infinite linear;
  animation: spinner 1500ms infinite linear;
  border-radius: 0.5em;
  -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
  box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-moz-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-o-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}



.log-table-item {
    border-color:transparent;
    border-width: 1px;
    font-family: "Noto Sans Mono", monospace;
    margin-bottom: 1px;
    text-overflow: ellipsis;
    overflow:hidden;
    white-space: nowrap;
}

.log-item-arrow {
    margin-right: 1%;
    background-color: transparent;
}

.log-server-initiated {
    color: #881280;
}

.log-charger-initiated {
    color: #1a1aa6;
}

.invisible {
    display: none;
}


/* Search Container Styles */
.search-container {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

#in-ui-title-div, .in-ui-title-div {
  position: sticky;
  top: 10px;
  padding: 12px 20px;
  z-index: 9999;
  background-color: #777;
  font-family: "Noto Sans Mono", monospace;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: fit-content;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: -40px;
  pointer-events: none;
}

.in-ui-title, #in-ui-title {
  pointer-events: all;
}

.in-ui-title, #in-ui-title {
  color: #ffffff;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* DateTime Wrapper */
.datetime-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

/* DateTime Label */
.datetime-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* DateTime Icon */
.datetime-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* DateTime Input */
.datetime-input {
  padding: 14px 16px;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  font-family: "Noto Sans Mono", monospace;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.datetime-input:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.datetime-input:focus {
  outline: none;
  border-color: #ffffff;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* Search Button */
.btn-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  color: #667eea;
  background-color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: fit-content;
}

.btn-search:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-search:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Search Icon */
.search-icon {
  width: 20px;
  height: 20px;
  color: #667eea;
}

/* Utility visibility classes */
.mobile-only { display: none; }
.desktop-only { display: block; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-container {
    flex-direction: column;
    padding: 20px;
  }

  .datetime-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
  }

  /* Make datetime input fill full width on mobile */
  .datetime-input {
    width: 100%;
    box-sizing: border-box;
  }

  /* Show mobile variant of blue charger box above search */
  .mobile-only { display: block; }
  .desktop-only { display: none; }

  /* Make the mobile blue box span full width and stick to very top */
  .in-ui-title-div {
    top: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  /* Ensure main content isn't obscured if sticky overlaps */
  #main-area {
    padding-top: 0;
  }
}

/* Legend styles */
.legend-item {
  margin-left: 10px;
  margin-top: 4px;
}

.legend-arrow {
  display: inline-block;
  padding: 2px 6px;
  background-color: #e8e8e8;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: "Noto Sans Mono", monospace;
  font-weight: bold;
  font-size: 13px;
  margin-right: 6px;
}

