/* WebRTC Call Styles */

.call-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 24, 39, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-container {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.call-videos {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f2937;
  border-radius: 16px;
  overflow: hidden;
}

.remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.local-video {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.call-controls {
  padding: 20px;
  text-align: center;
}

.call-status {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
}

.call-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.call-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.call-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.call-btn.call-end {
  background: #ef4444;
}

.call-btn.call-end:hover {
  background: #dc2626;
}

.call-btn.muted {
  background: #f59e0b;
}

/* Incoming call modal */
.incoming-call-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.incoming-call-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.incoming-call-content h3 {
  margin-bottom: 10px;
  color: var(--dark);
}

.incoming-call-content p {
  color: var(--gray);
  margin-bottom: 30px;
}

.incoming-call-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.incoming-call-actions .btn {
  padding: 12px 25px;
  border-radius: 30px;
}

@media (max-width: 768px) {
  .local-video {
    width: 120px;
    height: 90px;
    bottom: 10px;
    right: 10px;
  }
}
