/* Calls Overlay - Bottom Sheet Style */
.calls-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.calls-overlay.active {
  pointer-events: auto;
  opacity: 1;
}

.calls-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.calls-overlay.active .calls-overlay-backdrop {
  opacity: 1;
}

.calls-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 340px;
  background: var(--bg-secondary);
  border-radius: 20px 20px 0 0;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  border-right: 1px solid var(--border-color);
}

.calls-overlay.active .calls-overlay-content {
  transform: translateY(0);
}

.calls-overlay-handle {
  width: 36px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 12px auto 8px;
  flex-shrink: 0;
  opacity: 0.5;
}

.calls-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.calls-overlay-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.calls-overlay-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 200px;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .calls-overlay-content {
    width: 300px;
  }
}

/* Mobile - full width */
@media (max-width: 768px) {
  .calls-overlay-content {
    width: 100%;
    max-height: 90vh;
  }
}
