 body {
      font-family: 'Lab Grotesque', sans-serif;
      line-height: 1.3;
      background: linear-gradient(180deg, #3A1F83 0%, #2A1460 100%);
      color: #fbf6f2;
      margin: 0;
      padding: 0px;
    }

  
    .container {
      width: 100%;
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.18);
      padding: 28px 24px;
      box-shadow: 0 18px 50px rgba(0,0,0,0.25);
      border-radius: 20px;
      box-sizing: border-box;
      backdrop-filter: blur(8px);
    }



    h1, h2 {
      font-size: 26px;
      font-weight: normal;
      color: #fbf6f2;
    }

    /* === SJANGERKORT === */

    /* Wave animation */
@keyframes genreWave {
  0% {
    transform: translateY(0);
    box-shadow: none;
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
  }
  100% {
    transform: translateY(0);
    box-shadow: none;
  }
}

.genre-card.wave {
  animation: genreWave 0.6s ease forwards;
}

.genre-card {
  flex: 1 1 0;          /* 🔥 viktig */
  min-width: 0;         /* 🔥 hindrer overflow */
  text-align: center;
  padding: 12px;
  border-radius: 14px;
  background-color: #9A8AC2;
  color: white;


  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

/* Hover-effekt */
.genre-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
  filter: brightness(1.06);
}

/* Ikon */
.genre-icon {
  height: 60px;
  margin-bottom: 8px;
  transition: transform 0.25s ease;
}

.genre-card:hover .genre-icon {
  transform: scale(1.08);
}

/* VALGT STATE */
.genre-card.active {
  background-color: #E95B35;   /* 🔥 Oransje */
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
  transform: translateY(-4px);
}

.genre-selector {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 10px;

  width: 100%;
  box-sizing: border-box;  /* 🔥 VIKTIG */
}



    label {
      display: block;
      line-height: 1.3;
      margin-top: 20px;
      font-weight: normal;
      color: #fbf6f2;
    }

    input, select, button {
      color: #fbf6f2;
      width: 100%;
      padding: 14px;
      margin-top: 5px;
      border-radius: 40px;
      box-sizing: border-box;
      font-size: 16px;
    }

    label[for="num-performers"] {
  font-size: 16px;
  color: #fff;
  text-align: center;
  display: block;
  margin-top: 20px;
  margin-bottom: 10px;
}

    #num-performers {
      width: 230px;        /* Adjust as desired */
      margin: 0 auto;      /* Center the field */
      display: block;
    }

        input, select {
      background-color: #FFFFFF;
      color: #222222;
      
    }

    button {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 999px;
    background: #E95B35;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    }

    button:hover {
      background: #d54d28;
    }

    .dimension-container {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;  /* 🔒 Prevent Safari from wrapping incorrectly */
}

    .dimension-container input {
      flex: 1;
    }

    .extra-space {
      margin-top: 20px;
    }
    #check-room {
    font-size: 20px;
    font-weight: bold;
    font-family: inherit;
  }
     #volume-result,
    #area-result {
    display: inline-block;
    margin: 5px;
    font-weight: normal;
    color: #fff; 
}

    #star-icon-container {
      display: none;
      margin-top: 12px;
    }

    #star-icon {
      height: 80px;
      vertical-align: middle;
      margin-right: 6px;
      display: none;
      
    }

  

    .hidden {
      display: none;
    }

    

    /* About panel */
    #about-panel {
      display: none;
      margin-top: 15px;
      padding: 10px;
      background-color: #f9f3e9;
      border-left: 4px solid #160349;
    }
    button.about-btn {
      font-size: 14px;
      background-color: #3A1F83;;
      color: #fff;
      border: none;
      padding: 4px 30px -30px;
      text-decoration: none;
      cursor: pointer;
      margin-top: 5px;
    }

    button.about-btn:hover {
      background-color: #160349;;
    }

    #about-panel {
  font-size: 14px;
  background-color: #2A1460;  /* dark purple or use #222 */
  color: #FFFFFF;             /* white text */
  border-left: none;
  padding: 12px;
  border-radius: 12px;
}
    

    #rt60-instructions{
  min-height: 28px;
  margin-top: 16px;
  text-align: center;
  font-weight: bold;
}

    /*
      The circle is 300×300, fixed in the viewport
    */
    @keyframes sonarPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

#status-circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
  transition: 
  transform 0.25s ease,
  box-shadow 0.25s ease,
  filter 0.25s ease;

  /* Removed fixed padding that broke centering */
  padding-top: 120px; /* Optional: just enough for some spacing */
  padding-bottom: 100px;
  padding-left: 15px;
  padding-right: 15px;
  font-weight: bold;
  font-size: 34px;
  line-height: 1.4;
  color: white;
  transition: background-color 0.5s ease;
  opacity: 1;
  animation: sonarPulse 2s infinite;
}

