@import url('./map.css');

.report-menu, .robot-menu {
  position: absolute;
  bottom: 0;
  top: 0;
  left: -100vw;
  width: max(20vw, 320px);
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  border-radius: 0px 50px 50px 0px;
  box-shadow: 0 0 6px var(--shadow);
  background-color: var(--background);
  transition: left 0.3s ease;
  flex-direction: column;
  align-items: center;
  padding: 20px 40px;
  cursor: default;
  z-index: 502;
}

.report-menu-shown, .robot-menu-shown {
  left: 0px;
}

.report-hint-mobile {
  display: none;
}

.inner-report-section, .inner-robot-section {
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 4px;
  height: 80vh;
}

.inner-report-section::-webkit-scrollbar, .inner-robot-section::-webkit-scrollbar {
  display: none;
}

.remove-report, .remove-robot {
  margin-top: 0;
  background-color: rgb(255, 255, 255);
  box-shadow: none;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 48px;
  top: 34px;
  cursor: pointer;
  transition: 0.3s box-shadow;
}

.remove-report:hover, .remove-robot:hover {
  box-shadow: 0 0 4px var(--light-shadow);
}

.remove-report img, .remove-robot img {
  height: 28px;
}

.robot-menu h3 {
  display: flex;
}

.robot-number {
  margin-left: 12px;
  color: grey;
}

textarea {
  resize: none;
  height: 220px;
  padding: 16px;
  font-family: roboto, Helvetica, sans-serif;
  margin: 16px 4px;
}

.image-upload {
  height: 60px;
  margin: 24px 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.uploaded-image {
  width: 100%;
  border-radius: 20px;
  margin: 8px 0;
  max-height: 500px;
  object-fit: cover;
  box-shadow: 0 0 6px var(--shadow) inset;
}

.image-upload img {
  height: 40px;
}

input[type='range'] {
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd51c, #b10d07);
  margin: 8px 0 24px 0;
}

input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border: solid black 4px;
  background-color: transparent;
  backdrop-filter: blur(2px);
  border-radius: 50%;
  cursor: pointer;
}

input[type='range']::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: solid black 4px;
  background-color: transparent;
  backdrop-filter: blur(2px);
  border-radius: 50%;
  cursor: pointer;
}

.errors {
  margin-bottom: 8px;
}

.report-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.coord-section {
  display: flex;
  justify-content: space-between;
}

.coord-section input {
  width: 40%;
}

.status {
  position: absolute;
  bottom: -80px;
  right: 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.438);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  color: var(--white-text);
  padding: 10px 20px;
  box-shadow: 0 0 6px var(--light-shadow);
  font-size: 14px;
  z-index: 500;
  transition: bottom 0.3s;
}

.status-shown {
  bottom: 20px;
}

.color-explanation {
  position: fixed;
  bottom: 6px;
  left: 6px;
  height: 32px;
  font-size: 12px;
  z-index: 450;
  background-color: rgba(0, 0, 0, 0.438);
  backdrop-filter: blur(4px);
  color: var(--white-text);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  justify-content: space-between;
  width: 360px;
  user-select: none;
}

.color-explanation-fr {
  width: 320px;
}

.image-container {
  position: relative;
}

.remove-image {
  margin-top: 0;
  background-color: rgba(255, 255, 255, 0.872);
  box-shadow: none;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 16px;
  cursor: pointer;
  transition: 0.3s box-shadow;
}

.remove-image img {
  height: 28px;
}

.remove-image:hover {
  box-shadow: 0 0 4px var(--light-shadow);
}

.urgency-label {
  margin: 16px 0 8px 0;
  display: flex;
  justify-content: space-between;
}

.right-urgency-label {
  color: rgb(93, 93, 93)
}

.thank-you {
  position: fixed;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  width: 300px;
  background-color: white;
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow:  0 0 6px var(--shadow);
}

.thank-you h2 {
  color: rgb(29, 29, 182);
  margin: 0;
}

.thank-you img {
  width: 96px;
  margin: 32px;
}

.thank-you p {
  margin: 0;
}

.taint {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 498;
}

.thank-you button {
  background-color: rgb(29, 29, 182);
  width: 160px;
  cursor: pointer !important;
}

.inner-robot-section p {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.footage-update {
  color: rgb(150, 150, 150);
  font-weight: 600;
  font-size: 14px;
}

.security-footage {
  width: 100%;
  border-radius: 8px;
}

.robot-info, .last-report {
  border: grey solid 2px;
  padding: 8px 12px;
  border-radius: 12px;
  margin: 20px 0;
}

.last-report {
  background: linear-gradient(to top left, rgb(11, 11, 96), rgb(80, 80, 201));
  color: white;
  border: none;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.457);
}

.info-line {
  margin: 8px 0 0 0;
}

.robot-info a {
  text-decoration: none;
  color: rgb(29, 29, 182);
}

.report-title-container {
  display: flex;
  justify-content: center;
}

.report-title-container h3 {
  margin-top: 8px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.report-info {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgb(209, 209, 209);
}

.datapoint {
  font-weight: 600;
  color: white;
}

.pothole-volume {
  grid-column: span 2;
}

@media (max-width: 760px) {
  .report-menu, .robot-menu {
    bottom: -160vh;
    left: 0;
    top: auto;
    width: calc(100vw - 80px);
    width: calc(100dvw - 80px);
    border-radius: 50px 50px 0 0;
    transition: bottom 0.3s ease;
  }

  .report-hint-mobile {
    color: grey;
    text-decoration: dotted underline;
    font-weight: 600;
    display: block;
    margin: 0;
    font-size: 14px;
    text-align: center;
  }

  .report-menu-shown, .robot-menu-shown {
    bottom: -480px;
  }

  .full-report-section {
    bottom: -100px;
  }

  .status {
    bottom: 252px;
    right: -110%;
    transition: right 0.3s;
  }

  .status-shown {
    right: 20px;
  }

  .report-button {
    margin-bottom: 100px;
  }
}