/* Team Call / Group Chat — Hydra Prime theme */

.team-call-btn {
  position: fixed;
  right: 12px;
  bottom: 120px;
  z-index: 120;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(66, 232, 255, 0.45);
  background: rgba(14, 14, 22, 0.92);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(66, 232, 255, 0.14);
}

.team-call-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.team-role-badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffd966;
  border: 1px solid rgba(255, 217, 102, 0.4);
  background: rgba(32, 24, 8, 0.55);
  max-width: 42vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-role-badge.hidden {
  display: none;
}

.team-call-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(2, 6, 12, 0.72);
  backdrop-filter: blur(4px);
}

.team-call-panel.hidden {
  display: none;
}

.team-call-sheet {
  width: min(480px, 100%);
  max-height: 78vh;
  overflow: auto;
  background: linear-gradient(180deg, #0a121c 0%, #060a10 100%);
  border: 1px solid rgba(66, 232, 255, 0.35);
  border-radius: 16px 16px 0 0;
  padding: 16px;
  box-shadow: 0 -8px 40px rgba(66, 232, 255, 0.08);
}

.team-call-sheet h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #dffcff;
}

.team-call-sub {
  margin: 0 0 12px;
  font-size: 0.75rem;
  color: #7ee8fa;
  opacity: 0.85;
}

.team-call-group {
  margin-bottom: 12px;
}

.team-call-group-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.team-member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.team-member-row label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.team-member-row .name {
  color: #e8f4ff;
  font-size: 0.85rem;
}

.team-member-row .role {
  color: #7ee8fa;
  font-size: 0.68rem;
  opacity: 0.85;
}

.team-member-row .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #45e89a;
}

.team-member-row .status-dot.always_on {
  background: #1ee8d2;
  box-shadow: 0 0 8px rgba(30, 232, 210, 0.5);
}

.team-call-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.team-call-actions button {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(66, 232, 255, 0.35);
  background: rgba(0, 40, 55, 0.65);
  color: #dffcff;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
}

.team-call-actions button.primary {
  background: rgba(66, 232, 255, 0.15);
  border-color: rgba(66, 232, 255, 0.55);
  color: #7ee8fa;
}

.team-call-status {
  margin-top: 10px;
  font-size: 0.72rem;
  color: #9eb4c8;
  min-height: 1.2em;
}

.team-call-transcript {
  margin-top: 10px;
  max-height: 140px;
  overflow-y: auto;
  font-size: 0.72rem;
  color: #c8d8e8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.team-call-transcript .hydra {
  color: #1ee8d2;
}

.team-call-transcript .truth {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.62rem;
}

.call-page {
  min-height: 100vh;
  background: #060a10;
  color: #dffcff;
  font-family: system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.call-page-card {
  width: min(420px, 100%);
  border: 1px solid rgba(66, 232, 255, 0.35);
  border-radius: 12px;
  padding: 20px;
  background: rgba(8, 20, 32, 0.95);
}

/* Android-style team dialer */
.team-dialer {
  margin: 8px 12px 88px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(66, 232, 255, 0.22);
}

.team-dialer-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.team-dialer-search {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 22px;
  border: 1px solid rgba(66, 232, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #dffcff;
  font: inherit;
}

.team-dialer-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #1a5a66, #0d3a44);
  color: #7ee8fa;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.team-dialer-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.team-dialer-tab {
  flex: 1;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(66, 232, 255, 0.2);
  background: rgba(8, 16, 24, 0.8);
  color: #8a9bb5;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.team-dialer-tab.active {
  color: #dffcff;
  border-color: rgba(66, 232, 255, 0.5);
  background: rgba(66, 232, 255, 0.12);
}

.team-dialer-toolbar {
  margin-bottom: 8px;
}

.team-dialer-link {
  background: none;
  border: 0;
  color: #7ee8fa;
  font: inherit;
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.team-contact-list {
  max-height: 52vh;
  overflow-y: auto;
}

.team-dialer-empty {
  text-align: center;
  color: #8a9bb5;
  font-size: 0.82rem;
  padding: 24px 12px;
}

.team-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.team-contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #dffcff;
  flex-shrink: 0;
}

.team-contact-body {
  flex: 1;
  min-width: 0;
}

.team-contact-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #dffcff;
}

.team-contact-sub {
  font-size: 0.72rem;
  color: #8a9bb5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-contact-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.team-icon-btn {
  min-width: 36px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(66, 232, 255, 0.25);
  background: rgba(8, 20, 32, 0.9);
  color: #b8ecff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.team-icon-btn.on {
  color: #ffd966;
  border-color: rgba(255, 217, 102, 0.45);
}

.team-icon-btn.call {
  color: #92ffb8;
  border-color: rgba(146, 255, 184, 0.35);
}

.team-speed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 8px 0 16px;
}

.team-speed-cell {
  min-height: 72px;
  border-radius: 14px;
  border: 1px dashed rgba(66, 232, 255, 0.3);
  background: rgba(8, 16, 24, 0.85);
  color: #8a9bb5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font: inherit;
}

.team-speed-cell.assigned {
  border-style: solid;
  border-color: rgba(66, 232, 255, 0.45);
  color: #dffcff;
}

.team-speed-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: #7ee8fa;
}

.team-speed-name {
  font-size: 0.65rem;
  text-align: center;
  padding: 0 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-contact-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(66, 232, 255, 0.2);
}

.team-contact-form h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #42e8ff;
}

.team-contact-form label {
  display: block;
  font-size: 0.7rem;
  color: #7ee8fa;
  margin-top: 8px;
}

.team-contact-form input,
.team-contact-form select {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #1a4a55;
  background: #0c1420;
  color: #b8ecff;
  font: inherit;
}

.team-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 10px !important;
}

.team-contact-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.team-contact-form-actions button {
  flex: 1;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(66, 232, 255, 0.3);
  background: rgba(8, 20, 32, 0.9);
  color: #b8ecff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.team-contact-form-actions button.primary {
  background: linear-gradient(135deg, #1a5a66, #0d3a44);
  color: #7ee8fa;
}

.team-contact-form-actions button.danger {
  color: #ffb4c0;
  border-color: rgba(255, 100, 120, 0.35);
}

/* Phone upload bar — Operator tab */
.phone-upload-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.phone-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(66, 232, 255, 0.35);
  background: rgba(8, 20, 32, 0.9);
  color: #7ee8fa;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.phone-upload-recent {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 0;
}

.phone-upload-empty {
  font-size: 0.72rem;
  color: #8a9bb5;
}

.phone-upload-chip {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(66, 232, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 0.55rem;
  color: #b8ecff;
}

.phone-upload-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
