/* Reset & Base */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  display: flex; flex-direction: column; align-items: center; padding: 20px;
}

/* Mode Tabs */
#modeTabs {
  margin-bottom: 20px;
}
.modeButton {
  padding: 10px 20px;
  margin: 0 5px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 20px;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}
.modeButton.active,
.modeButton:hover {
  background: white;
  color: #6e8efb;
}

/* Setup Panels */
#quickSetup, #customSetup {
  display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.mainButton {
  padding: 15px 30px;
  font-size: 1.1rem;
  border: none; border-radius: 25px;
  background: #fff; color: #6e8efb;
  cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.mainButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Custom Inputs */
#promptInput {
  width: 300px; height: 100px;
  padding: 10px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.5);
  font-size: 1rem; resize: none;
  outline: none;
}
#personaSelect {
  width: 320px; padding: 10px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.5);
  font-size: 1rem;
  outline: none;
}

/* Call Overlay */
#ringBox {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
  display: none; z-index: 9999;
}
.ring-content {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 20px;
}
.call-status {
  color: white; font-size: 1.2rem; text-align: center;
}
.timer {
  color: white; font-size: 3rem; display: none;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.loader {
  background: rgba(0,0,0,0.8); color: white;
  padding: 15px; border-radius: 5px;
}
#wave, .wave {
  position: absolute; border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%; animation: waveAnim 2s infinite;
}
@keyframes waveAnim {
  0% { width: 0; height: 0; opacity: 0.8; }
  100% { width: 400px; height: 400px; opacity: 0; }
}
#endCallBtn {
  padding: 15px 40px;
  background: #ff4444; color: white;
  border: none; border-radius: 30px;
  cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: none; margin-top: 20px;
}
#endCallBtn:hover {
  background: #ff2222; transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 480px) {
  #promptInput { width: 90%; }
  #personaSelect { width: 90%; }
}

#endCallBtn {
  pointer-events: all;
}
