/* Call UI components shared by the Conference Call and Regular Call tabs:
   the phone display/circle, in-call tile grid, dial keypad, and the
   participant list used by Conference. */
.phone-card{ max-width: 320px; margin-left: auto; margin-right: auto; }
.phone-display{
  background: var(--void); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 14px 16px; margin-bottom: 16px; text-align: center; font-family: var(--font-display);
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 32px;
  position: relative;
}
#phoneDisplayDigits{ font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--paper); word-break: break-all; }
#phoneDisplayDigits:empty::before{ content: 'Enter a number'; color: var(--paper-dim); font-weight: 400; }
.phone-display.in-call{
  border-color: #BEE7C9; box-shadow: 0 0 0 1px #BEE7C9 inset;
  background: linear-gradient(180deg, rgba(22,163,74,0.06), transparent 65%), var(--void);
}
.phone-timer{ font-size: 13px; color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 0.4s ease; }
.phone-timer.visible{ opacity: 1; }
.call-status-pill{ display: flex; justify-content: center; margin-bottom: 2px; transition: opacity 0.3s ease; }
.call-status-pill .pill{ transition: opacity 0.3s ease; }
.conference-timer{
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--paper); font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity 0.4s ease;
}
.conference-timer.visible{ opacity: 1; }

.on-call-badge{
  display: none; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lamp-green);
  margin-bottom: 8px;
}
.phone-display.in-call .on-call-badge{ display: flex; }
.on-call-badge .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--lamp-green); box-shadow: 0 0 5px rgba(22,163,74,0.5); }

.call-circle{
  width: 92px; height: 92px; border-radius: 50%; margin: 2px auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(from 200deg, var(--accent), #4ee8c4, var(--lamp-green), var(--accent));
  border: 3px solid #FFFFFF; box-shadow: 0 2px 8px rgba(16,24,40,0.08);
  font-family: var(--font-mono); font-size: 15px; color: rgba(13,14,16,0.8); font-weight: 600;
  letter-spacing: 0.03em;
  transition: box-shadow 0.4s ease, filter 0.4s ease;
}
.call-circle:empty{ display: none; }
.call-circle.pulsing{ animation: call-pulse 1.6s ease-in-out infinite; }
.call-circle.connected{ animation: none; box-shadow: 0 0 0 6px rgba(22,163,74,0.15), 0 2px 8px rgba(16,24,40,0.08); }
@keyframes call-pulse{
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(16,24,40,0.08); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(59,130,246,0.12), 0 2px 8px rgba(16,24,40,0.08); }
}

.call-tile-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.call-tile{
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--void); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 4px; cursor: pointer; font-family: var(--font-display);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.call-tile:hover{ border-color: var(--line-bright); background: #FFFFFF; }
.call-tile:active{ transform: scale(0.96); }
.call-tile .tile-icon{ font-size: 18px; filter: grayscale(1); opacity: 0.75; }
.call-tile .label{ font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--paper-dim); }
.call-tile.is-active{ background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); }
.call-tile.is-active .tile-icon{ filter: none; opacity: 1; }
.call-tile.is-active .label{ color: var(--accent-text); }

.call-end-bar{
  display: none; width: 100%; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding: 13px; border-radius: 100px; border: none; cursor: pointer;
  background: var(--lamp-red); color: #FFFFFF;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 13.5px;
}
.call-end-bar:hover{ filter: brightness(1.08); }
.phone-keypad{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.phone-keypad .key{
  aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line);
  background: var(--void); color: var(--paper); font-family: var(--font-display);
  font-size: 19px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.1; transition: background 0.1s ease;
}
.phone-keypad .key:hover{ background: #FFFFFF; border-color: var(--accent); }
.phone-keypad .key:active{ background: rgba(59,130,246,0.15); color: var(--accent-text); }
.phone-keypad .key small{ font-size: 9px; font-weight: 500; letter-spacing: 0.06em; color: var(--paper-dim); margin-top: 1px; }
.phone-keypad .key:active small{ color: var(--accent-text); }
.phone-actions{ display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.call-btn{ background: var(--lamp-green); border-color: #128A3E; color: #FFFFFF; }
.call-btn:disabled{ background: var(--void); border-color: var(--line); color: var(--paper-dim); }
.hangup-btn{ background: var(--lamp-red); border-color: #B91C1C; color: #FFFFFF; }
.mute-btn.active{ background: rgba(59,130,246,0.15); color: var(--accent-text); border-color: rgba(59,130,246,0.3); }
.hold-btn.active{ background: rgba(59,130,246,0.15); color: var(--accent-text); border-color: rgba(59,130,246,0.3); }
.participant-list{ display: flex; flex-direction: column; gap: 10px; }
.participant-row{ display: flex; align-items: center; gap: 12px; }
.participant-badge{
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); color: var(--accent-text);
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.participant-row input{ flex: 1; }
.remove-participant{
  flex-shrink: 0; background: #FFFFFF; border: 1px solid var(--line-bright); color: var(--paper-dim);
  border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 14px;
}
.remove-participant:hover{ border-color: #F3C6C6; color: #B91C1C; background: #FDECEC; }
.history-avatar{
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0;
}
