@charset "UTF-8";
body {
  background-color: rgb(245, 245, 245);
  font-family: Inter, sans-serif;
}

details > summary {
  list-style-type: none;
}

@font-face {
  font-family: marcellus;
  src: url("/fonts/Marcellus-Regular.ttf");
}
.no-decoration {
  text-decoration: none;
  color: #333;
}

.initially-hidden {
  display: none;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background-color: white;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-image: url("/img/login-background.png");
  background-size: cover;
}

.login-screen {
  background-color: #fff;
  font-size: 1.4rem;
  padding: 2rem;
  border-radius: 10px;
  filter: drop-shadow(5px 5px 4px #888);
}
.login-screen input {
  font-size: 1.4rem;
}

.login-screen .form-item {
  margin-bottom: 1rem;
}

.form-item {
  margin-bottom: 0.75rem;
}
.form-item input {
  width: 95%;
  font-size: 1.2rem;
}
.form-item select, .form-item option {
  max-width: 95%;
  font-size: 1.2rem;
}

.login-button-area {
  display: flex;
  width: 100%;
  justify-content: end;
  margin-top: 1rem;
}

.login-button {
  color: #fff;
  background-color: #008;
  padding: 0.25rem 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 5px;
  filter: drop-shadow(5px 5px 4px #ccc);
}

.form-item {
  width: 100%;
}

.link-bar {
  text-align: center;
  padding: 1rem;
  margin: 2rem 0 0;
  font-style: italic;
  cursor: pointer;
  border-radius: 10px;
  filter: drop-shadow(5px 5px 4px #ccc);
}

.link-bar:link,
.link-bar:visited {
  text-decoration: none;
}

.link-bar h3 {
  font-family: marcellus;
  font-weight: 700;
  font-size: 1.4rem;
  font-style: normal;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.inspection-page-header {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.options-list {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

.options-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.item-value {
  font-size: 1.2rem;
  font-weight: bold;
}

.levels {
  font-size: 1.2rem;
  font-weight: bold;
  vertical-align: middle;
  margin-bottom: 2.5rem;
}

.levels input,
.further-examination input {
  border: 2px;
  width: 1.5rem;
  height: 1.5rem;
  outline-width: 2px;
  vertical-align: middle;
  font-weight: bold;
}

.select-radio-area {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}
.select-radio-area input[type=radio] {
  width: 100%;
  height: 2.5rem;
}
.select-radio-area .radio-value-2 {
  accent-color: #800;
}
.select-radio-area .radio-value-1 {
  accent-color: #f55;
}
.select-radio-area .radio-value-3 {
  accent-color: #888;
}
.select-radio-area .radio-value-5 {
  accent-color: #5f5;
}
.select-radio-area .radio-value-4 {
  accent-color: #080;
}

.verbal-desription textarea {
  width: 100%;
  max-width: 100%;
}

.inspection-target-description {
  font-style: italic;
}

.inspection-target-general,
.edit-client {
  margin-top: 1rem;
  background-color: #fff;
  text-align: left;
  border-radius: 10px;
  filter: drop-shadow(5px 5px 4px #ccc);
}
.inspection-target-general .buttons-area,
.edit-client .buttons-area {
  position: revert;
}

#inspection-dropzone {
  margin-top: 1rem;
}

.verbal-description,
.images,
.further-examination,
.actions {
  margin-top: 2.5rem;
}

.further-examination input {
  margin-bottom: 1rem;
}

.images label {
  margin-bottom: 1rem;
}

.current-photos {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 1.5rem;
}

.image-wrapper {
  position: relative;
  width: clamp(100px, 10vw, 150px);
  height: clamp(100px, 10vw, 150px);
}

.image-wrapper img {
  display: block;
  width: clamp(100px, 10vw, 150px);
  height: clamp(100px, 10vw, 150px);
  object-fit: cover;
  border-radius: 15px;
}

.delete-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(255, 0, 0, 0.75);
  border: none;
  color: white;
  font-size: 18px;
  padding: 0.2rem 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* hidden by default */
  z-index: 2;
}

.image-wrapper:hover .delete-button {
  display: block;
}

.inspection-building-form select {
  width: 100%;
  font-size: 1.2rem;
  padding: 0.25rem 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.aligned-right {
  text-align: right;
}

table.building-list {
  width: 90%;
  border-collapse: collapse;
}

.building-list td {
  padding: 0.25rem 0.5rem;
  border: 1px solid #ccc;
}

.buttons-area {
  margin: 1rem 0;
}

.building-page-header,
.client-page-header {
  width: 100%;
  text-align: center;
}

.building-base-data {
  color: #133f6e;
  background-color: #b4d2dc;
}

.inspection-target-general {
  border: 1px solid #888;
  padding: 1rem 2rem;
}

.inspection-target {
  color: #000;
  background-color: #ed9469;
}

.floating-form-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.floating-form-button button {
  color: white;
  background-color: #007;
  border: 0px solid transparent;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 1.4rem;
  filter: drop-shadow(5px 5px 4px #ccc);
}

.building-bar {
  background-color: #ccc;
}

.building-bar {
  color: #333;
}

.no-decoration {
  text-decoration: none !important;
}

.state-w {
  background-color: #fceb9d;
}

.state-r {
  background-color: #cdffcd;
}

.add-building,
.add-client,
.edit-client {
  font-style: normal;
  margin-top: 1.5rem;
  background-color: #cef;
  padding: 2rem;
  filter: drop-shadow(5px 5px 4px #ccc);
  border-radius: 10px;
}
.add-building input,
.add-client input,
.edit-client input {
  width: 100%;
  border-radius: 5px;
  padding: 0.25rem 0.5rem;
  font-size: 1.2rem;
  filter: drop-shadow(5px 5px 4px #ccc);
}
.add-building .button-area,
.add-client .button-area,
.edit-client .button-area {
  text-align: right;
}

.add-building button,
.buttons-area button {
  color: white;
  background-color: #007;
  border: 0px solid transparent;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  filter: drop-shadow(5px 5px 4px #ccc);
}

.client-bar,
.admin-client {
  background-color: #fceb9d;
}

.client-bar a:link,
a:visited {
  color: #333;
}

.missing-0 {
  background-color: #c3fc9d;
}

.side-by-side {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 1rem;
}

.side-by-side .form-item {
  flex: 1 1 calc(50% - 1rem);
  min-width: 250px; /* optional, helps with responsiveness */
}

.buttons-area {
  margin-top: 2rem;
  height: fit-content;
  background-color: red;
}

.buttons-area button {
  position: absolute;
  right: 2rem;
  bottom: 5px;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.05);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(140%) blur(4px);
}

.client-form {
  height: fit-content;
  margin-bottom: 1rem;
}

.brand {
  font-weight: 600;
}

#menu-toggle {
  position: absolute;
  left: -9999px;
}

.hamburger {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 40px;
  cursor: pointer;
  border-radius: 8px;
}
.hamburger:focus {
  outline: 3px solid rgba(59, 130, 246, 0.15);
  outline-offset: 2px;
}
.hamburger .lines {
  width: 22px;
  height: 2px;
  background: #111;
  position: relative;
  transition: transform 0.28s ease;
}
.hamburger .lines::before, .hamburger .lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #111;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.hamburger .lines::before {
  top: -6px;
}
.hamburger .lines::after {
  top: 6px;
}

.menu {
  position: absolute;
  top: 56px;
  left: 12px;
  width: fit-content;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  padding: 6px 4px;
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96) translateY(-6px);
}
.menu a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.95rem;
}
.menu a:hover {
  background: rgba(15, 23, 42, 0.06);
}

#menu-toggle:checked ~ .hamburger .lines {
  transform: rotate(45deg);
}
#menu-toggle:checked ~ .hamburger .lines::before {
  transform: rotate(-90deg) translateX(-0.5px);
  top: 0;
}
#menu-toggle:checked ~ .hamburger .lines::after {
  opacity: 0;
}

#menu-toggle:checked ~ .menu {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

@media (min-width: 720px) {
  .menu {
    right: 12px;
  }
}
.content {
  padding: 2rem;
}

.note {
  max-width: 50ch;
  color: #475569;
}

.inspectors-area {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fill, 186px);
  margin-bottom: 2rem;
}
.inspectors-area input {
  width: unset;
}

nav.breadcrumb {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
nav.breadcrumb a:link,
nav.breadcrumb a:visited {
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #ccc;
  padding: 0.25rem 0.5rem;
  background-color: #ccddee;
  border-radius: 10px;
}
nav.breadcrumb .current {
  padding: 0.25rem 0.5rem;
  color: #800;
  font-weight: bold;
}

.level {
  font-size: 1.2rem;
  font-weight: bold;
  padding-right: 5px;
}

.circle-wrapper {
  flex: 0 0 auto; /* 🚫 prevent flex from stretching or shrinking this column */
  display: flex;
  justify-content: center;
  align-items: center;
}

.level-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #888;
  color: #fff;
  border-radius: 50%;
  padding: 0.5rem;
  width: 30px;
  height: 30px;
}

.level-1 {
  background-color: #d42820;
}

.level-2 {
  background-color: #f26522;
}

.level-3 {
  background-color: #fdb714;
}

.level-4 {
  background-color: #00987a;
}

.level-5 {
  background-color: #00565e;
}

.two-panels {
  column-count: 2; /* Two side-by-side panels */
  column-gap: 20px; /* Space between columns */
  column-rule: 2px solid #ddd; /* Optional line between panels */
  max-width: 100%;
  margin: 0 auto;
}
