:root {
  --callbox-bg: #f9efdb;
  --callbox-accent: teal;
  --callbox-border: #3e3b35;
  --callbox-black: #111;
  --callbox-gray: #a4a4a4;
}

body {
  background-color: #111;
  color: var(--callbox-black);
  font-family: 'Share Tech Mono', monospace;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.02em;
  background-image: radial-gradient(circle at 60% 40%, rgba(37,150,190,0.04) 0%, transparent 70%);
}

#app {
  background: var(--callbox-bg);
  border: 1.5px solid var(--callbox-border);
  position: relative;
  border-radius: 18px;
  padding: 2.2rem 2rem 2rem 2rem;
  max-width: 820px;
  width: 80%;
  box-shadow: 0 2px 23px rgb(0, 0, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#logoContainer {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

#logo {
  width: 333px;
  max-width: 100%;
  filter: drop-shadow(0 0 8px var(--callbox-accent));
  margin-bottom: 1.2rem;
  border-radius: 20px;
}

a,
a:visited,
a:active,
a:focus {
  color: var(--callbox-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--callbox-black);
  text-decoration: underline;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
}

input,
button {
  padding: 0.7rem 1rem;
  margin: 0.5rem 0;
  border: 1.5px solid var(--callbox-border);
  border-radius: 6px;
  font-size: 1.02rem;
  background-color: #fff;
  color: var(--callbox-black);
  font-family: inherit;
  width: 100%;
  max-width: 300px;
  text-align: center;
  box-sizing: border-box;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus,
button:focus {
  outline: none;
  border-color: var(--callbox-accent);
  box-shadow: 0 0 6px var(--callbox-accent, rgb(6, 179, 179));
}

button {
  background-color: teal;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.18s, box-shadow 0.18s;
  border: none;
}

button:hover {
  background-color: rgb(9, 173, 173);
  box-shadow: 0 2px 12px rgba(37,150,190,0.12);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  background-color: var(--callbox-border);
  color: var(--callbox-gray);
}

#status,
#connectionStatus {
  font-size: 0.99rem;
  color: var(--callbox-black);
  margin-top: 0.5rem;
  text-align: center;
  text-shadow: none;
}

#remoteAudio {
  width: 100%;
  margin-top: 1rem;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--callbox-border);
  display: block;
}

#micIndicator {
  width: 300px;
  height: 42px;
  border-radius: 8px;
  margin-left: 10px;
  background: #f3ede2;  /* lighter background to blend with off-white */
  border: 1.5px solid var(--callbox-accent);
  display: block;
}

.button-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0;
  width: 100%;
  max-width: 320px;
}

.blinking {
  animation: blink 1.2s infinite;
}

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

input:-webkit-autofill {
  box-shadow: 0 0 0px 1000px #fff inset !important;
  -webkit-text-fill-color: var(--callbox-black) !important;
  caret-color: var(--callbox-black);
}
input:-webkit-autofill:focus,
input:-webkit-autofill:hover {
  box-shadow: 0 0 0px 1000px #fff inset !important;
}

#inviteQR > img,
#inviteQR > canvas {
  display: inline-block;
  margin: 0 auto;
}

/* Additional for CallBox look */
::-webkit-input-placeholder { color: #888; }
::-moz-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; }
