/* ── Component: Teams integration settings modal ──
 * Class prefix: teams-
 */

/* Teams integration settings styles */

.teams-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.teams-settings-panel {
  background: #14141f;
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.teams-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.teams-settings-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #ededff;
}

.teams-settings-close {
  background: none;
  border: none;
  color: rgba(237,237,255,0.5);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.teams-settings-close:hover {
  background: rgba(255,255,255,0.1);
  color: #ededff;
}

.teams-settings-body {
  padding: 24px;
}

.teams-section {
  margin-bottom: 24px;
}

.teams-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.teams-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

.teams-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.teams-status-dot.connected {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52,211,153,0.5);
}

.teams-status-dot.disconnected {
  background: #6b7280;
}

.teams-email {
  margin-left: auto;
  color: rgba(237,237,255,0.5);
  font-size: 13px;
}

.teams-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.teams-btn:hover { opacity: 0.85; }

.teams-btn-danger {
  background: rgba(248,113,113,0.15);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.2);
}

.teams-btn-small {
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(237,237,255,0.7);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.teams-btn-small:hover {
  background: rgba(255,255,255,0.15);
}

.teams-mapping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.teams-mapping-channel { color: #ededff; }
.teams-mapping-arrow { color: rgba(237,237,255,0.3); margin: 0 8px; }
.teams-mapping-company { color: #a78bfa; }

.teams-note {
  color: rgba(237,237,255,0.5);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.teams-steps {
  color: rgba(237,237,255,0.7);
  font-size: 13px;
  line-height: 1.8;
  padding-left: 20px;
}

.teams-steps li { margin-bottom: 4px; }
.teams-steps code {
  background: rgba(167,139,250,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #a78bfa;
}

.teams-loading {
  color: rgba(237,237,255,0.4);
  text-align: center;
  padding: 40px;
}
