/*
GLOBAL
*/
body {
  font-family: Arial, sans-serif;
  background: #1e1e1e;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin: 0;
  min-height: 100vh;
}

h1 {
  color: #00d4ff;
}

/*
FORM
*/
#form-container {
  width: 60%;
  display: flex;
  justify-content: center;
}

form {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px #000000;
  width: 100%;
  max-width: 400px;
  margin-bottom: 30px;
}

label,
select {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  font-size: 14px;
}

input,
select {
  padding: 8px;
  border-radius: 4px;
  border: none;
}

#joinbtn {
  width: 100%;
  margin: 2% 0 0 0;
}

/*
BUTTONS
*/
button {
  padding: 10px 15px;
  background-color: #00d4ff;
  border: none;
  color: #000;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

button:hover {
  background-color: #00aacc;
  transform: scale(1.04);
}

button:active {
  background-color: #008ca8;
  transform: scale(1.15);
}

/*
MAIN VC
*/
#main-vc-container {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px #000000;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

#status {
  margin: 10px auto;
  padding: 8px 12px;
  border-radius: 4px;
  background: #333;
  border: 1px solid #666;
  display: flex;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
}

#log {
  height: 350px;
  width: 95%;
  overflow-y: auto;
  background: #2c2c2c;
  border: 1px solid #555;
  padding: 10px;
  margin: 10px 0;
  white-space: pre-wrap;
  font-family: monospace;
}

/*
Controls
*/
#controls {
  background: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 20px #000000;

  width: 100%;
  max-width: 700px;
  margin: 15px auto;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.controls-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #666,
    transparent
  );
  margin: 5px 0;
}

#controls-main {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}

.controls-card {
  background: #2f2f2f;
  border: 1px solid #3f3f3f;
  border-radius: 10px;
  padding: 14px;
  min-width: 220px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.controls-card-ptt {
  flex: 1 1 100%;
}

.control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.control-label {
  font-size: 13px;
  color: #aaa;
}

/* DEV CONTROLS */
#controls-dev {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dev-hidden {
  display: none !important;
}

#devContent {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-top: 10px;
  padding: 10px;
  gap: 12px;

  animation: fadeIn 0.15s ease;
}

.dev-toggle {
  width: 100%;
  background: #333;
  color: #ccc;
  font-size: 13px;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
}

.dev-toggle:hover {
  background: #3f3f3f;
  color: #fff;
}

#controls-dev .control-label {
  color: #888;
  font-size: 12px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*
MIC
*/
#micControls {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

#muteBtn {
  padding: 10px 18px;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#muteBtn.muted {
  background-color: #aa3333;
  color: #fff;
}

#muteBtn.unmuted {
  background-color: #33aa55;
  color: #000;
}

#micIndicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #444;
  border: 1px solid #666;
}

#micIndicator.active {
  background-color: #33ff66;
}

#inputArea {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 10px auto;
  width: 90%;
  max-width: 600px;
}

#testSound {
  width: 100%;
}

#msgInput {
  width: 100%;
}

#messageButton {
  width: 20%;
  margin: 0 0 0 2%;
}

label {
  margin: 3% 0 2% 0;
}

/*
MISC
*/
.githubicon {
  width: 30px;
  height: 30px;
  margin: 25px 0 0 0;
}

input:hover,
.githubicon:hover,
select:hover {
  transform: scale(1.1);
}

input:active,
.githubicon:active,
select:active {
  transform: scale(1.06);
}

input {
  width: 96%;
}

a {
  color: #f5f5f5;
  text-decoration: none;
}

@media (max-width: 760px) {
  #controls {
    padding: 16px;
  }

  .controls-card {
    width: 100%;
    min-width: 0;
  }
}

a:hover {
  color: #00d4ff;
  text-decoration: underline;
}