* { box-sizing: border-box; }
html, body {
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #6d6d88;
  color: #ffffff;
}
.teams-call-screen {
  height: 100dvh;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 20px;
  padding: 20px;
  width: 100%;
}
.call-card {
  background: rgba(0,0,0,0.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,0.16);
}
.call-top {
  flex: 0 1 auto;
  text-align: center;
  padding: 5dvh 10px 10px;
}
.call-number {
  font-size: clamp(18px, 4dvh, 32px);
  margin: 0;
}
.call-name {
  font-size: clamp(20px, 5dvh, 36px);
  font-weight: 600;
  margin: 8px 0;
  text-transform: uppercase;
}
.connection-status { font-size: 14px; opacity: 0.8; }
.call-timer { font-size: 22px; font-weight: 600; margin: 8px 0; }
.call-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
}
.aura-svg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  opacity: 0.8;
  pointer-events: none; /* Add this to prevent it from blocking clicks */
}
.avatar-glow {
  width: clamp(100px, 30dvh, 200px);
  height: clamp(100px, 30dvh, 200px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  display: grid; place-items: center;
  z-index: 2;
  pointer-events: none; /* And this if necessary */
}
.avatar {
  width: 40%; height: 40%;
  background: #b6b8e6;
  border-radius: 50%;
  display: grid; place-items: center;
}
.avatar svg { width: 50%; height: 50%; stroke: #fff; stroke-width: 1.6; }
.call-controls {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px 10px 40px;
  z-index: 10; /* Ensure controls are above other elements */
}
.round-btn {
  width: clamp(48px, 10dvh, 64px);
  height: clamp(48px, 10dvh, 64px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative; /* Ensure it reacts to clicks */
}
.round-btn.accept { background: #3f4293; }
.round-btn.hangup { background: #d4355e; }
.round-btn.hangup svg { transform: rotate(135deg); }
.round-btn svg { width: 40%; height: 40%; fill: #fff; pointer-events: none; }
.pill-btn {
  border: none; border-radius: 999px;
  padding: 12px 24px; background: rgba(255,255,255,0.2);
  color: #fff; font-weight: 600; cursor: pointer;
}
.hidden { display: none !important; }
.tech-panel {
  background: #ffffff; border-radius: 12px;
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden; padding: 16px;
  color: #2c3e50; /* Ensure heading/text is dark */
}

.eic-list {
  background: #f1f3f5;
  border: 1px solid #e1e3e6;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #1f2933;
}
.eic-list strong { display: block; margin-bottom: 6px; }
.eic-items {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 4px;
}
.eic-items li {
  font-family: 'Consolas','Courier New', monospace;
  background: #ffffff;
  border: 1px solid #e6e7ea;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  word-break: break-all;
}
.tech-log-list {
  flex: 1; background: #f8f9fa;
  border: 1px solid #dee2e6; overflow-y: auto;
  list-style: none; padding: 0; margin: 0;
}
.tech-log-list li {
  padding: 8px; border-bottom: 1px solid #eee;
  font-size: 13px; font-family: 'Consolas', 'Courier New', monospace;
  color: #333333; /* Dark text for visibility */
  white-space: pre-wrap;
  word-break: break-all;
}
@media (max-width: 768px) {
  .teams-call-screen { grid-template-columns: 1fr; grid-template-rows: 1fr 200px; }
}