.circle-text {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.4;
  font-size: 30px;
}


    #measure-rt60 {
  background-color: #e95b35;
  color: white;
  border: none;
  border-radius: 50%;
  width: 300px;
  height: 300px;
  font-size: 34px;
  font-weight: bold;
  text-align: center;
  padding: 0 px;
  line-height: 1.2;

     /* samme orange som brukes ellers */
  background:#e95b35;

  /* lys lilla halo som matcher sjanger-valg */
  box-shadow:
    0 0 0 6px rgba(170,140,255,0.30),
    0 0 35px rgba(170,140,255,0.35);

  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.dimension-container input {
  flex: 1;
  min-width: 0;          /* 🔧 Important for Safari */
  width: auto !important; /* 🛠️ Override 100% from global input styles */
}


#music-info {
  font-size: 16px;
  color: #FFFFFF;
  margin-top: 10px;
  text-align: center;
}
#results.pdf-mode {
  background-color: #ffffff !important;
  color: #000000 !important;
}

#results.pdf-mode{
  font-size: 12px;       /* <- viktig */
  line-height: 1.25;     /* mer kompakt */
}

#results.pdf-mode h2{
  font-size: 14px;
  margin: 6px 0 4px 0;
}

#results.pdf-mode p{
  margin: 4px 0;
}

#results.pdf-mode b,
#results.pdf-mode h2,
#results.pdf-mode p {
  color: #000000 !important;
}

#graph-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
}
#rt60-canvas {
  width: 100%;
  height: auto;
  max-width: 600px;  /* Optional: limit size on large screens */
  display: block;
}


#debug-overlay{
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 99999;
  background: rgba(0,0,0,0.78);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 92vw;
  box-sizing: border-box;
}

#share-telemetry {
  width: auto !important;
  margin: 0 6px 0 0 !important;
  vertical-align: middle !important;
}

#db-meter-display {
  text-align: center !important;
}

#db-bar {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

@keyframes pulseButton {
  0% {
    background-color: #3A1F83;
    box-shadow: 0 0 0px rgba(255, 255, 255, 0.0);
    transform: scale(1);
  }
  50% {
    background-color: #4F31A8; /* litt lysere lilla */
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
    transform: scale(1.04);
  }
  100% {
    background-color: #3A1F83;
    box-shadow: 0 0 0px rgba(255, 255, 255, 0.0);
    transform: scale(1);
  }
}

/* 3) Pulsér bare når knappen har klassen .pulse-active */
#check-room.pulse-active {
  animation: pulseButton 2.2s ease-in-out infinite;
}


#countdown-ring {
  display: none; /* skjult til nedtelling startes */
}

#countdown-ring-circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #bbb;
  transition: 0.25s;
  border-radius: 30px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #E95B35;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

#stars {
  display:none !important;
}

#photo-upload-title {
  margin: 0 0 4px 0;
}

.photo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0 0;
  background: rgba(255,255,255,0.14);
  color: white;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 40px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.photo-upload-btn:hover {
  background: rgba(255,255,255,0.22);
}

.photo-upload-btn:active {
  transform: scale(0.98);
}

.photo-upload-icon {
  font-size: 18px;
  line-height: 1;
}

#photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
  align-items: start;
}

.photo-preview-card,
.photo-add-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-sizing: border-box;
}

.photo-preview-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}

.photo-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px !important;
  height: 28px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.68);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.photo-remove-btn:hover {
  background: rgba(0,0,0,0.85);
}

.photo-index-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(58, 31, 131, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.photo-add-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  text-align: center;
  padding: 12px;
  margin: 0;
}

.photo-add-tile:hover {
  background: rgba(255,255,255,0.10);
}

.photo-add-plus {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 6px;
}

.photo-add-text {
  font-size: 13px;
  font-weight: 600;
}

#mic-mode-wrap{
  display:none;
}

/* Standard styling for input */
input, select, textarea {
  border: 2px solid transparent;
  border-radius: 999px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Når feltet er aktivt */
input:focus, select:focus, textarea:focus {
  outline: none; /* fjerner svart ramme */

  border-color: #a78bfa; /* lys lilla */

  box-shadow:
    0 0 0 3px rgba(167,139,250,0.35); /* lilla halo */
}

/* ===== Beta gate ===== */
#beta-gate {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #3A1F83 0%, #2A1460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 24px;
  box-sizing: border-box;
}

#beta-gate.hidden {
  display: none;
}

.beta-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}

.beta-logo {
  height: 82px;
  width: auto;
  margin-bottom: 18px;
}

.beta-title {
  margin: 0 0 8px 0;
  font-size: 28px;
  color: #fff;
  font-weight: 700;
}

.beta-text {
  margin: 0 0 18px 0;
  color: #efe9ff;
  font-size: 15px;
  line-height: 1.4;
}

#beta-password {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #fff;
  color: #222;
  font-size: 16px;
  box-sizing: border-box;
  margin-bottom: 12px;
}

#beta-unlock-btn {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: #E95B35;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

#beta-unlock-btn:hover {
  background: #d54d28;
}

#beta-error {
  min-height: 22px;
  margin-top: 12px;
  color: #ffd1d1;
  font-size: 14px;
}

body.beta-locked {
  overflow: hidden;
}

.nearby-nmr-notice {
  margin: 16px 0 20px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  line-height: 1.45;
  font-size: 15px;
}

.nearby-nmr-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.nearby-nmr-notice a {
  color: #fff;
  text-decoration: underline;
}

.nearby-nmr-notice.hidden {
  display: none;
}