/* ==========================================================================
   CHAT CHAMADAS - MODULAR VOICE & VIDEO CALL STYLES (APPLE HIG GLASSMORPHISM)
   ========================================================================== */

/* Header Action Buttons in Chat Conversation Header */
.cc-header-btn {
  background: rgba(241, 245, 249, 0.8) !important;
  color: #334155 !important;
  border: 1px solid rgba(203, 213, 225, 0.6) !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
}

.cc-header-btn:hover {
  background: #2546ED !important;
  color: #FFFFFF !important;
  border-color: #2546ED !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 70, 237, 0.3) !important;
}

/* Incoming Call Glass Banner (Apple Notification Style) */
.cc-incoming-overlay {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  animation: ccSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ccSlideDown {
  from { transform: translateY(-30px) scale(0.92); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.cc-incoming-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.25), 0 2px 6px rgba(15, 23, 42, 0.05);
  min-width: 320px;
}

.cc-incoming-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2546ED 0%, #1032CC 100%);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 14px rgba(37, 70, 237, 0.35);
}

.cc-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #2546ED;
  animation: ccPulse 1.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes ccPulse {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

.cc-incoming-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cc-incoming-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
}

.cc-incoming-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cc-incoming-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-btn-accept {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: transform 0.15s ease;
}

.cc-btn-accept:hover {
  transform: scale(1.08);
}

.cc-btn-decline {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transition: transform 0.15s ease;
}

.cc-btn-decline:hover {
  transform: scale(1.08);
}

/* Active Call Modal Overlay (Dark Apple HIG Blur) */
.cc-call-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  display: flex;
  flex-direction: column;
  animation: ccFadeIn 0.25s ease forwards;
}

@keyframes ccFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Call Top Bar */
.cc-call-topbar {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
}

.cc-call-peer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-peer-name {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.cc-call-status-badge {
  font-size: 12px;
  font-weight: 600;
  color: #34D399;
  background: rgba(52, 211, 153, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cc-call-timer {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  font-family: monospace;
}

/* Video Stage Grid */
.cc-call-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 16px 16px 16px;
  border-radius: 20px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-video-remote {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Local Video Picture-in-Picture */
.cc-video-local-pip {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 180px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  background: #0F172A;
  z-index: 20;
  transition: all 0.2s ease;
}

/* Voice Call Large Stage Avatar */
.cc-voice-stage-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cc-voice-avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2546ED 0%, #1032CC 100%);
  color: #FFFFFF;
  font-size: 38px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 70, 237, 0.4);
  position: relative;
}

.cc-voice-pulse-1, .cc-voice-pulse-2 {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid rgba(37, 70, 237, 0.5);
  animation: ccVoicePulse 2s infinite ease-out;
}

.cc-voice-pulse-2 {
  animation-delay: 0.8s;
}

@keyframes ccVoicePulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Floating Control Dock (Apple Glass Dock) */
.cc-call-dock {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 30;
}

.cc-dock-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cc-dock-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.cc-dock-btn.off {
  background: #EF4444 !important;
  border-color: #EF4444 !important;
  color: #FFFFFF !important;
}

.cc-dock-btn-end {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #EF4444;
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
  transition: transform 0.15s ease;
}

.cc-dock-btn-end:hover {
  transform: scale(1.1);
  background: #DC2626;
}
