/* === GLOBAL === */
body {
  background: #3a86ff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  background: rgba(255, 255, 255, 0.15);
  padding: 2rem 3rem;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 380px;
  margin: 1.5rem auto;
  box-sizing: border-box;
  overflow-y: auto;
  scroll-behavior: smooth;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

input, select, button {
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: none;
  width: 100%;
  font-size: 1rem;
  box-sizing: border-box;
}

button {
  background-color: #06d6a0;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #04b88b;
}

/* === SWITCH TOGGLE === */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  vertical-align: middle;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #06d6a0;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

#toggleLabel {
  margin-left: 15px;
  font-weight: 600;
  font-size: 1.1rem;
  vertical-align: middle;
}

/* === SUGGESTION BOX === */
#suggestionBox {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #fefefe;
}

#suggestionBox h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

#suggestionBox ul {
  list-style: none;
  padding-left: 0;
}

#suggestionBox li::before {
  content: "\1F4A7 ";
}

/* === RECORD INDICATOR === */
.dot {
  height: 12px;
  width: 12px;
  background-color: red;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* === STICKY LOGO === */
.sticky-logo {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(58, 134, 255, 0.95);
  padding: 1rem 0;
  display: flex;
  justify-content: center;  /* tengah horizontal */
  align-items: center;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
}

.sticky-logo img {
  height: 60px;   /* kamu bisa sesuaikan */
  width: auto;
}


/* === AUDIO CONTROL === */
.audio-control-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
}

.audio-button-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.audio-button-group button {
  font-size: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
}

#recordedAudio {
  margin-top: 0.8rem;
  width: 100%;
}

/* === FOOTER === */
.footer-text {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #fff;
}

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 8px;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

/* === RESPONSIVE (HP) === */
@media (max-width: 480px) {
  html, body {
    height: auto;
  }

  .container {
    padding: 1.2rem;
    border-radius: 16px;
    margin: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1rem;
  }

  input, select, button {
    font-size: 0.95rem;
    padding: 10px;
  }

  #toggleLabel {
    font-size: 1rem;
  }

  #suggestionBox {
    font-size: 0.9rem;
  }

  .footer-text {
    font-size: 0.75rem;
  }

  .audio-button-group button {
    font-size: 20px;
  }
}
