/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
  font-family: 'Poppins', serif;
  background: #f0f6ff;
  color: #1a1a1a;
  margin: 0;
  padding: 0;
}

.container {
  position: relative;
  max-width: 600px;
  margin: 60px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

h2 {
  color: #0c4e91;
  text-align: center;
  font-size: 2rem;
}

label {
  font-weight: 500;
  display: block;
  margin-top: 20px;
}

textarea,
select,
button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Poppins', serif;
  box-sizing: border-box;
}

button {
  background-color: #0c4e91;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #08396a;
}

/* #sosBtn {
  background-color: #d60000;
  margin-bottom: 20px;
  width: 100%;
} */

.response-box {
  background: #e9f4ff;
  padding: 15px;
  border-left: 4px solid #0c4e91;
  margin-top: 25px;
  border-radius: 8px;
  font-size: 1rem;
  word-wrap: break-word;
}

#video {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 10px auto;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.chat-area {
  background: #f7fafd;
  border-radius: 10px;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #e0e0e0;
}

.chat-bubble {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 18px;
  margin-bottom: 8px;
  max-width: 80%;
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-bubble.user {
  background: #0c4e91;
  color: #fff;
  align-self: flex-end;
  margin-left: 20%;
}

.chat-bubble.bot {
  background: #e6f0fa;
  color: #1a1a1a;
  align-self: flex-start;
  margin-right: 20%;
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

#chatInput {
  flex: 1;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 1rem;
}

#sendBtn {
  width: 90px;
  border-radius: 8px;
  background: #0c4e91;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

#sendBtn:hover {
  background: #08396a;
}

.urgency {
  font-size: 0.95em;
  display: block;
  margin-top: 4px;
}

@media screen and (max-width: 768px) {
  .container {
    margin: 30px 15px;
    padding: 20px;
  }

  h2 {
    font-size: 1.5rem;
  }

  textarea,
  select,
  button {
    font-size: 0.95rem;
    padding: 10px;
  }

  .response-box {
    font-size: 0.95rem;
  }

  /* #sosBtn {
    font-size: 1rem;
    padding: 10px;
  } */
}



/* #sosBtn:hover {
  background-color: #a40000;
} */

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

#video {
  width: 100%;
  border-radius: 12px;
  display: block;
  z-index: 1;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

/* From Uiverse.io by catraco */ 
.btn-class-name {
  --primary: 255, 90, 120;
  --secondary: 150, 50, 60;
  display: block;
  margin: 0 auto 20px auto;
  width: 60px;
  height: 50px;
  border: none;
  outline: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  outline: 10px solid rgb(var(--primary), .5);
  border-radius: 100%;
  position: relative;
  transition: .3s;
}

.btn-class-name .back {
  background: rgb(var(--secondary));
  border-radius: 100%;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.btn-class-name .front {
  background: linear-gradient(0deg, rgba(var(--primary), .6) 20%, rgba(var(--primary)) 50%);
  box-shadow: 0 .5em 1em -0.2em rgba(var(--secondary), .5);
  border-radius: 100%;
  position: absolute;
  border: 1px solid rgb(var(--secondary));
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: inherit;
  transform: translateY(-15%);
  transition: .15s;
  color: rgb(var(--secondary));
}

.btn-class-name:active .front {
  transform: translateY(0%);
  box-shadow: 0 0;
}

@keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }

    #monitorNotice {
      text-align: center;
      margin-bottom: 10px;
      color: #d63384;
      font-weight: bold;
      animation: blink 1.5s infinite;
    }
